public interface TenantsService
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(TenantsStateListener listener)
Add listener for Tenant events in Multitenancy sub-system.
|
Tenant |
getCurrentTenant()
Return Current Tenant or throws an exception if Current Tenant not set in current thread.
|
boolean |
hasCurrentTenant()
Answers if Current Tenant is set in current thread.
|
void |
removeListener(TenantsStateListener listener)
Remove Tenant events listener from Multitenancy sub-system.
|
Tenant getCurrentTenant() throws CurrentTenantNotSetException
Tenant Current Tenant descriptor.CurrentTenantNotSetException - if Current Tenant not found or not set.boolean hasCurrentTenant()
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 © 2015 eXo Platform SAS. All Rights Reserved.