public class MultiTenantServiceImpl extends DefaultComponent implements MultiTenantService
Modifier and Type | Field and Description |
---|---|
static String |
CONFIGURATION_EP |
Constructor and Description |
---|
MultiTenantServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo bundles.
|
void |
disableTenantIsolation(CoreSession session) |
void |
disableTenantIsolationFor(CoreSession session,
DocumentModel doc) |
void |
enableTenantIsolation(CoreSession session) |
void |
enableTenantIsolationFor(CoreSession session,
DocumentModel doc) |
List<String> |
getProhibitedGroups() |
String |
getTenantDocumentType() |
List<DocumentModel> |
getTenants() |
boolean |
isTenantAdministrator(Principal principal) |
boolean |
isTenantIsolationEnabled(CoreSession session) |
boolean |
isTenantIsolationEnabledByDefault() |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
public static final String CONFIGURATION_EP
public boolean isTenantIsolationEnabledByDefault()
isTenantIsolationEnabledByDefault
in interface MultiTenantService
public String getTenantDocumentType()
getTenantDocumentType
in interface MultiTenantService
public boolean isTenantIsolationEnabled(CoreSession session) throws ClientException
isTenantIsolationEnabled
in interface MultiTenantService
ClientException
public void enableTenantIsolation(CoreSession session) throws ClientException
enableTenantIsolation
in interface MultiTenantService
ClientException
public void disableTenantIsolation(CoreSession session) throws ClientException
disableTenantIsolation
in interface MultiTenantService
ClientException
public void enableTenantIsolationFor(CoreSession session, DocumentModel doc) throws ClientException
enableTenantIsolationFor
in interface MultiTenantService
ClientException
public void disableTenantIsolationFor(CoreSession session, DocumentModel doc) throws ClientException
disableTenantIsolationFor
in interface MultiTenantService
ClientException
public List<DocumentModel> getTenants() throws ClientException
getTenants
in interface MultiTenantService
ClientException
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 © 2015 Nuxeo SA. All rights reserved.