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.Logloggerprotected TenantAdminServicetenantAdminServiceprotected TransactionServicetransactionService
-
Constructor Summary
Constructors Constructor Description TenantRepositoryContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()org.springframework.extensions.webscripts.RegistrygetRegistry()voidinit()voidonDisableTenant()voidonEnableTenant()voidreset()voidsetTenantAdminService(TenantAdminService tenantAdminService)voidsetTransactionService(TransactionService transactionService)voidsetWebScriptsRegistryCache(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, 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:
setTransactionServicein classRepositoryContainer- Parameters:
transactionService- service to give transactions when reading from the container
-
getRegistry
public org.springframework.extensions.webscripts.Registry getRegistry()
- Specified by:
getRegistryin interfaceorg.springframework.extensions.webscripts.Container- Overrides:
getRegistryin classorg.springframework.extensions.webscripts.AbstractRuntimeContainer
-
onEnableTenant
public void onEnableTenant()
- Specified by:
onEnableTenantin interfaceTenantDeployer
-
onDisableTenant
public void onDisableTenant()
- Specified by:
onDisableTenantin interfaceTenantDeployer
-
init
public void init()
- Specified by:
initin interfaceTenantDeployer
-
destroy
public void destroy()
- Specified by:
destroyin interfaceTenantDeployer
-
reset
public void reset()
- Specified by:
resetin interfaceorg.springframework.extensions.webscripts.Container- Overrides:
resetin classRepositoryContainer
-
-