Class JiraTenantStatusService
java.lang.Object
com.codebarrel.jira.plugin.automation.service.JiraTenantStatusService
- All Implemented Interfaces:
TenantStatusService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckStatus(TenantContext tenantContext) Performs a status check, by actually looking up add-on info and license info on the provided tenant.voiddeleteAllTenantData(TenantContext tenantContext, TenantStatusBean tenantStatusBean) Removes all tenant data.voidsetStatus(TenantContext tenantContext, TenantStatusType tenantStatusType) Sets the status for a tenant to the provided value.booleanshouldTenantBeDeleted(TenantContext tenantContext, TenantStatusBean tenantStatusBean) Returns true if the provided tenant status looks ready for deletion (i.e.
-
Constructor Details
-
JiraTenantStatusService
public JiraTenantStatusService()
-
-
Method Details
-
checkStatus
Description copied from interface:TenantStatusServicePerforms a status check, by actually looking up add-on info and license info on the provided tenant.- Specified by:
checkStatusin interfaceTenantStatusService- Parameters:
tenantContext- the tenant to check- Returns:
- current tenant status
-
setStatus
Description copied from interface:TenantStatusServiceSets the status for a tenant to the provided value.- Specified by:
setStatusin interfaceTenantStatusService- Parameters:
tenantContext- the tenant to updatetenantStatusType- the new status
-
shouldTenantBeDeleted
public boolean shouldTenantBeDeleted(TenantContext tenantContext, TenantStatusBean tenantStatusBean) Description copied from interface:TenantStatusServiceReturns 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)- Specified by:
shouldTenantBeDeletedin interfaceTenantStatusService- Parameters:
tenantContext- The tenant to checktenantStatusBean- latest tenant status- Returns:
- true if tenant should be deleted
-
deleteAllTenantData
Description copied from interface:TenantStatusServiceRemoves all tenant data. **DANGER! HIGH VOLTAGE**- Specified by:
deleteAllTenantDatain interfaceTenantStatusService- Parameters:
tenantContext- the tenant to be deleted.
-