public class RepositoryTemplateProcessor
extends org.alfresco.repo.template.FreeMarkerProcessor
implements org.springframework.extensions.webscripts.TemplateProcessor, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
defaultEncoding |
protected org.alfresco.repo.template.FreeMarkerProcessor |
freeMarkerProcessor |
protected org.springframework.extensions.webscripts.SearchPath |
searchPath |
protected freemarker.template.Configuration |
templateConfig |
| Constructor and Description |
|---|
RepositoryTemplateProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected freemarker.template.Configuration |
getConfig() |
java.lang.String |
getDefaultEncoding() |
boolean |
hasTemplate(java.lang.String templatePath) |
protected void |
initConfig()
Initialise FreeMarker Configuration
|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
reset() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCacheSize(int cacheSize)
Deprecated.
|
void |
setDefaultEncoding(java.lang.String defaultEncoding) |
void |
setFreeMarkerProcessor(org.alfresco.repo.template.FreeMarkerProcessor freeMarkerProcessor)
Set the freemarker processor
|
void |
setSearchPath(org.springframework.extensions.webscripts.SearchPath searchPath) |
void |
setUpdateDelay(int updateDelay) |
convertValue, getStringConfig, process, processStringgetExtension, getName, getProcessorExtensions, register, registerProcessorExtension, setExtension, setName, setScriptService, setServiceRegistry, setTemplateServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected org.springframework.extensions.webscripts.SearchPath searchPath
protected java.lang.String defaultEncoding
protected freemarker.template.Configuration templateConfig
protected org.alfresco.repo.template.FreeMarkerProcessor freeMarkerProcessor
public void setDefaultEncoding(java.lang.String defaultEncoding)
setDefaultEncoding in class org.alfresco.repo.template.FreeMarkerProcessorpublic java.lang.String getDefaultEncoding()
public void setUpdateDelay(int updateDelay)
updateDelay - the time in seconds between checks on the modified date for cached templates@Deprecated public void setCacheSize(int cacheSize)
cacheSize - not used anymorepublic void setSearchPath(org.springframework.extensions.webscripts.SearchPath searchPath)
searchPath - public void setFreeMarkerProcessor(org.alfresco.repo.template.FreeMarkerProcessor freeMarkerProcessor)
freeMarkerProcessor - the free marker processorprotected freemarker.template.Configuration getConfig()
getConfig in class org.alfresco.repo.template.FreeMarkerProcessorpublic void reset()
public boolean hasTemplate(java.lang.String templatePath)
protected void initConfig()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListenerCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.