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