001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.layoutconfiguration.util;
016    
017    import com.liferay.portal.kernel.template.TemplateResource;
018    import com.liferay.portal.kernel.util.StringBundler;
019    import com.liferay.portal.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    /**
026     * @author Brian Wing Shun Chan
027     * @author Raymond Aug??
028     * @author Shuyang Zhou
029     */
030    public interface RuntimePage {
031    
032            public StringBundler getProcessedTemplate(
033                            PageContext pageContext, String portletId,
034                            TemplateResource templateResource)
035                    throws Exception;
036    
037            public void processCustomizationSettings(
038                            PageContext pageContext, TemplateResource templateResource)
039                    throws Exception;
040    
041            public void processTemplate(
042                            PageContext pageContext, String portletId,
043                            TemplateResource templateResource)
044                    throws Exception;
045    
046            public void processTemplate(
047                            PageContext pageContext, TemplateResource templateResource)
048                    throws Exception;
049    
050            public String processXML(
051                            HttpServletRequest request, HttpServletResponse response,
052                            String content)
053                    throws Exception;
054    
055            public String processXML(
056                            HttpServletRequest request, String content,
057                            RuntimeLogic runtimeLogic)
058                    throws Exception;
059    
060    }