Package org.wso2.carbon.activation.utils
Class ActivationManager
java.lang.Object
org.wso2.carbon.activation.utils.ActivationManager
Manages Activations of Services for Tenants.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanactivationRecorded(int tenantId) Method to check whether an activation record exists for the given tenant.static booleangetActivation(int tenantId) Method to retrieve an activation record.static voidsetActivation(int tenantId, boolean status) Method to set an activation record.static voidStarts cleaning up cached activation records at periodic intervals.static voidStops cleaning up cached activation records.
-
Constructor Details
-
ActivationManager
public ActivationManager()
-
-
Method Details
-
startCacheCleaner
public static void startCacheCleaner()Starts cleaning up cached activation records at periodic intervals. -
stopCacheCleaner
public static void stopCacheCleaner()Stops cleaning up cached activation records. -
setActivation
public static void setActivation(int tenantId, boolean status) Method to set an activation record.- Parameters:
tenantId- the tenant identifier.status- true if the service is active or false if not.
-
activationRecorded
public static boolean activationRecorded(int tenantId) Method to check whether an activation record exists for the given tenant.- Parameters:
tenantId- the tenant identifier.- Returns:
- true if a record exists.
-
getActivation
public static boolean getActivation(int tenantId) Method to retrieve an activation record.- Parameters:
tenantId- the tenant identifier.- Returns:
- true if the service is active or false if not.
-