Package org.wso2.carbon.activation.utils
Class Util
- java.lang.Object
-
- org.wso2.carbon.activation.utils.Util
-
public class Util extends Object
Utilities for the Service Activation Module for Tenants.
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.wso2.carbon.user.core.service.RealmServicegetRealmService()Method to retrieve the Realm Service instance.static org.wso2.carbon.registry.core.service.RegistryServicegetRegistryService()Method to retrieve the Registry Service instance.static StringgetServiceName()Method 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.
-
-
-
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.
-
-