001
014
015 package com.liferay.portlet.layoutconfiguration.util;
016
017 import com.liferay.portal.kernel.security.pacl.permission.PortalRuntimePermission;
018 import com.liferay.portal.kernel.template.TemplateResource;
019 import com.liferay.portlet.layoutconfiguration.util.xml.RuntimeLogic;
020
021 import javax.servlet.http.HttpServletRequest;
022 import javax.servlet.http.HttpServletResponse;
023 import javax.servlet.jsp.PageContext;
024
025
030 public class RuntimePageUtil {
031
032 public static RuntimePage getRuntimePage() {
033 PortalRuntimePermission.checkGetBeanProperty(RuntimePageUtil.class);
034
035 return _runtimePage;
036 }
037
038 public static void processCustomizationSettings(
039 PageContext pageContext, TemplateResource templateResource)
040 throws Exception {
041
042 getRuntimePage().processCustomizationSettings(
043 pageContext, templateResource);
044 }
045
046 public static void processTemplate(
047 PageContext pageContext, String portletId,
048 TemplateResource templateResource)
049 throws Exception {
050
051 getRuntimePage().processTemplate(
052 pageContext, portletId, templateResource);
053 }
054
055 public static void processTemplate(
056 PageContext pageContext, TemplateResource templateResource)
057 throws Exception {
058
059 getRuntimePage().processTemplate(pageContext, templateResource);
060 }
061
062 public static String processXML(
063 HttpServletRequest request, HttpServletResponse response,
064 String content)
065 throws Exception {
066
067 return getRuntimePage().processXML(request, response, content);
068 }
069
070 public static String processXML(
071 HttpServletRequest request, String content,
072 RuntimeLogic runtimeLogic)
073 throws Exception {
074
075 return getRuntimePage().processXML(request, content, runtimeLogic);
076 }
077
078 public void setRuntimePage(RuntimePage runtimePage) {
079 PortalRuntimePermission.checkSetBeanProperty(getClass());
080
081 _runtimePage = runtimePage;
082 }
083
084 private static RuntimePage _runtimePage;
085
086 }