1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.List;
29  
30  /**
31   * <a href="LayoutSoap.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This class is used by
40   * <code>com.liferay.portal.service.http.LayoutServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.portal.service.http.LayoutServiceSoap
46   *
47   */
48  public class LayoutSoap implements Serializable {
49      public static LayoutSoap toSoapModel(Layout model) {
50          LayoutSoap soapModel = new LayoutSoap();
51  
52          soapModel.setPlid(model.getPlid());
53          soapModel.setGroupId(model.getGroupId());
54          soapModel.setCompanyId(model.getCompanyId());
55          soapModel.setPrivateLayout(model.getPrivateLayout());
56          soapModel.setLayoutId(model.getLayoutId());
57          soapModel.setParentLayoutId(model.getParentLayoutId());
58          soapModel.setName(model.getName());
59          soapModel.setTitle(model.getTitle());
60          soapModel.setDescription(model.getDescription());
61          soapModel.setType(model.getType());
62          soapModel.setTypeSettings(model.getTypeSettings());
63          soapModel.setHidden(model.getHidden());
64          soapModel.setFriendlyURL(model.getFriendlyURL());
65          soapModel.setIconImage(model.getIconImage());
66          soapModel.setIconImageId(model.getIconImageId());
67          soapModel.setThemeId(model.getThemeId());
68          soapModel.setColorSchemeId(model.getColorSchemeId());
69          soapModel.setWapThemeId(model.getWapThemeId());
70          soapModel.setWapColorSchemeId(model.getWapColorSchemeId());
71          soapModel.setCss(model.getCss());
72          soapModel.setPriority(model.getPriority());
73          soapModel.setDlFolderId(model.getDlFolderId());
74  
75          return soapModel;
76      }
77  
78      public static LayoutSoap[] toSoapModels(List models) {
79          List soapModels = new ArrayList(models.size());
80  
81          for (int i = 0; i < models.size(); i++) {
82              Layout model = (Layout)models.get(i);
83  
84              soapModels.add(toSoapModel(model));
85          }
86  
87          return (LayoutSoap[])soapModels.toArray(new LayoutSoap[0]);
88      }
89  
90      public LayoutSoap() {
91      }
92  
93      public long getPrimaryKey() {
94          return _plid;
95      }
96  
97      public void setPrimaryKey(long pk) {
98          setPlid(pk);
99      }
100 
101     public long getPlid() {
102         return _plid;
103     }
104 
105     public void setPlid(long plid) {
106         _plid = plid;
107     }
108 
109     public long getGroupId() {
110         return _groupId;
111     }
112 
113     public void setGroupId(long groupId) {
114         _groupId = groupId;
115     }
116 
117     public long getCompanyId() {
118         return _companyId;
119     }
120 
121     public void setCompanyId(long companyId) {
122         _companyId = companyId;
123     }
124 
125     public boolean getPrivateLayout() {
126         return _privateLayout;
127     }
128 
129     public boolean isPrivateLayout() {
130         return _privateLayout;
131     }
132 
133     public void setPrivateLayout(boolean privateLayout) {
134         _privateLayout = privateLayout;
135     }
136 
137     public long getLayoutId() {
138         return _layoutId;
139     }
140 
141     public void setLayoutId(long layoutId) {
142         _layoutId = layoutId;
143     }
144 
145     public long getParentLayoutId() {
146         return _parentLayoutId;
147     }
148 
149     public void setParentLayoutId(long parentLayoutId) {
150         _parentLayoutId = parentLayoutId;
151     }
152 
153     public String getName() {
154         return _name;
155     }
156 
157     public void setName(String name) {
158         _name = name;
159     }
160 
161     public String getTitle() {
162         return _title;
163     }
164 
165     public void setTitle(String title) {
166         _title = title;
167     }
168 
169     public String getDescription() {
170         return _description;
171     }
172 
173     public void setDescription(String description) {
174         _description = description;
175     }
176 
177     public String getType() {
178         return _type;
179     }
180 
181     public void setType(String type) {
182         _type = type;
183     }
184 
185     public String getTypeSettings() {
186         return _typeSettings;
187     }
188 
189     public void setTypeSettings(String typeSettings) {
190         _typeSettings = typeSettings;
191     }
192 
193     public boolean getHidden() {
194         return _hidden;
195     }
196 
197     public boolean isHidden() {
198         return _hidden;
199     }
200 
201     public void setHidden(boolean hidden) {
202         _hidden = hidden;
203     }
204 
205     public String getFriendlyURL() {
206         return _friendlyURL;
207     }
208 
209     public void setFriendlyURL(String friendlyURL) {
210         _friendlyURL = friendlyURL;
211     }
212 
213     public boolean getIconImage() {
214         return _iconImage;
215     }
216 
217     public boolean isIconImage() {
218         return _iconImage;
219     }
220 
221     public void setIconImage(boolean iconImage) {
222         _iconImage = iconImage;
223     }
224 
225     public long getIconImageId() {
226         return _iconImageId;
227     }
228 
229     public void setIconImageId(long iconImageId) {
230         _iconImageId = iconImageId;
231     }
232 
233     public String getThemeId() {
234         return _themeId;
235     }
236 
237     public void setThemeId(String themeId) {
238         _themeId = themeId;
239     }
240 
241     public String getColorSchemeId() {
242         return _colorSchemeId;
243     }
244 
245     public void setColorSchemeId(String colorSchemeId) {
246         _colorSchemeId = colorSchemeId;
247     }
248 
249     public String getWapThemeId() {
250         return _wapThemeId;
251     }
252 
253     public void setWapThemeId(String wapThemeId) {
254         _wapThemeId = wapThemeId;
255     }
256 
257     public String getWapColorSchemeId() {
258         return _wapColorSchemeId;
259     }
260 
261     public void setWapColorSchemeId(String wapColorSchemeId) {
262         _wapColorSchemeId = wapColorSchemeId;
263     }
264 
265     public String getCss() {
266         return _css;
267     }
268 
269     public void setCss(String css) {
270         _css = css;
271     }
272 
273     public int getPriority() {
274         return _priority;
275     }
276 
277     public void setPriority(int priority) {
278         _priority = priority;
279     }
280 
281     public long getDlFolderId() {
282         return _dlFolderId;
283     }
284 
285     public void setDlFolderId(long dlFolderId) {
286         _dlFolderId = dlFolderId;
287     }
288 
289     private long _plid;
290     private long _groupId;
291     private long _companyId;
292     private boolean _privateLayout;
293     private long _layoutId;
294     private long _parentLayoutId;
295     private String _name;
296     private String _title;
297     private String _description;
298     private String _type;
299     private String _typeSettings;
300     private boolean _hidden;
301     private String _friendlyURL;
302     private boolean _iconImage;
303     private long _iconImageId;
304     private String _themeId;
305     private String _colorSchemeId;
306     private String _wapThemeId;
307     private String _wapColorSchemeId;
308     private String _css;
309     private int _priority;
310     private long _dlFolderId;
311 }