001    /**
002     * Copyright (c) 2000-2012 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.portlet.layoutconfiguration.util;
016    
017    import com.liferay.portal.kernel.template.TemplateResource;
018    import com.liferay.portlet.layoutconfiguration.util.xml.RuntimeLogic;
019    
020    import javax.servlet.http.HttpServletRequest;
021    import javax.servlet.http.HttpServletResponse;
022    import javax.servlet.jsp.PageContext;
023    
024    /**
025     * @author Brian Wing Shun Chan
026     * @author Raymond Augé
027     * @author Shuyang Zhou
028     */
029    public interface RuntimePage {
030    
031            public void processCustomizationSettings(
032                            PageContext pageContext, TemplateResource templateResource)
033                    throws Exception;
034    
035            public void processTemplate(
036                            PageContext pageContext, String portletId,
037                            TemplateResource templateResource)
038                    throws Exception;
039    
040            public void processTemplate(
041                            PageContext pageContext, TemplateResource templateResource)
042                    throws Exception;
043    
044            public String processXML(
045                            HttpServletRequest request, HttpServletResponse response,
046                            String content)
047                    throws Exception;
048    
049            public String processXML(
050                            HttpServletRequest request, String content,
051                            RuntimeLogic runtimeLogic)
052                    throws Exception;
053    
054    }