Interface TenantStatusService

All Known Implementing Classes:
JiraTenantStatusService

public interface TenantStatusService
  • Method Details

    • checkStatus

      Optional<TenantStatusBean> checkStatus(TenantContext tenant)
      Performs a status check, by actually looking up add-on info and license info on the provided tenant.
      Parameters:
      tenant - the tenant to check
      Returns:
      current tenant status
    • setStatus

      void setStatus(TenantContext tenant, TenantStatusType status)
      Sets the status for a tenant to the provided value.
      Parameters:
      tenant - the tenant to update
      status - the new status
    • shouldTenantBeDeleted

      boolean shouldTenantBeDeleted(TenantContext tenant, TenantStatusBean tenantStatus)
      Returns true if the provided tenant status looks ready for deletion (i.e. not in an active state for more than 5 times and no recent rule executions)
      Parameters:
      tenant - The tenant to check
      tenantStatus - latest tenant status
      Returns:
      true if tenant should be deleted
    • deleteAllTenantData

      void deleteAllTenantData(TenantContext tenant, TenantStatusBean tenantStatus)
      Removes all tenant data. **DANGER! HIGH VOLTAGE**
      Parameters:
      tenant - the tenant to be deleted.