public class ActivationManager extends Object
Constructor and Description |
---|
ActivationManager() |
Modifier and Type | Method and Description |
---|---|
static boolean |
activationRecorded(int tenantId)
Method to check whether an activation record exists for the given tenant.
|
static boolean |
getActivation(int tenantId)
Method to retrieve an activation record.
|
static void |
setActivation(int tenantId,
boolean status)
Method to set an activation record.
|
static void |
startCacheCleaner()
Starts cleaning up cached activation records at periodic intervals.
|
static void |
stopCacheCleaner()
Stops cleaning up cached activation records.
|
public static void startCacheCleaner()
public static void stopCacheCleaner()
public static void setActivation(int tenantId, boolean status)
tenantId
- the tenant identifier.status
- true if the service is active or false if not.public static boolean activationRecorded(int tenantId)
tenantId
- the tenant identifier.public static boolean getActivation(int tenantId)
tenantId
- the tenant identifier.Copyright © 2018 WSO2. All rights reserved.