|
eXo Kernel :: Container 2.4.11-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CurrentTenantLookup
A lookup mechanism to find a Current Tenant. This mechanism provides isolation between the
Container and an actual implementation of Multitenancy.
Implementations of this interface can provide different algorithms for an actual lookup.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
Tenant getCurrentTenant()
throws CurrentTenantNotSetException
CurrentTenantNotSetException if
Current Tenant not set in current thread.
Tenant
CurrentTenantNotSetException - if current tenant not set.boolean hasCurrentTenant()
getCurrentTenant() for details.
true if current tenant is set in current thread, false otherwise.getCurrentTenant()
|
eXo Kernel :: Container 2.4.11-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||