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.kernel.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 boolean getWARFile();
058    
059            public boolean hasSetContent();
060    
061            public boolean isStandard();
062    
063            public boolean isWARFile();
064    
065            public void setColumns(List<String> columns);
066    
067            public void setContent(String content);
068    
069            public void setName(String name);
070    
071            public void setServletContext(ServletContext servletContext);
072    
073            public void setServletContextName(String servletContextName);
074    
075            public void setStandard(boolean standard);
076    
077            public void setTemplatePath(String templatePath);
078    
079            public void setThemeId(String themeId);
080    
081            public void setThumbnailPath(String thumbnailPath);
082    
083    }