Package org.wso2.carbon.base
Class CarbonBaseUtils
- java.lang.Object
-
- org.wso2.carbon.base.CarbonBaseUtils
-
public class CarbonBaseUtils extends Object
Generic Base Utility methods
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckSecurity()Method to test whether a given user has permission to execute the given method.static voidcheckSecurity(List<String> allowedClasses)Method to test whether a given user has permission to execute the given method.static voidcheckSecurity(Map<String,String> allowedMethods)Method to test whether a given user has permission to execute the given method.static StringgetCarbonConfigDirPath()static StringgetCarbonHome()static StringgetServerXml()
-
-
-
Method Detail
-
checkSecurity
public static void checkSecurity()
Method to test whether a given user has permission to execute the given method.
-
checkSecurity
public static void checkSecurity(List<String> allowedClasses)
Method to test whether a given user has permission to execute the given method.- Parameters:
allowedClasses- the classes that are allowed to make calls irrespective of the user having desired permissions.
-
checkSecurity
public static void checkSecurity(Map<String,String> allowedMethods)
Method to test whether a given user has permission to execute the given method.- Parameters:
allowedMethods- the methods that are allowed to make calls irrespective of the user having desired permissions.
-
getServerXml
public static String getServerXml()
-
getCarbonConfigDirPath
public static String getCarbonConfigDirPath()
-
getCarbonHome
public static String getCarbonHome()
-
-