Package org.nuxeo.ecm.multi.tenant
Class MultiTenantServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.multi.tenant.MultiTenantServiceImpl
- All Implemented Interfaces:
MultiTenantService
,Adaptable
,Component
,Extensible
,TimestampedService
- Since:
- 5.6
- Author:
- Thomas Roger
-
Field Summary
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disableTenantIsolation
(CoreSession session) void
disableTenantIsolationFor
(CoreSession session, DocumentModel doc) void
enableTenantIsolation
(CoreSession session) void
enableTenantIsolationFor
(CoreSession session, DocumentModel doc) protected String
Gets the tenant id for a tenant document (Domain).boolean
isTenantAdministrator
(Principal principal) boolean
isTenantIsolationEnabled
(CoreSession session) boolean
void
registerContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) void
start
(ComponentContext context) Start the component.void
unregisterContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, stop, unregister, unregisterExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
CONFIGURATION_EP
- See Also:
-
-
Constructor Details
-
MultiTenantServiceImpl
public MultiTenantServiceImpl()
-
-
Method Details
-
isTenantIsolationEnabledByDefault
public boolean isTenantIsolationEnabledByDefault()- Specified by:
isTenantIsolationEnabledByDefault
in interfaceMultiTenantService
-
getTenantDocumentType
- Specified by:
getTenantDocumentType
in interfaceMultiTenantService
-
isTenantIsolationEnabled
- Specified by:
isTenantIsolationEnabled
in interfaceMultiTenantService
-
enableTenantIsolation
- Specified by:
enableTenantIsolation
in interfaceMultiTenantService
-
disableTenantIsolation
- Specified by:
disableTenantIsolation
in interfaceMultiTenantService
-
enableTenantIsolationFor
- Specified by:
enableTenantIsolationFor
in interfaceMultiTenantService
-
disableTenantIsolationFor
- Specified by:
disableTenantIsolationFor
in interfaceMultiTenantService
-
getTenantIdForTenant
Gets the tenant id for a tenant document (Domain).Deals with the case where it's a trashed document, which has a mangled name.
- Parameters:
doc
- the tenant document- Returns:
- the tenant id
- Since:
- 7.3
-
getTenants
- Specified by:
getTenants
in interfaceMultiTenantService
-
isTenantAdministrator
- Specified by:
isTenantAdministrator
in interfaceMultiTenantService
-
start
Description copied from interface:Component
Start the component. This method is called after all the components were resolved and activated- Specified by:
start
in interfaceComponent
- Overrides:
start
in classDefaultComponent
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContribution
in classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContribution
in classDefaultComponent
-
getProhibitedGroups
- Specified by:
getProhibitedGroups
in interfaceMultiTenantService
-