com.liferay.portal.kernel.velocity
Class VelocityEngineUtil

java.lang.Object
  extended by com.liferay.portal.kernel.velocity.VelocityEngineUtil

public class VelocityEngineUtil
extends java.lang.Object

View Source

Author:
Raymond Augé

Constructor Summary
VelocityEngineUtil()
           
 
Method Summary
static void flushTemplate(java.lang.String resource)
           
static VelocityContext getEmptyContext()
           
static VelocityContext getRestrictedToolsContext()
           
static VelocityContext getStandardToolsContext()
           
static VelocityEngine getVelocityEngine()
           
static VelocityContext getWrappedRestrictedToolsContext()
           
static VelocityContext getWrappedStandardToolsContext()
           
static void init()
           
static boolean mergeTemplate(java.lang.String velocityTemplateId, java.lang.String velocityTemplateContent, VelocityContext velocityContext, java.io.Writer writer)
           
static boolean mergeTemplate(java.lang.String velocityTemplateId, VelocityContext velocityContext, java.io.Writer writer)
           
static boolean resourceExists(java.lang.String resource)
           
 void setVelocityEngine(VelocityEngine velocityEngine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityEngineUtil

public VelocityEngineUtil()
Method Detail

flushTemplate

public static void flushTemplate(java.lang.String resource)

getVelocityEngine

public static VelocityEngine getVelocityEngine()

init

public static void init()

getEmptyContext

public static VelocityContext getEmptyContext()

getRestrictedToolsContext

public static VelocityContext getRestrictedToolsContext()

getStandardToolsContext

public static VelocityContext getStandardToolsContext()

getWrappedRestrictedToolsContext

public static VelocityContext getWrappedRestrictedToolsContext()

getWrappedStandardToolsContext

public static VelocityContext getWrappedStandardToolsContext()

mergeTemplate

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

mergeTemplate

public static 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

public static boolean resourceExists(java.lang.String resource)

setVelocityEngine

public void setVelocityEngine(VelocityEngine velocityEngine)