1   /**
2    * Copyright (c) 2000-2009 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<Layout> models) {
79          List<LayoutSoap> soapModels = new ArrayList<LayoutSoap>(models.size());
80  
81          for (Layout model : models) {
82              soapModels.add(toSoapModel(model));
83          }
84  
85          return soapModels.toArray(new LayoutSoap[soapModels.size()]);
86      }
87  
88      public LayoutSoap() {
89      }
90  
91      public long getPrimaryKey() {
92          return _plid;
93      }
94  
95      public void setPrimaryKey(long pk) {
96          setPlid(pk);
97      }
98  
99      public long getPlid() {
100         return _plid;
101     }
102 
103     public void setPlid(long plid) {
104         _plid = plid;
105     }
106 
107     public long getGroupId() {
108         return _groupId;
109     }
110 
111     public void setGroupId(long groupId) {
112         _groupId = groupId;
113     }
114 
115     public long getCompanyId() {
116         return _companyId;
117     }
118 
119     public void setCompanyId(long companyId) {
120         _companyId = companyId;
121     }
122 
123     public boolean getPrivateLayout() {
124         return _privateLayout;
125     }
126 
127     public boolean isPrivateLayout() {
128         return _privateLayout;
129     }
130 
131     public void setPrivateLayout(boolean privateLayout) {
132         _privateLayout = privateLayout;
133     }
134 
135     public long getLayoutId() {
136         return _layoutId;
137     }
138 
139     public void setLayoutId(long layoutId) {
140         _layoutId = layoutId;
141     }
142 
143     public long getParentLayoutId() {
144         return _parentLayoutId;
145     }
146 
147     public void setParentLayoutId(long parentLayoutId) {
148         _parentLayoutId = parentLayoutId;
149     }
150 
151     public String getName() {
152         return _name;
153     }
154 
155     public void setName(String name) {
156         _name = name;
157     }
158 
159     public String getTitle() {
160         return _title;
161     }
162 
163     public void setTitle(String title) {
164         _title = title;
165     }
166 
167     public String getDescription() {
168         return _description;
169     }
170 
171     public void setDescription(String description) {
172         _description = description;
173     }
174 
175     public String getType() {
176         return _type;
177     }
178 
179     public void setType(String type) {
180         _type = type;
181     }
182 
183     public String getTypeSettings() {
184         return _typeSettings;
185     }
186 
187     public void setTypeSettings(String typeSettings) {
188         _typeSettings = typeSettings;
189     }
190 
191     public boolean getHidden() {
192         return _hidden;
193     }
194 
195     public boolean isHidden() {
196         return _hidden;
197     }
198 
199     public void setHidden(boolean hidden) {
200         _hidden = hidden;
201     }
202 
203     public String getFriendlyURL() {
204         return _friendlyURL;
205     }
206 
207     public void setFriendlyURL(String friendlyURL) {
208         _friendlyURL = friendlyURL;
209     }
210 
211     public boolean getIconImage() {
212         return _iconImage;
213     }
214 
215     public boolean isIconImage() {
216         return _iconImage;
217     }
218 
219     public void setIconImage(boolean iconImage) {
220         _iconImage = iconImage;
221     }
222 
223     public long getIconImageId() {
224         return _iconImageId;
225     }
226 
227     public void setIconImageId(long iconImageId) {
228         _iconImageId = iconImageId;
229     }
230 
231     public String getThemeId() {
232         return _themeId;
233     }
234 
235     public void setThemeId(String themeId) {
236         _themeId = themeId;
237     }
238 
239     public String getColorSchemeId() {
240         return _colorSchemeId;
241     }
242 
243     public void setColorSchemeId(String colorSchemeId) {
244         _colorSchemeId = colorSchemeId;
245     }
246 
247     public String getWapThemeId() {
248         return _wapThemeId;
249     }
250 
251     public void setWapThemeId(String wapThemeId) {
252         _wapThemeId = wapThemeId;
253     }
254 
255     public String getWapColorSchemeId() {
256         return _wapColorSchemeId;
257     }
258 
259     public void setWapColorSchemeId(String wapColorSchemeId) {
260         _wapColorSchemeId = wapColorSchemeId;
261     }
262 
263     public String getCss() {
264         return _css;
265     }
266 
267     public void setCss(String css) {
268         _css = css;
269     }
270 
271     public int getPriority() {
272         return _priority;
273     }
274 
275     public void setPriority(int priority) {
276         _priority = priority;
277     }
278 
279     public long getDlFolderId() {
280         return _dlFolderId;
281     }
282 
283     public void setDlFolderId(long dlFolderId) {
284         _dlFolderId = dlFolderId;
285     }
286 
287     private long _plid;
288     private long _groupId;
289     private long _companyId;
290     private boolean _privateLayout;
291     private long _layoutId;
292     private long _parentLayoutId;
293     private String _name;
294     private String _title;
295     private String _description;
296     private String _type;
297     private String _typeSettings;
298     private boolean _hidden;
299     private String _friendlyURL;
300     private boolean _iconImage;
301     private long _iconImageId;
302     private String _themeId;
303     private String _colorSchemeId;
304     private String _wapThemeId;
305     private String _wapColorSchemeId;
306     private String _css;
307     private int _priority;
308     private long _dlFolderId;
309 }