public class MultiTenantServiceImpl extends DefaultComponent implements MultiTenantService
Modifier and Type | Field and Description |
---|---|
static String |
CONFIGURATION_EP |
lastModified
Constructor and Description |
---|
MultiTenantServiceImpl() |
activate, deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApplicationStartedOrder
public static final String CONFIGURATION_EP
public MultiTenantServiceImpl()
public boolean isTenantIsolationEnabledByDefault()
isTenantIsolationEnabledByDefault
in interface MultiTenantService
public String getTenantDocumentType()
getTenantDocumentType
in interface MultiTenantService
public boolean isTenantIsolationEnabled(CoreSession session)
isTenantIsolationEnabled
in interface MultiTenantService
public void enableTenantIsolation(CoreSession session)
enableTenantIsolation
in interface MultiTenantService
public void disableTenantIsolation(CoreSession session)
disableTenantIsolation
in interface MultiTenantService
public void enableTenantIsolationFor(CoreSession session, DocumentModel doc)
enableTenantIsolationFor
in interface MultiTenantService
public void disableTenantIsolationFor(CoreSession session, DocumentModel doc)
disableTenantIsolationFor
in interface MultiTenantService
protected String getTenantIdForTenant(DocumentModel doc)
Deals with the case where it's a trashed document, which has a mangled name.
doc
- the tenant documentpublic List<DocumentModel> getTenants()
getTenants
in interface MultiTenantService
public boolean isTenantAdministrator(Principal principal)
isTenantAdministrator
in interface MultiTenantService
public void applicationStarted(ComponentContext context)
Component
Component.start(ComponentContext)
and
Component.stop(ComponentContext)
methodsapplicationStarted
in interface Component
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public List<String> getProhibitedGroups()
getProhibitedGroups
in interface MultiTenantService
Copyright © 2018 Nuxeo. All rights reserved.