public interface TenantManager
| Modifier and Type | Method and Description |
|---|---|
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
|
int addTenant(Tenant tenant) throws UserStoreException
tenant - The tenant to be addedUserStoreExceptionvoid updateTenant(Tenant tenant) throws UserStoreException
tenant - The tenant to be updatedUserStoreExceptionTenant getTenant(int tenantId) throws UserStoreException
tenantId - The tenant Id of the tenantUserStoreExceptionTenant[] getAllTenants() throws UserStoreException
UserStoreExceptionTenant[] getAllTenantsForTenantDomainStr(String domain) throws UserStoreException
UserStoreExceptionString getDomain(int tenantId) throws UserStoreException
tenantId - The Id of the tenantUserStoreExceptionint getTenantId(String domain) throws UserStoreException
domain - The domain of the tenantUserStoreExceptionvoid activateTenant(int tenantId)
throws UserStoreException
tenantId - The Id of the tenantUserStoreExceptionvoid deactivateTenant(int tenantId)
throws UserStoreException
tenantId - The Id of the tenantUserStoreExceptionboolean isTenantActive(int tenantId)
throws UserStoreException
tenantId - The Id of the tenantUserStoreExceptionvoid deleteTenant(int tenantId)
throws UserStoreException
tenantId - UserStoreExceptionvoid deleteTenant(int tenantId,
boolean removeFromPersistentStorage)
throws UserStoreException
tenantId - removeFromPersistentStorage - UserStoreExceptionString getSuperTenantDomain() throws UserStoreException
UserStoreExceptionCopyright © 2018 WSO2 Inc. All rights reserved.