|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TenantManager
| Method Summary | |
|---|---|
void |
activateTenant(int tenantId)
Activates a tenant |
int |
addTenant(Tenant tenant)
Adds a tenant to the system |
void |
deactivateTenant(int tenantId)
De-activates a tenant |
void |
deleteTenant(int tenantId)
Deletes a tenant from the system |
void |
deleteTenant(int tenantId,
boolean removeFromPersistentStorage)
Deletes a tenant from the system which use to delete the cache in each worker nodes using clustered message and delete the persistence storage in management node |
Tenant[] |
getAllTenants()
Gets all tenants in the system. |
Tenant[] |
getAllTenantsForTenantDomainStr(String domain)
Gets tenants in the system which matches the given domain String(which can be used for partial searches). |
String |
getDomain(int tenantId)
Retrieves the domain given a tenant Id |
String |
getSuperTenantDomain()
Checks whether the super tenant. |
Tenant |
getTenant(int tenantId)
Gets a Tenant object |
int |
getTenantId(String domain)
Retrieves the tenant Id given the domain |
boolean |
isTenantActive(int tenantId)
Checks whether a tenant is active |
void |
updateTenant(Tenant tenant)
Updates a tenant in the system |
| Method Detail |
|---|
int addTenant(Tenant tenant)
throws UserStoreException
tenant - The tenant to be added
UserStoreException
void updateTenant(Tenant tenant)
throws UserStoreException
tenant - The tenant to be updated
UserStoreException
Tenant getTenant(int tenantId)
throws UserStoreException
tenantId - The tenant Id of the tenant
UserStoreException
Tenant[] getAllTenants()
throws UserStoreException
UserStoreException
Tenant[] getAllTenantsForTenantDomainStr(String domain)
throws UserStoreException
UserStoreException
String getDomain(int tenantId)
throws UserStoreException
tenantId - The Id of the tenant
UserStoreException
int getTenantId(String domain)
throws UserStoreException
domain - The domain of the tenant
UserStoreException
void activateTenant(int tenantId)
throws UserStoreException
tenantId - The Id of the tenant
UserStoreException
void deactivateTenant(int tenantId)
throws UserStoreException
tenantId - The Id of the tenant
UserStoreException
boolean isTenantActive(int tenantId)
throws UserStoreException
tenantId - The Id of the tenant
UserStoreException
void deleteTenant(int tenantId)
throws UserStoreException
tenantId -
UserStoreException
void deleteTenant(int tenantId,
boolean removeFromPersistentStorage)
throws UserStoreException
tenantId - removeFromPersistentStorage -
UserStoreException
String getSuperTenantDomain()
throws UserStoreException
UserStoreException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||