Interface TenantStatusService
- All Known Implementing Classes:
JiraTenantStatusService
public interface TenantStatusService
-
Method Summary
Modifier and TypeMethodDescriptioncheckStatus(TenantContext tenant) Performs a status check, by actually looking up add-on info and license info on the provided tenant.voiddeleteAllTenantData(TenantContext tenant, TenantStatusBean tenantStatus) Removes all tenant data.voidsetStatus(TenantContext tenant, TenantStatusType status) Sets the status for a tenant to the provided value.booleanshouldTenantBeDeleted(TenantContext tenant, TenantStatusBean tenantStatus) Returns true if the provided tenant status looks ready for deletion (i.e.
-
Method Details
-
checkStatus
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
Sets the status for a tenant to the provided value.- Parameters:
tenant- the tenant to updatestatus- the new status
-
shouldTenantBeDeleted
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 checktenantStatus- latest tenant status- Returns:
- true if tenant should be deleted
-
deleteAllTenantData
Removes all tenant data. **DANGER! HIGH VOLTAGE**- Parameters:
tenant- the tenant to be deleted.
-