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 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() |
String |
getDefaultEncoding() |
boolean |
hasTemplate(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(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, process, processString, setLocalizedLookup
getExtension, getName, getProcessorExtensions, register, registerProcessorExtension, setExtension, setName, setScriptService, setServiceRegistry, setTemplateService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected org.springframework.extensions.webscripts.SearchPath searchPath
protected String defaultEncoding
protected freemarker.template.Configuration templateConfig
protected org.alfresco.repo.template.FreeMarkerProcessor freeMarkerProcessor
public void setDefaultEncoding(String defaultEncoding)
setDefaultEncoding
in class org.alfresco.repo.template.FreeMarkerProcessor
public 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
- SearchPathpublic void setFreeMarkerProcessor(org.alfresco.repo.template.FreeMarkerProcessor freeMarkerProcessor)
freeMarkerProcessor
- the free marker processorprotected freemarker.template.Configuration getConfig()
getConfig
in class org.alfresco.repo.template.FreeMarkerProcessor
public void reset()
public boolean hasTemplate(String templatePath)
protected void initConfig()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
Copyright © 2005–2017 Alfresco Software. All rights reserved.