public class RepositoryContainer
extends org.springframework.extensions.webscripts.AbstractRuntimeContainer
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
RepositoryContainer() |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(org.springframework.extensions.webscripts.Authenticator auth,
org.springframework.extensions.webscripts.Description.RequiredAuthentication required) |
void |
executeScript(org.springframework.extensions.webscripts.WebScriptRequest scriptReq,
org.springframework.extensions.webscripts.WebScriptResponse scriptRes,
org.springframework.extensions.webscripts.Authenticator auth) |
protected void |
executeScriptInternal(org.springframework.extensions.webscripts.WebScriptRequest scriptReq,
org.springframework.extensions.webscripts.WebScriptResponse scriptRes,
org.springframework.extensions.webscripts.Authenticator auth) |
org.springframework.extensions.webscripts.ServerModel |
getDescription() |
Class<?>[] |
getNotPublicExceptions() |
Class<?>[] |
getPublicExceptions() |
org.springframework.extensions.webscripts.Description.RequiredAuthentication |
getRequiredAuthentication() |
Map<String,Object> |
getScriptParameters() |
Map<String,Object> |
getTemplateParameters() |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
reset() |
void |
setAuthorityService(AuthorityService authorityService) |
void |
setDescriptorService(DescriptorService descriptorService) |
void |
setEncryptTempFiles(Boolean encryptTempFiles) |
void |
setFallbackTransactionHelper(RetryingTransactionHelper fallbackTransactionHelper) |
void |
setMaxContentSize(Long maxContentSize) |
void |
setMemoryThreshold(Integer memoryThreshold) |
void |
setNotPublicExceptions(List<Class<?>> notPublicExceptions)
Exceptions which may contain information that cannot be displayed in UI
|
void |
setPublicExceptions(List<Class<?>> publicExceptions)
Exceptions which may contain information that need to display in UI
|
void |
setRepository(Repository repository) |
void |
setRepositoryImageResolver(RepositoryImageResolver imageResolver) |
void |
setTempDirectoryName(String tempDirectoryName) |
void |
setTransactionService(TransactionService transactionService) |
void |
setup() |
protected void |
transactionedExecute(org.springframework.extensions.webscripts.WebScript script,
org.springframework.extensions.webscripts.WebScriptRequest scriptReq,
org.springframework.extensions.webscripts.WebScriptResponse scriptRes)
Execute script within required level of transaction
|
allowCallbacks, getApplicationContext, getConfigService, getFormatRegistry, getName, getRegistry, getScriptParameterFactoryRegistry, getScriptProcessorRegistry, getSearchPath, getTemplateProcessorRegistry, setAllowCallbacks, setApplicationContext, setConfigService, setFormatRegistry, setName, setRegistry, setScriptObjects, setScriptParameterFactoryRegistry, setScriptProcessorRegistry, setSearchPath, setTemplateObjects, setTemplateProcessorRegistry
public void setup()
public void setEncryptTempFiles(Boolean encryptTempFiles)
public void setTempDirectoryName(String tempDirectoryName)
public void setMemoryThreshold(Integer memoryThreshold)
public void setMaxContentSize(Long maxContentSize)
public void setRepository(Repository repository)
repository
- Repositorypublic void setRepositoryImageResolver(RepositoryImageResolver imageResolver)
imageResolver
- RepositoryImageResolverpublic void setTransactionService(TransactionService transactionService)
transactionService
- TransactionServicepublic void setFallbackTransactionHelper(RetryingTransactionHelper fallbackTransactionHelper)
fallbackTransactionHelper
- an unlimited transaction helper used to generate error responsespublic void setDescriptorService(DescriptorService descriptorService)
descriptorService
- DescriptorServicepublic void setAuthorityService(AuthorityService authorityService)
authorityService
- AuthorityServicepublic void setNotPublicExceptions(List<Class<?>> notPublicExceptions)
notPublicExceptions
- - Class
<?>[] instance which contains list of not public exceptionspublic Class<?>[] getNotPublicExceptions()
public void setPublicExceptions(List<Class<?>> publicExceptions)
publicExceptions
- - Class
<?>[] instance which contains list of public exceptionspublic Class<?>[] getPublicExceptions()
public org.springframework.extensions.webscripts.ServerModel getDescription()
public Map<String,Object> getScriptParameters()
getScriptParameters
in interface org.springframework.extensions.webscripts.Container
getScriptParameters
in class org.springframework.extensions.webscripts.AbstractRuntimeContainer
public Map<String,Object> getTemplateParameters()
getTemplateParameters
in interface org.springframework.extensions.webscripts.Container
getTemplateParameters
in class org.springframework.extensions.webscripts.AbstractRuntimeContainer
public void executeScript(org.springframework.extensions.webscripts.WebScriptRequest scriptReq, org.springframework.extensions.webscripts.WebScriptResponse scriptRes, org.springframework.extensions.webscripts.Authenticator auth) throws IOException
IOException
protected void executeScriptInternal(org.springframework.extensions.webscripts.WebScriptRequest scriptReq, org.springframework.extensions.webscripts.WebScriptResponse scriptRes, org.springframework.extensions.webscripts.Authenticator auth) throws IOException
IOException
protected void transactionedExecute(org.springframework.extensions.webscripts.WebScript script, org.springframework.extensions.webscripts.WebScriptRequest scriptReq, org.springframework.extensions.webscripts.WebScriptResponse scriptRes) throws IOException
script
- WebScriptscriptReq
- WebScriptRequestscriptRes
- WebScriptResponseIOException
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
onApplicationEvent
in class org.springframework.extensions.webscripts.AbstractRuntimeContainer
public org.springframework.extensions.webscripts.Description.RequiredAuthentication getRequiredAuthentication()
getRequiredAuthentication
in interface org.springframework.extensions.webscripts.RuntimeContainer
getRequiredAuthentication
in class org.springframework.extensions.webscripts.AbstractRuntimeContainer
public boolean authenticate(org.springframework.extensions.webscripts.Authenticator auth, org.springframework.extensions.webscripts.Description.RequiredAuthentication required)
authenticate
in interface org.springframework.extensions.webscripts.RuntimeContainer
authenticate
in class org.springframework.extensions.webscripts.AbstractRuntimeContainer
public void reset()
reset
in interface org.springframework.extensions.webscripts.Container
reset
in class org.springframework.extensions.webscripts.AbstractRuntimeContainer
Copyright © 2005–2017 Alfresco Software. All rights reserved.