com.liferay.portal.kernel.template
Class TemplateManagerUtil
java.lang.Object
com.liferay.portal.kernel.template.TemplateManagerUtil
public class TemplateManagerUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateManagerUtil
public TemplateManagerUtil()
destroy
public static void destroy()
destroy
public static void destroy(ClassLoader classLoader)
getSupportedLanguageTypes
public static Set<String> getSupportedLanguageTypes(String propertyKey)
getTemplate
public static Template getTemplate(String templateManagerName,
TemplateResource templateResource,
boolean restricted)
throws TemplateException
- Throws:
TemplateException
getTemplate
public static Template getTemplate(String templateManagerName,
TemplateResource templateResource,
TemplateResource errorTemplateResource,
boolean restricted)
throws TemplateException
- Throws:
TemplateException
getTemplateManager
public static TemplateManager getTemplateManager(String templateManagerName)
getTemplateManagerNames
public static Set<String> getTemplateManagerNames()
getTemplateManagers
public static Map<String,TemplateManager> getTemplateManagers()
hasTemplateManager
public static boolean hasTemplateManager(String templateManagerName)
init
public static void init()
throws TemplateException
- Throws:
TemplateException
registerTemplateManager
public static void registerTemplateManager(TemplateManager templateManager)
throws TemplateException
- Throws:
TemplateException
unregisterTemplateManager
public static void unregisterTemplateManager(String templateManagerName)
setTemplateManagers
public void setTemplateManagers(List<TemplateManager> templateManagers)