001    /**
002     * Copyright (c) 2000-present 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    
024    /**
025     * @author Brian Wing Shun Chan
026     * @author Raymond Aug??
027     * @author Shuyang Zhou
028     */
029    public interface RuntimePage {
030    
031            public StringBundler getProcessedTemplate(
032                            HttpServletRequest request, HttpServletResponse response,
033                            String portletId, TemplateResource templateResource)
034                    throws Exception;
035    
036            public void processCustomizationSettings(
037                            HttpServletRequest request, HttpServletResponse response,
038                            TemplateResource templateResource)
039                    throws Exception;
040    
041            public void processTemplate(
042                            HttpServletRequest request, HttpServletResponse response,
043                            String portletId, TemplateResource templateResource)
044                    throws Exception;
045    
046            public void processTemplate(
047                            HttpServletRequest request, HttpServletResponse response,
048                            TemplateResource templateResource)
049                    throws Exception;
050    
051            public String processXML(
052                            HttpServletRequest request, HttpServletResponse response,
053                            String content)
054                    throws Exception;
055    
056            public String processXML(
057                            HttpServletRequest request, String content,
058                            RuntimeLogic runtimeLogic)
059                    throws Exception;
060    
061    }