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
public class MultiTenantServiceImpl extends DefaultComponent implements MultiTenantService
- Since:
- 5.6
- Author:
- Thomas Roger
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIGURATION_EP
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description MultiTenantServiceImpl()
-
Method Summary
-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, 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 Detail
-
CONFIGURATION_EP
public static final String CONFIGURATION_EP
- See Also:
- Constant Field Values
-
-
Method Detail
-
isTenantIsolationEnabledByDefault
public boolean isTenantIsolationEnabledByDefault()
- Specified by:
isTenantIsolationEnabledByDefault
in interfaceMultiTenantService
-
getTenantDocumentType
public String getTenantDocumentType()
- Specified by:
getTenantDocumentType
in interfaceMultiTenantService
-
isTenantIsolationEnabled
public boolean isTenantIsolationEnabled(CoreSession session)
- Specified by:
isTenantIsolationEnabled
in interfaceMultiTenantService
-
enableTenantIsolation
public void enableTenantIsolation(CoreSession session)
- Specified by:
enableTenantIsolation
in interfaceMultiTenantService
-
disableTenantIsolation
public void disableTenantIsolation(CoreSession session)
- Specified by:
disableTenantIsolation
in interfaceMultiTenantService
-
enableTenantIsolationFor
public void enableTenantIsolationFor(CoreSession session, DocumentModel doc)
- Specified by:
enableTenantIsolationFor
in interfaceMultiTenantService
-
disableTenantIsolationFor
public void disableTenantIsolationFor(CoreSession session, DocumentModel doc)
- Specified by:
disableTenantIsolationFor
in interfaceMultiTenantService
-
getTenantIdForTenant
protected String getTenantIdForTenant(DocumentModel doc)
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
public List<DocumentModel> getTenants()
- Specified by:
getTenants
in interfaceMultiTenantService
-
isTenantAdministrator
public boolean isTenantAdministrator(Principal principal)
- Specified by:
isTenantAdministrator
in interfaceMultiTenantService
-
applicationStarted
public void applicationStarted(ComponentContext context)
Description copied from interface:Component
Notify the component that Nuxeo Framework finished starting all Nuxeo bundles. Implementors must migrate the code of the applicationStarted and move it toComponent.start(ComponentContext)
andComponent.stop(ComponentContext)
methods- Specified by:
applicationStarted
in interfaceComponent
-
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
public List<String> getProhibitedGroups()
- Specified by:
getProhibitedGroups
in interfaceMultiTenantService
-
-