Package org.wso2.carbon.activation.utils
Class ActivationManager
- java.lang.Object
-
- org.wso2.carbon.activation.utils.ActivationManager
-
public class ActivationManager extends Object
Manages Activations of Services for Tenants.
-
-
Constructor Summary
Constructors Constructor Description ActivationManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 voidstartCacheCleaner()Starts cleaning up cached activation records at periodic intervals.static voidstopCacheCleaner()Stops cleaning up cached activation records.
-
-
-
Method Detail
-
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.
-
-