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.model;
016    
017    import java.io.IOException;
018    import java.io.Serializable;
019    
020    import java.util.List;
021    import java.util.Locale;
022    
023    import javax.servlet.ServletContext;
024    
025    /**
026     * @author Brian Wing Shun Chan
027     */
028    public interface LayoutTemplate
029            extends Comparable<LayoutTemplate>, Plugin, Serializable {
030    
031            public List<String> getColumns();
032    
033            public String getContent();
034    
035            public String getContextPath();
036    
037            public String getLayoutTemplateId();
038    
039            public String getName();
040    
041            public String getName(Locale locale);
042    
043            public String getServletContextName();
044    
045            public boolean getStandard();
046    
047            public String getStaticResourcePath();
048    
049            public String getTemplatePath();
050    
051            public String getThemeId();
052    
053            public String getThumbnailPath();
054    
055            public String getUncachedContent() throws IOException;
056    
057            public String getUncachedWapContent() throws IOException;
058    
059            public String getWapContent();
060    
061            public String getWapTemplatePath();
062    
063            public boolean getWARFile();
064    
065            public boolean hasSetContent();
066    
067            public boolean hasSetWapContent();
068    
069            public boolean isStandard();
070    
071            public boolean isWARFile();
072    
073            public void setColumns(List<String> columns);
074    
075            public void setContent(String content);
076    
077            public void setName(String name);
078    
079            public void setServletContext(ServletContext servletContext);
080    
081            public void setServletContextName(String servletContextName);
082    
083            public void setStandard(boolean standard);
084    
085            public void setTemplatePath(String templatePath);
086    
087            public void setThemeId(String themeId);
088    
089            public void setThumbnailPath(String thumbnailPath);
090    
091            public void setWapContent(String wapContent);
092    
093            public void setWapTemplatePath(String wapWapTemplatePath);
094    
095    }