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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.wso2.carbon.user.core.service.RealmService
    Method to retrieve the Realm Service instance.
    static org.wso2.carbon.registry.core.service.RegistryService
    Method to retrieve the Registry Service instance.
    static String
    Method to obtain the name of the cloud service in which this module is running.
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      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.