| java.lang.Object org.ofbiz.content.webapp.ftl.FreeMarkerWorker
FreeMarkerWorker | public class FreeMarkerWorker (Code) | | FreemarkerViewHandler - Freemarker Template Engine Util
author: Al Byers version: $Revision: 1.9 $ since: 3.0 |
Method Summary | |
public static void | addAllOfbizTransforms(Map context) | public static void | checkForLoop(String path, Map ctx) | public static void | convertContext(Map ctx) | public static Map | createEnvironmentMap(Environment env) | public static List | csvToList(String csv, GenericDelegator delegator) | public static String | determineMimeType(GenericDelegator delegator, GenericValue view, GenericValue parentContent, String contentId, String dataResourceId, String parentContentId) | public static Object | get(SimpleHash args, String key) | public static String | getArg(Map args, String key, Environment env) | public static String | getArg(Map args, String key, Map templateContext) | public static BeanModel | getBeanModel(String varName, Environment env) Gets BeanModel from FreeMarker context and returns the object that it wraps. | public static void | getSiteParameters(HttpServletRequest request, Map ctx) | public static Object | getWrappedObject(String varName, Environment env) Gets BeanModel from FreeMarker context and returns the object that it wraps. | public static String | logList(String lbl, List lst, int indent) | public static String | logMap(String lbl, Map map, int indent) | public static Configuration | makeDefaultOfbizConfig() | public static Map | makeNode(GenericValue thisContent) | public static String | nodeTrailToCsv(List nodeTrail) | public static void | overrideWithArgs(Map ctx, Map args) | public static void | reloadValues(Map context, Map saveValues) | public static void | removeValues(Map context, String[] removeKeyNames) | public static void | renderTemplate(String templateIdString, String template, Map context, Writer outWriter) | public static void | renderTemplate(String templateIdString, Reader templateReader, Map context, Writer outWriter) | public static Map | saveValues(Map context, String[] saveKeyNames) | public static void | traceNodeTrail(String lbl, List nodeTrail) | public static Object | unwrap(Object o) |
addAllOfbizTransforms | public static void addAllOfbizTransforms(Map context)(Code) | | |
convertContext | public static void convertContext(Map ctx)(Code) | | |
createEnvironmentMap | public static Map createEnvironmentMap(Environment env)(Code) | | |
getBeanModel | public static BeanModel getBeanModel(String varName, Environment env)(Code) | | Gets BeanModel from FreeMarker context and returns the object that it wraps.
Parameters: varName - the name of the variable in the FreeMarker context. Parameters: env - the FreeMarker Environment |
getWrappedObject | public static Object getWrappedObject(String varName, Environment env)(Code) | | Gets BeanModel from FreeMarker context and returns the object that it wraps.
Parameters: varName - the name of the variable in the FreeMarker context. Parameters: env - the FreeMarker Environment |
makeDefaultOfbizConfig | public static Configuration makeDefaultOfbizConfig() throws TemplateException(Code) | | |
overrideWithArgs | public static void overrideWithArgs(Map ctx, Map args)(Code) | | |
reloadValues | public static void reloadValues(Map context, Map saveValues)(Code) | | |
removeValues | public static void removeValues(Map context, String[] removeKeyNames)(Code) | | |
traceNodeTrail | public static void traceNodeTrail(String lbl, List nodeTrail)(Code) | | |
|
|