|
eXo Kernel :: Container 2.4.4-CLD | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.multitenancy.bridge.TenantsServiceImpl
public class TenantsServiceImpl
Implementation of TenantsService based on plugins. Following kinds of plugin supported:
| Field Summary | |
|---|---|
protected static Log |
LOG
|
protected List<CurrentTenantLookup> |
lookups
List of registered CurrentTenantLookup implementations. |
protected List<TenantStateObserver> |
observers
List of registered TenantStateObserver implementations. |
| Constructor Summary | |
|---|---|
TenantsServiceImpl()
Constructor without dependencies. |
|
| Method Summary | |
|---|---|
void |
addListener(TenantsStateListener listener)
Add listener for Tenant events in Multitenancy sub-system. |
void |
addPlugin(ComponentPlugin plugin)
Register component plugin. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Log LOG
protected final List<CurrentTenantLookup> lookups
CurrentTenantLookup implementations.
protected final List<TenantStateObserver> observers
TenantStateObserver implementations.
| Constructor Detail |
|---|
public TenantsServiceImpl()
| Method Detail |
|---|
public void addPlugin(ComponentPlugin plugin)
plugin - ComponentPluginpublic void addListener(TenantsStateListener listener)
TenantsService.removeListener(TenantsStateListener) method.
addListener in interface TenantsServicelistener - TenantsStateListenerpublic void removeListener(TenantsStateListener listener)
removeListener in interface TenantsServicelistener - TenantsStateListener
public Tenant getCurrentTanant()
throws CurrentTenantNotSetException
getCurrentTanant in interface TenantsServiceTenant Current Tenant descriptor.
CurrentTenantNotSetException - if Current Tenant not found or not set.public boolean hasCurrentTanant()
#getCurrentTenant() for details.
hasCurrentTanant in interface TenantsServicetrue if current tenant is set in current thread, false otherwise.#getCurrentTenant()
|
eXo Kernel :: Container 2.4.4-CLD | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||