001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }