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, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtension
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
applicationStarted
in interface Component
applicationStarted
in class DefaultComponent
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 © 2016 Nuxeo SA. All rights reserved.