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  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="LayoutSoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portal.service.http.LayoutServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portal.service.http.LayoutServiceSoap
37   * @generated
38   */
39  public class LayoutSoap implements Serializable {
40      public static LayoutSoap toSoapModel(Layout model) {
41          LayoutSoap soapModel = new LayoutSoap();
42  
43          soapModel.setPlid(model.getPlid());
44          soapModel.setGroupId(model.getGroupId());
45          soapModel.setCompanyId(model.getCompanyId());
46          soapModel.setPrivateLayout(model.getPrivateLayout());
47          soapModel.setLayoutId(model.getLayoutId());
48          soapModel.setParentLayoutId(model.getParentLayoutId());
49          soapModel.setName(model.getName());
50          soapModel.setTitle(model.getTitle());
51          soapModel.setDescription(model.getDescription());
52          soapModel.setType(model.getType());
53          soapModel.setTypeSettings(model.getTypeSettings());
54          soapModel.setHidden(model.getHidden());
55          soapModel.setFriendlyURL(model.getFriendlyURL());
56          soapModel.setIconImage(model.getIconImage());
57          soapModel.setIconImageId(model.getIconImageId());
58          soapModel.setThemeId(model.getThemeId());
59          soapModel.setColorSchemeId(model.getColorSchemeId());
60          soapModel.setWapThemeId(model.getWapThemeId());
61          soapModel.setWapColorSchemeId(model.getWapColorSchemeId());
62          soapModel.setCss(model.getCss());
63          soapModel.setPriority(model.getPriority());
64          soapModel.setDlFolderId(model.getDlFolderId());
65  
66          return soapModel;
67      }
68  
69      public static LayoutSoap[] toSoapModels(Layout[] models) {
70          LayoutSoap[] soapModels = new LayoutSoap[models.length];
71  
72          for (int i = 0; i < models.length; i++) {
73              soapModels[i] = toSoapModel(models[i]);
74          }
75  
76          return soapModels;
77      }
78  
79      public static LayoutSoap[][] toSoapModels(Layout[][] models) {
80          LayoutSoap[][] soapModels = null;
81  
82          if (models.length > 0) {
83              soapModels = new LayoutSoap[models.length][models[0].length];
84          }
85          else {
86              soapModels = new LayoutSoap[0][0];
87          }
88  
89          for (int i = 0; i < models.length; i++) {
90              soapModels[i] = toSoapModels(models[i]);
91          }
92  
93          return soapModels;
94      }
95  
96      public static LayoutSoap[] toSoapModels(List<Layout> models) {
97          List<LayoutSoap> soapModels = new ArrayList<LayoutSoap>(models.size());
98  
99          for (Layout model : models) {
100             soapModels.add(toSoapModel(model));
101         }
102 
103         return soapModels.toArray(new LayoutSoap[soapModels.size()]);
104     }
105 
106     public LayoutSoap() {
107     }
108 
109     public long getPrimaryKey() {
110         return _plid;
111     }
112 
113     public void setPrimaryKey(long pk) {
114         setPlid(pk);
115     }
116 
117     public long getPlid() {
118         return _plid;
119     }
120 
121     public void setPlid(long plid) {
122         _plid = plid;
123     }
124 
125     public long getGroupId() {
126         return _groupId;
127     }
128 
129     public void setGroupId(long groupId) {
130         _groupId = groupId;
131     }
132 
133     public long getCompanyId() {
134         return _companyId;
135     }
136 
137     public void setCompanyId(long companyId) {
138         _companyId = companyId;
139     }
140 
141     public boolean getPrivateLayout() {
142         return _privateLayout;
143     }
144 
145     public boolean isPrivateLayout() {
146         return _privateLayout;
147     }
148 
149     public void setPrivateLayout(boolean privateLayout) {
150         _privateLayout = privateLayout;
151     }
152 
153     public long getLayoutId() {
154         return _layoutId;
155     }
156 
157     public void setLayoutId(long layoutId) {
158         _layoutId = layoutId;
159     }
160 
161     public long getParentLayoutId() {
162         return _parentLayoutId;
163     }
164 
165     public void setParentLayoutId(long parentLayoutId) {
166         _parentLayoutId = parentLayoutId;
167     }
168 
169     public String getName() {
170         return _name;
171     }
172 
173     public void setName(String name) {
174         _name = name;
175     }
176 
177     public String getTitle() {
178         return _title;
179     }
180 
181     public void setTitle(String title) {
182         _title = title;
183     }
184 
185     public String getDescription() {
186         return _description;
187     }
188 
189     public void setDescription(String description) {
190         _description = description;
191     }
192 
193     public String getType() {
194         return _type;
195     }
196 
197     public void setType(String type) {
198         _type = type;
199     }
200 
201     public String getTypeSettings() {
202         return _typeSettings;
203     }
204 
205     public void setTypeSettings(String typeSettings) {
206         _typeSettings = typeSettings;
207     }
208 
209     public boolean getHidden() {
210         return _hidden;
211     }
212 
213     public boolean isHidden() {
214         return _hidden;
215     }
216 
217     public void setHidden(boolean hidden) {
218         _hidden = hidden;
219     }
220 
221     public String getFriendlyURL() {
222         return _friendlyURL;
223     }
224 
225     public void setFriendlyURL(String friendlyURL) {
226         _friendlyURL = friendlyURL;
227     }
228 
229     public boolean getIconImage() {
230         return _iconImage;
231     }
232 
233     public boolean isIconImage() {
234         return _iconImage;
235     }
236 
237     public void setIconImage(boolean iconImage) {
238         _iconImage = iconImage;
239     }
240 
241     public long getIconImageId() {
242         return _iconImageId;
243     }
244 
245     public void setIconImageId(long iconImageId) {
246         _iconImageId = iconImageId;
247     }
248 
249     public String getThemeId() {
250         return _themeId;
251     }
252 
253     public void setThemeId(String themeId) {
254         _themeId = themeId;
255     }
256 
257     public String getColorSchemeId() {
258         return _colorSchemeId;
259     }
260 
261     public void setColorSchemeId(String colorSchemeId) {
262         _colorSchemeId = colorSchemeId;
263     }
264 
265     public String getWapThemeId() {
266         return _wapThemeId;
267     }
268 
269     public void setWapThemeId(String wapThemeId) {
270         _wapThemeId = wapThemeId;
271     }
272 
273     public String getWapColorSchemeId() {
274         return _wapColorSchemeId;
275     }
276 
277     public void setWapColorSchemeId(String wapColorSchemeId) {
278         _wapColorSchemeId = wapColorSchemeId;
279     }
280 
281     public String getCss() {
282         return _css;
283     }
284 
285     public void setCss(String css) {
286         _css = css;
287     }
288 
289     public int getPriority() {
290         return _priority;
291     }
292 
293     public void setPriority(int priority) {
294         _priority = priority;
295     }
296 
297     public long getDlFolderId() {
298         return _dlFolderId;
299     }
300 
301     public void setDlFolderId(long dlFolderId) {
302         _dlFolderId = dlFolderId;
303     }
304 
305     private long _plid;
306     private long _groupId;
307     private long _companyId;
308     private boolean _privateLayout;
309     private long _layoutId;
310     private long _parentLayoutId;
311     private String _name;
312     private String _title;
313     private String _description;
314     private String _type;
315     private String _typeSettings;
316     private boolean _hidden;
317     private String _friendlyURL;
318     private boolean _iconImage;
319     private long _iconImageId;
320     private String _themeId;
321     private String _colorSchemeId;
322     private String _wapThemeId;
323     private String _wapColorSchemeId;
324     private String _css;
325     private int _priority;
326     private long _dlFolderId;
327 }