1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.model;
16  
17  
18  /**
19   * <a href="Layout.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This interface is a model that represents the Layout table in the
28   * database.
29   * </p>
30   *
31   * <p>
32   * Customize {@link com.liferay.portal.model.impl.LayoutImpl} and rerun the
33   * ServiceBuilder to generate the new methods.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       LayoutModel
38   * @see       com.liferay.portal.model.impl.LayoutImpl
39   * @see       com.liferay.portal.model.impl.LayoutModelImpl
40   * @generated
41   */
42  public interface Layout extends LayoutModel {
43      public com.liferay.portal.model.Group getGroup();
44  
45      public com.liferay.portal.model.Group getScopeGroup()
46          throws com.liferay.portal.kernel.exception.PortalException,
47              com.liferay.portal.kernel.exception.SystemException;
48  
49      public boolean hasScopeGroup()
50          throws com.liferay.portal.kernel.exception.PortalException,
51              com.liferay.portal.kernel.exception.SystemException;
52  
53      public boolean isPublicLayout();
54  
55      public long getAncestorPlid();
56  
57      public long getAncestorLayoutId();
58  
59      public java.util.List<com.liferay.portal.model.Layout> getAncestors()
60          throws com.liferay.portal.kernel.exception.PortalException,
61              com.liferay.portal.kernel.exception.SystemException;
62  
63      public boolean hasAncestor(long layoutId)
64          throws com.liferay.portal.kernel.exception.PortalException,
65              com.liferay.portal.kernel.exception.SystemException;
66  
67      public boolean isFirstParent();
68  
69      public boolean isFirstChild();
70  
71      public boolean isRootLayout();
72  
73      public java.util.List<com.liferay.portal.model.Layout> getChildren()
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public boolean hasChildren()
77          throws com.liferay.portal.kernel.exception.SystemException;
78  
79      public java.util.List<com.liferay.portal.model.Layout> getAllChildren()
80          throws com.liferay.portal.kernel.exception.SystemException;
81  
82      public java.util.List<com.liferay.portal.model.Layout> getChildren(
83          com.liferay.portal.security.permission.PermissionChecker permissionChecker)
84          throws com.liferay.portal.kernel.exception.PortalException,
85              com.liferay.portal.kernel.exception.SystemException;
86  
87      public java.lang.String getName(java.util.Locale locale);
88  
89      public java.lang.String getName(java.lang.String localeLanguageId);
90  
91      public java.lang.String getName(java.util.Locale locale, boolean useDefault);
92  
93      public java.lang.String getName(java.lang.String localeLanguageId,
94          boolean useDefault);
95  
96      public void setName(java.lang.String name, java.util.Locale locale);
97  
98      public java.lang.String getTitle(java.util.Locale locale);
99  
100     public java.lang.String getTitle(java.lang.String localeLanguageId);
101 
102     public java.lang.String getTitle(java.util.Locale locale, boolean useDefault);
103 
104     public java.lang.String getTitle(java.lang.String localeLanguageId,
105         boolean useDefault);
106 
107     public java.lang.String getHTMLTitle(java.util.Locale locale);
108 
109     public java.lang.String getHTMLTitle(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 com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties();
120 
121     public void setTypeSettingsProperties(
122         com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties);
123 
124     public com.liferay.portal.model.LayoutSet getLayoutSet();
125 
126     public boolean isInheritLookAndFeel();
127 
128     public com.liferay.portal.model.Theme getTheme()
129         throws com.liferay.portal.kernel.exception.SystemException;
130 
131     public com.liferay.portal.model.ColorScheme getColorScheme()
132         throws com.liferay.portal.kernel.exception.SystemException;
133 
134     public boolean isInheritWapLookAndFeel();
135 
136     public com.liferay.portal.model.Theme getWapTheme()
137         throws com.liferay.portal.kernel.exception.SystemException;
138 
139     public com.liferay.portal.model.ColorScheme getWapColorScheme()
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public java.lang.String getCssText();
143 
144     public java.lang.String getRegularURL(
145         javax.servlet.http.HttpServletRequest request)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public java.lang.String getResetMaxStateURL(
149         javax.servlet.http.HttpServletRequest request)
150         throws com.liferay.portal.kernel.exception.SystemException;
151 
152     public java.lang.String getResetLayoutURL(
153         javax.servlet.http.HttpServletRequest request)
154         throws com.liferay.portal.kernel.exception.SystemException;
155 
156     public java.lang.String getTarget();
157 
158     public boolean isChildSelected(boolean selectable,
159         com.liferay.portal.model.Layout layout);
160 
161     public boolean isSelected(boolean selectable,
162         com.liferay.portal.model.Layout layout, long ancestorPlid);
163 }