|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.portletdisplaytemplate.util.PortletDisplayTemplateUtil
public class PortletDisplayTemplateUtil
| Constructor Summary | |
|---|---|
PortletDisplayTemplateUtil()
|
|
| Method Summary | |
|---|---|
static DDMTemplate |
fetchDDMTemplate(long groupId,
String displayStyle)
Returns the portlet display template's DDM template matching the group and display style stored in the portlet configuration. |
static long |
getDDMTemplateGroupId(long groupId)
Returns the group ID of the portlet display template's DDM template. |
static String |
getDDMTemplateUuid(String displayStyle)
Returns the UUID of the portlet display template's DDM template from the display style stored in the portlet configuration. |
static PortletDisplayTemplate |
getPortletDisplayTemplate()
|
static long |
getPortletDisplayTemplateDDMTemplateId(long groupId,
String displayStyle)
Returns the primary key of the portlet display template's DDM template matching the group and the display style stored in the portlet configuration. |
static List<TemplateHandler> |
getPortletDisplayTemplateHandlers()
Returns the portlet display template handlers. |
static Map<String,TemplateVariableGroup> |
getTemplateVariableGroups(String language)
Returns the portlet display template's map of script variable groups for which hints are displayed in the template editor palette. |
static String |
renderDDMTemplate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
long ddmTemplateId,
List<?> entries)
Returns the result of rendering the DDM template with the entries in the page context. |
static String |
renderDDMTemplate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
long ddmTemplateId,
List<?> entries,
Map<String,Object> contextObjects)
Returns the result of rendering the DDM template with the entries in the page context and template context. |
void |
setPortletDisplayTemplate(PortletDisplayTemplate portletDisplayTemplate)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortletDisplayTemplateUtil()
| Method Detail |
|---|
public static DDMTemplate fetchDDMTemplate(long groupId,
String displayStyle)
groupId - the primary key of the groupdisplayStyle - the display style stored in the portlet
configuration
public static long getDDMTemplateGroupId(long groupId)
groupId - the primary key of the group
public static String getDDMTemplateUuid(String displayStyle)
displayStyle - the display style stored in the portlet
configuration
public static PortletDisplayTemplate getPortletDisplayTemplate()
public static long getPortletDisplayTemplateDDMTemplateId(long groupId,
String displayStyle)
groupId - the primary key of the groupdisplayStyle - the display style stored in the portlet
configuration
public static List<TemplateHandler> getPortletDisplayTemplateHandlers()
public static Map<String,TemplateVariableGroup> getTemplateVariableGroups(String language)
language - the portlet display template's scripting language.
Acceptable values for the FreeMarker, Velocity, or XSL languages
are TemplateConstants.LANG_TYPE_FTL, TemplateConstants.LANG_TYPE_VM, or TemplateConstants.LANG_TYPE_XSL, respectively.
TemplateHandler.getTemplateVariableGroups(long, String, Locale)
public static String renderDDMTemplate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
long ddmTemplateId,
List<?> entries)
throws Exception
request - the request with which the template is rendered.response - the response with which the template is rendered.ddmTemplateId - the primary key of the DDM templateentries - the entries that are rendered in the template
Exception - if the DDM template could not be rendered
public static String renderDDMTemplate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
long ddmTemplateId,
List<?> entries,
Map<String,Object> contextObjects)
throws Exception
request - the request with which the template is rendered.response - the response with which the template is rendered.ddmTemplateId - the primary key of the DDM templateentries - the entries that are rendered in the templatecontextObjects - the map of objects defining the context in which
the template is rendered
Exception - if the DDM template could not be renderedpublic void setPortletDisplayTemplate(PortletDisplayTemplate portletDisplayTemplate)
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||