1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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 boolean isPublicLayout();
46  
47      public long getAncestorPlid();
48  
49      public long getAncestorLayoutId();
50  
51      public java.util.List<com.liferay.portal.model.Layout> getAncestors()
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException;
54  
55      public boolean hasAncestor(long layoutId)
56          throws com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException;
58  
59      public boolean isFirstParent();
60  
61      public boolean isFirstChild();
62  
63      public boolean isRootLayout();
64  
65      public java.util.List<com.liferay.portal.model.Layout> getChildren()
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portal.model.Layout> getAllChildren()
69          throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portal.model.Layout> getChildren(
72          com.liferay.portal.security.permission.PermissionChecker permissionChecker)
73          throws com.liferay.portal.PortalException,
74              com.liferay.portal.SystemException;
75  
76      public java.lang.String getName(java.util.Locale locale);
77  
78      public java.lang.String getName(java.lang.String localeLanguageId);
79  
80      public java.lang.String getName(java.util.Locale locale, boolean useDefault);
81  
82      public java.lang.String getName(java.lang.String localeLanguageId,
83          boolean useDefault);
84  
85      public void setName(java.lang.String name, java.util.Locale locale);
86  
87      public java.lang.String getTitle(java.util.Locale locale);
88  
89      public java.lang.String getTitle(java.lang.String localeLanguageId);
90  
91      public java.lang.String getTitle(java.util.Locale locale, boolean useDefault);
92  
93      public java.lang.String getTitle(java.lang.String localeLanguageId,
94          boolean useDefault);
95  
96      public java.lang.String getHTMLTitle(java.util.Locale locale);
97  
98      public java.lang.String getHTMLTitle(java.lang.String localeLanguageId);
99  
100     public void setTitle(java.lang.String title, java.util.Locale locale);
101 
102     public com.liferay.portal.model.LayoutType getLayoutType();
103 
104     public java.lang.String getTypeSettings();
105 
106     public void setTypeSettings(java.lang.String typeSettings);
107 
108     public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties();
109 
110     public void setTypeSettingsProperties(
111         com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties);
112 
113     public com.liferay.portal.model.LayoutSet getLayoutSet();
114 
115     public boolean isInheritLookAndFeel();
116 
117     public com.liferay.portal.model.Theme getTheme();
118 
119     public com.liferay.portal.model.ColorScheme getColorScheme();
120 
121     public boolean isInheritWapLookAndFeel();
122 
123     public com.liferay.portal.model.Theme getWapTheme();
124 
125     public com.liferay.portal.model.ColorScheme getWapColorScheme();
126 
127     public java.lang.String getCssText();
128 
129     public java.lang.String getRegularURL(
130         javax.servlet.http.HttpServletRequest request)
131         throws com.liferay.portal.SystemException;
132 
133     public java.lang.String getResetMaxStateURL(
134         javax.servlet.http.HttpServletRequest request)
135         throws com.liferay.portal.SystemException;
136 
137     public java.lang.String getResetLayoutURL(
138         javax.servlet.http.HttpServletRequest request)
139         throws com.liferay.portal.SystemException;
140 
141     public java.lang.String getTarget();
142 
143     public boolean isChildSelected(boolean selectable,
144         com.liferay.portal.model.Layout layout);
145 
146     public boolean isSelected(boolean selectable,
147         com.liferay.portal.model.Layout layout, long ancestorPlid);
148 }