Class CarbonBaseUtils

java.lang.Object
org.wso2.carbon.base.CarbonBaseUtils

public class CarbonBaseUtils extends Object
Generic Base Utility methods
  • Method Details

    • 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()
    • getServiceAccessControlFile

      public static String getServiceAccessControlFile()
      Get the path of the service-access-control.xml file
      Returns:
      Path of the service-access-control.xml file
    • getCarbonConfigDirPath

      public static String getCarbonConfigDirPath()
    • getCarbonHome

      public static String getCarbonHome()