Liferay 6.0.5

com.liferay.portal.kernel.velocity
Class VelocityEngineUtil

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

public class VelocityEngineUtil
extends Object


Constructor Summary
VelocityEngineUtil()
           
 
Method Summary
static void flushTemplate(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(String velocityTemplateId, String velocityTemplateContent, VelocityContext velocityContext, Writer writer)
           
static boolean mergeTemplate(String velocityTemplateId, VelocityContext velocityContext, Writer writer)
           
static boolean resourceExists(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(String resource)

getEmptyContext

public static VelocityContext getEmptyContext()

getRestrictedToolsContext

public static VelocityContext getRestrictedToolsContext()

getStandardToolsContext

public static VelocityContext getStandardToolsContext()

getVelocityEngine

public static VelocityEngine getVelocityEngine()

getWrappedRestrictedToolsContext

public static VelocityContext getWrappedRestrictedToolsContext()

getWrappedStandardToolsContext

public static VelocityContext getWrappedStandardToolsContext()

init

public static void init()
                 throws Exception
Throws:
Exception

mergeTemplate

public static boolean mergeTemplate(String velocityTemplateId,
                                    String velocityTemplateContent,
                                    VelocityContext velocityContext,
                                    Writer writer)
                             throws Exception
Throws:
Exception

mergeTemplate

public static boolean mergeTemplate(String velocityTemplateId,
                                    VelocityContext velocityContext,
                                    Writer writer)
                             throws Exception
Throws:
Exception

resourceExists

public static boolean resourceExists(String resource)

setVelocityEngine

public void setVelocityEngine(VelocityEngine velocityEngine)

Liferay 6.0.5