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