Class ActivationManager


  • public class ActivationManager
    extends Object
    Manages Activations of Services for Tenants.
    • Constructor Detail

      • ActivationManager

        public ActivationManager()
    • 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.