001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.model;
022:
023: /**
024: * <a href="Layout.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface is a model that represents the <code>Layout</code> table
033: * in the database.
034: * </p>
035: *
036: * <p>
037: * Customize <code>com.liferay.portal.service.model.impl.LayoutImpl</code>
038: * and rerun the ServiceBuilder to generate the new methods.
039: * </p>
040: *
041: * @author Brian Wing Shun Chan
042: *
043: * @see com.liferay.portal.service.model.LayoutModel
044: * @see com.liferay.portal.service.model.impl.LayoutImpl
045: * @see com.liferay.portal.service.model.impl.LayoutModelImpl
046: *
047: */
048: public interface Layout extends LayoutModel {
049: public com.liferay.portal.model.Group getGroup();
050:
051: public boolean isShared();
052:
053: public long getAncestorPlid();
054:
055: public long getAncestorLayoutId();
056:
057: public java.util.List getAncestors()
058: throws com.liferay.portal.SystemException,
059: com.liferay.portal.PortalException;
060:
061: public boolean hasAncestor(long layoutId)
062: throws com.liferay.portal.SystemException,
063: com.liferay.portal.PortalException;
064:
065: public boolean isFirstParent();
066:
067: public boolean isFirstChild();
068:
069: public boolean isRootLayout();
070:
071: public java.util.List getChildren()
072: throws com.liferay.portal.SystemException,
073: com.liferay.portal.PortalException;
074:
075: public java.util.List getAllChildren()
076: throws com.liferay.portal.SystemException,
077: com.liferay.portal.PortalException;
078:
079: public java.util.List getChildren(
080: com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker)
081: throws com.liferay.portal.SystemException,
082: com.liferay.portal.PortalException;
083:
084: public java.lang.String getName(java.util.Locale locale);
085:
086: public java.lang.String getName(java.lang.String localeLanguageId);
087:
088: public java.lang.String getName(java.util.Locale locale,
089: boolean useDefault);
090:
091: public java.lang.String getName(java.lang.String localeLanguageId,
092: boolean useDefault);
093:
094: public void setName(java.lang.String name, java.util.Locale locale);
095:
096: public java.lang.String getTitle(java.util.Locale locale);
097:
098: public java.lang.String getTitle(java.lang.String localeLanguageId);
099:
100: public java.lang.String getTitle(java.util.Locale locale,
101: boolean useDefault);
102:
103: public java.lang.String getTitle(java.lang.String localeLanguageId,
104: boolean useDefault);
105:
106: public java.lang.String getHTMLTitle(java.util.Locale locale);
107:
108: public java.lang.String getHTMLTitle(
109: java.lang.String localeLanguageId);
110:
111: public void setTitle(java.lang.String title, java.util.Locale locale);
112:
113: public com.liferay.portal.model.LayoutType getLayoutType();
114:
115: public java.lang.String getTypeSettings();
116:
117: public void setTypeSettings(java.lang.String typeSettings);
118:
119: public java.util.Properties getTypeSettingsProperties();
120:
121: public void setTypeSettingsProperties(
122: java.util.Properties typeSettingsProperties);
123:
124: public java.lang.String getDefaultFriendlyURL();
125:
126: public com.liferay.portal.model.LayoutSet getLayoutSet();
127:
128: public boolean isInheritLookAndFeel();
129:
130: public com.liferay.portal.model.Theme getTheme()
131: throws com.liferay.portal.SystemException,
132: com.liferay.portal.PortalException;
133:
134: public com.liferay.portal.model.ColorScheme getColorScheme()
135: throws com.liferay.portal.SystemException,
136: com.liferay.portal.PortalException;
137:
138: public boolean isInheritWapLookAndFeel();
139:
140: public com.liferay.portal.model.Theme getWapTheme()
141: throws com.liferay.portal.SystemException,
142: com.liferay.portal.PortalException;
143:
144: public com.liferay.portal.model.ColorScheme getWapColorScheme()
145: throws com.liferay.portal.SystemException,
146: com.liferay.portal.PortalException;
147:
148: public java.lang.String getCssText()
149: throws com.liferay.portal.SystemException,
150: com.liferay.portal.PortalException;
151:
152: public java.lang.String getRegularURL(
153: javax.servlet.http.HttpServletRequest req)
154: throws com.liferay.portal.SystemException,
155: com.liferay.portal.PortalException;
156:
157: public java.lang.String getResetMaxStateURL(
158: javax.servlet.http.HttpServletRequest req)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portal.PortalException;
161:
162: public java.lang.String getResetLayoutURL(
163: javax.servlet.http.HttpServletRequest req)
164: throws com.liferay.portal.SystemException,
165: com.liferay.portal.PortalException;
166:
167: public java.lang.String getTarget();
168:
169: public boolean isSelected(boolean selectable,
170: com.liferay.portal.model.Layout layout, long ancestorPlid);
171: }
|