public abstract class AbstractSingleResourceTemplate extends AbstractTemplate
Modifier and Type | Field and Description |
---|---|
protected com.liferay.portal.kernel.template.TemplateResource |
templateResource |
context, errorTemplateResource
Constructor and Description |
---|
AbstractSingleResourceTemplate(com.liferay.portal.kernel.template.TemplateResource templateResource,
com.liferay.portal.kernel.template.TemplateResource errorTemplateResource,
Map<String,Object> context,
TemplateContextHelper templateContextHelper,
String templateManagerName,
long interval) |
Modifier and Type | Method and Description |
---|---|
protected void |
cacheTemplateResource(String templateManagerName) |
void |
doProcessTemplate(Writer writer) |
protected com.liferay.portal.kernel.cache.PortalCache<String,Serializable> |
getPortalCache(com.liferay.portal.kernel.template.TemplateResource templateResource,
String portalCacheName) |
protected abstract void |
processTemplate(com.liferay.portal.kernel.template.TemplateResource templateResource,
Writer writer) |
void |
processTemplate(Writer writer) |
_write, clear, containsKey, containsValue, entrySet, get, get, getKeys, getTemplateResourceUUID, handleException, isEmpty, keySet, prepare, put, putAll, remove, size, values, write
protected com.liferay.portal.kernel.template.TemplateResource templateResource
public AbstractSingleResourceTemplate(com.liferay.portal.kernel.template.TemplateResource templateResource, com.liferay.portal.kernel.template.TemplateResource errorTemplateResource, Map<String,Object> context, TemplateContextHelper templateContextHelper, String templateManagerName, long interval)
public void doProcessTemplate(Writer writer) throws Exception
Exception
public void processTemplate(Writer writer) throws com.liferay.portal.kernel.template.TemplateException
com.liferay.portal.kernel.template.TemplateException
protected void cacheTemplateResource(String templateManagerName)
protected com.liferay.portal.kernel.cache.PortalCache<String,Serializable> getPortalCache(com.liferay.portal.kernel.template.TemplateResource templateResource, String portalCacheName)
protected abstract void processTemplate(com.liferay.portal.kernel.template.TemplateResource templateResource, Writer writer) throws Exception
Exception