Package org.wso2.carbon.base
Class CarbonBaseUtils
java.lang.Object
org.wso2.carbon.base.CarbonBaseUtils
Generic Base Utility methods
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidMethod 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 Stringstatic Stringstatic Stringstatic StringGet the path of the service-access-control.xml file
-
Method Details
-
checkSecurity
public static void checkSecurity()Method to test whether a given user has permission to execute the given method. -
checkSecurity
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
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
-
getServiceAccessControlFile
Get the path of the service-access-control.xml file- Returns:
- Path of the service-access-control.xml file
-
getCarbonConfigDirPath
-
getCarbonHome
-