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)

getEmptyContext

VelocityContext getEmptyContext()

getRestrictedToolsContext

VelocityContext getRestrictedToolsContext()

getStandardToolsContext

VelocityContext getStandardToolsContext()

getWrappedRestrictedToolsContext

VelocityContext getWrappedRestrictedToolsContext()

getWrappedStandardToolsContext

VelocityContext getWrappedStandardToolsContext()

init

void init()
          throws java.lang.Exception
Throws:
java.lang.Exception

mergeTemplate

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

mergeTemplate

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

resourceExists

boolean resourceExists(java.lang.String resource)