public interface TenantsService
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(TenantsStateListener listener)
Add listener for Tenant events in Multitenancy sub-system.
|
Tenant |
getCurrentTanant()
Return Current Tenant or throws an exception if Current Tenant not set in current thread.
|
boolean |
hasCurrentTanant()
Answers if Current Tenant is set in current thread.
|
void |
removeListener(TenantsStateListener listener)
Remove Tenant events listener from Multitenancy sub-system.
|
Tenant getCurrentTanant() throws CurrentTenantNotSetException
Tenant Current Tenant descriptor.CurrentTenantNotSetException - if Current Tenant not found or not set.boolean hasCurrentTanant()
#getCurrentTenant() for details.true if current tenant is set in current thread, false otherwise.#getCurrentTenant()void addListener(TenantsStateListener listener)
removeListener(TenantsStateListener) method.listener - TenantsStateListenervoid removeListener(TenantsStateListener listener)
listener - TenantsStateListenerCopyright © 2014 eXo Platform SAS. All Rights Reserved.