com.liferay.portal.kernel.velocity
Interface VelocityEngine


public interface VelocityEngine

View Source

Author:
Raymond Augé

Method Summary
 void flushTemplate(java.lang.String resource)
           
 VelocityContext getEmptyContext()
           
 VelocityContext getRestrictedToolsContext()
           
 VelocityContext getStandardToolsContext()
           
 VelocityContext getWrappedRestrictedToolsContext()
           
 VelocityContext getWrappedStandardToolsContext()
           
 void init()
           
 boolean mergeTemplate(java.lang.String velocityTemplateId, java.lang.String velocityTemplateContent, VelocityContext velocityContext, java.io.Writer writer)
           
 boolean mergeTemplate(java.lang.String velocityTemplateId, VelocityContext velocityContext, java.io.Writer writer)
           
 boolean resourceExists(java.lang.String resource)
           
 

Method Detail

flushTemplate

void flushTemplate(java.lang.String resource)

init

void init()

getEmptyContext

VelocityContext getEmptyContext()

getRestrictedToolsContext

VelocityContext getRestrictedToolsContext()

getStandardToolsContext

VelocityContext getStandardToolsContext()

getWrappedRestrictedToolsContext

VelocityContext getWrappedRestrictedToolsContext()

getWrappedStandardToolsContext

VelocityContext getWrappedStandardToolsContext()

mergeTemplate

boolean mergeTemplate(java.lang.String velocityTemplateId,
                      VelocityContext velocityContext,
                      java.io.Writer writer)
                      throws SystemException,
                             java.io.IOException
Throws:
SystemException
java.io.IOException

mergeTemplate

boolean mergeTemplate(java.lang.String velocityTemplateId,
                      java.lang.String velocityTemplateContent,
                      VelocityContext velocityContext,
                      java.io.Writer writer)
                      throws SystemException,
                             java.io.IOException
Throws:
SystemException
java.io.IOException

resourceExists

boolean resourceExists(java.lang.String resource)