Liferay 6.1.2-ce-ga3

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 clearClassLoader(ClassLoader classLoader)
           
static void flushTemplate(String velocityTemplateId)
           
static VelocityContext getEmptyContext()
           
static VelocityContext getRestrictedToolsContext()
           
static VelocityContext getStandardToolsContext()
           
static VelocityEngine getVelocityEngine()
           
static VelocityContext getWrappedClassLoaderToolsContext()
           
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

clearClassLoader

public static void clearClassLoader(ClassLoader classLoader)

flushTemplate

public static void flushTemplate(String velocityTemplateId)

getEmptyContext

public static VelocityContext getEmptyContext()

getRestrictedToolsContext

public static VelocityContext getRestrictedToolsContext()

getStandardToolsContext

public static VelocityContext getStandardToolsContext()

getVelocityEngine

public static VelocityEngine getVelocityEngine()

getWrappedClassLoaderToolsContext

public static VelocityContext getWrappedClassLoaderToolsContext()

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.1.2-ce-ga3