public interface CurrentTenantLookup
| Modifier and Type | Method and Description |
|---|---|
Tenant |
getCurrentTenant()
Return Current Tenant descriptor or throw
CurrentTenantNotSetException if
Current Tenant not set in current thread.Current Tenant can be not set in two cases: Thread runs not in a context of multitenant request (e.g. |
boolean |
hasCurrentTenant()
Answers if Current Tenant is set in current thread.
|
Tenant getCurrentTenant() throws CurrentTenantNotSetException
CurrentTenantNotSetException if
Current Tenant not set in current thread.TenantCurrentTenantNotSetException - if current tenant not set.boolean hasCurrentTenant()
getCurrentTenant() for details.true if current tenant is set in current thread, false otherwise.getCurrentTenant()Copyright © 2014 eXo Platform SAS. All Rights Reserved.