com.liferay.portal.kernel.velocity
Class VelocityEngineUtil
java.lang.Object
com.liferay.portal.kernel.velocity.VelocityEngineUtil
public class VelocityEngineUtil
- extends java.lang.Object
View Source
- Author:
- Raymond Augé
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityEngineUtil
public VelocityEngineUtil()
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)