Package org.alfresco.repo.web.scripts
Class TenantRepositoryContainer
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractRuntimeContainer
-
- org.alfresco.repo.web.scripts.RepositoryContainer
-
- org.alfresco.repo.web.scripts.TenantRepositoryContainer
-
- All Implemented Interfaces:
EventListener
,TenantDeployer
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.ApplicationListener
,org.springframework.extensions.webscripts.Container
,org.springframework.extensions.webscripts.RuntimeContainer
- Direct Known Subclasses:
PublicApiRepositoryContainer
public class TenantRepositoryContainer extends RepositoryContainer implements TenantDeployer
Tenant-aware Repository (server-tier) container for Web Scripts- Author:
- davidc
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
logger
protected TenantAdminService
tenantAdminService
protected TransactionService
transactionService
-
Constructor Summary
Constructors Constructor Description TenantRepositoryContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
org.springframework.extensions.webscripts.Registry
getRegistry()
void
init()
void
onDisableTenant()
void
onEnableTenant()
void
reset()
void
setTenantAdminService(TenantAdminService tenantAdminService)
void
setTransactionService(TransactionService transactionService)
void
setWebScriptsRegistryCache(AsynchronouslyRefreshedCache<org.springframework.extensions.webscripts.Registry> registryCache)
-
Methods inherited from class org.alfresco.repo.web.scripts.RepositoryContainer
authenticate, executeScript, executeScriptInternal, getDescription, getNotPublicExceptions, getPublicExceptions, getRequiredAuthentication, getScriptParameters, getTemplateParameters, isAdminOrSystemUser, onApplicationEvent, setAuthorityService, setDescriptorService, setEncryptTempFiles, setFallbackTransactionHelper, setMaxContentSize, setMemoryThreshold, setNotPublicExceptions, setPreserveHeadersPattern, setPublicExceptions, setRepository, setRepositoryImageResolver, setTempDirectoryName, setup, transactionedExecute
-
Methods inherited from class org.springframework.extensions.webscripts.AbstractRuntimeContainer
allowCallbacks, getApplicationContext, getConfigService, getFormatRegistry, getName, getScriptParameterFactoryRegistry, getScriptProcessorRegistry, getSearchPath, getTemplateProcessorRegistry, setAllowCallbacks, setApplicationContext, setConfigService, setFormatRegistry, setName, setRegistry, setScriptObjects, setScriptParameterFactoryRegistry, setScriptProcessorRegistry, setSearchPath, setTemplateObjects, setTemplateProcessorRegistry
-
-
-
-
Field Detail
-
logger
protected static final org.apache.commons.logging.Log logger
-
tenantAdminService
protected TenantAdminService tenantAdminService
-
transactionService
protected TransactionService transactionService
-
-
Method Detail
-
setWebScriptsRegistryCache
public void setWebScriptsRegistryCache(AsynchronouslyRefreshedCache<org.springframework.extensions.webscripts.Registry> registryCache)
- Parameters:
registryCache
- asynchronously maintained cache for script registries
-
setTenantAdminService
public void setTenantAdminService(TenantAdminService tenantAdminService)
- Parameters:
tenantAdminService
- service to sort out tenant context
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
- Overrides:
setTransactionService
in classRepositoryContainer
- Parameters:
transactionService
- service to give transactions when reading from the container
-
getRegistry
public org.springframework.extensions.webscripts.Registry getRegistry()
- Specified by:
getRegistry
in interfaceorg.springframework.extensions.webscripts.Container
- Overrides:
getRegistry
in classorg.springframework.extensions.webscripts.AbstractRuntimeContainer
-
onEnableTenant
public void onEnableTenant()
- Specified by:
onEnableTenant
in interfaceTenantDeployer
-
onDisableTenant
public void onDisableTenant()
- Specified by:
onDisableTenant
in interfaceTenantDeployer
-
init
public void init()
- Specified by:
init
in interfaceTenantDeployer
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceTenantDeployer
-
reset
public void reset()
- Specified by:
reset
in interfaceorg.springframework.extensions.webscripts.Container
- Overrides:
reset
in classRepositoryContainer
-
-