Class CarbonBaseUtils


  • public class CarbonBaseUtils
    extends Object
    Generic Base Utility methods
    • 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()