Class Util


  • public class Util
    extends Object
    Utilities for the Service Activation Module for Tenants.
    • Constructor Summary

      Constructors 
      Constructor Description
      Util()  
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • setRegistryService

        public static void setRegistryService​(org.wso2.carbon.registry.core.service.RegistryService service)
        Stores an instance of the Registry Service that can be used to access the registry.
        Parameters:
        service - the Registry Service instance.
      • getRegistryService

        public static org.wso2.carbon.registry.core.service.RegistryService getRegistryService()
        Method to retrieve the Registry Service instance.
        Returns:
        the Registry Service instance if it has been stored or null if not.
      • setRealmService

        public static void setRealmService​(org.wso2.carbon.user.core.service.RealmService service)
        Stores an instance of the Realm Service that can be used to access the user realm.
        Parameters:
        service - the Realm Service instance.
      • getRealmService

        public static org.wso2.carbon.user.core.service.RealmService getRealmService()
        Method to retrieve the Realm Service instance.
        Returns:
        the Realm Service instance if it has been stored or null if not.
      • getServiceName

        public static String getServiceName()
        Method to obtain the name of the cloud service in which this module is running.
        Returns:
        the name of the service as defined in the server configuration.