Package org.wso2.carbon.activation.utils
Class Util
java.lang.Object
org.wso2.carbon.activation.utils.Util
Utilities for the Service Activation Module for Tenants.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.wso2.carbon.user.core.service.RealmServiceMethod to retrieve the Realm Service instance.static org.wso2.carbon.registry.core.service.RegistryServiceMethod to retrieve the Registry Service instance.static StringMethod to obtain the name of the cloud service in which this module is running.static voidsetRealmService(org.wso2.carbon.user.core.service.RealmService service) Stores an instance of the Realm Service that can be used to access the user realm.static voidsetRegistryService(org.wso2.carbon.registry.core.service.RegistryService service) Stores an instance of the Registry Service that can be used to access the registry.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
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
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.
-