001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.LayoutRevisionServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portal.service.http.LayoutRevisionServiceSoap
028     * @generated
029     */
030    public class LayoutRevisionSoap implements Serializable {
031            public static LayoutRevisionSoap toSoapModel(LayoutRevision model) {
032                    LayoutRevisionSoap soapModel = new LayoutRevisionSoap();
033    
034                    soapModel.setLayoutRevisionId(model.getLayoutRevisionId());
035                    soapModel.setGroupId(model.getGroupId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setLayoutSetBranchId(model.getLayoutSetBranchId());
042                    soapModel.setLayoutBranchId(model.getLayoutBranchId());
043                    soapModel.setParentLayoutRevisionId(model.getParentLayoutRevisionId());
044                    soapModel.setHead(model.getHead());
045                    soapModel.setMajor(model.getMajor());
046                    soapModel.setPlid(model.getPlid());
047                    soapModel.setPrivateLayout(model.getPrivateLayout());
048                    soapModel.setName(model.getName());
049                    soapModel.setTitle(model.getTitle());
050                    soapModel.setDescription(model.getDescription());
051                    soapModel.setKeywords(model.getKeywords());
052                    soapModel.setRobots(model.getRobots());
053                    soapModel.setTypeSettings(model.getTypeSettings());
054                    soapModel.setIconImage(model.getIconImage());
055                    soapModel.setIconImageId(model.getIconImageId());
056                    soapModel.setThemeId(model.getThemeId());
057                    soapModel.setColorSchemeId(model.getColorSchemeId());
058                    soapModel.setWapThemeId(model.getWapThemeId());
059                    soapModel.setWapColorSchemeId(model.getWapColorSchemeId());
060                    soapModel.setCss(model.getCss());
061                    soapModel.setStatus(model.getStatus());
062                    soapModel.setStatusByUserId(model.getStatusByUserId());
063                    soapModel.setStatusByUserName(model.getStatusByUserName());
064                    soapModel.setStatusDate(model.getStatusDate());
065    
066                    return soapModel;
067            }
068    
069            public static LayoutRevisionSoap[] toSoapModels(LayoutRevision[] models) {
070                    LayoutRevisionSoap[] soapModels = new LayoutRevisionSoap[models.length];
071    
072                    for (int i = 0; i < models.length; i++) {
073                            soapModels[i] = toSoapModel(models[i]);
074                    }
075    
076                    return soapModels;
077            }
078    
079            public static LayoutRevisionSoap[][] toSoapModels(LayoutRevision[][] models) {
080                    LayoutRevisionSoap[][] soapModels = null;
081    
082                    if (models.length > 0) {
083                            soapModels = new LayoutRevisionSoap[models.length][models[0].length];
084                    }
085                    else {
086                            soapModels = new LayoutRevisionSoap[0][0];
087                    }
088    
089                    for (int i = 0; i < models.length; i++) {
090                            soapModels[i] = toSoapModels(models[i]);
091                    }
092    
093                    return soapModels;
094            }
095    
096            public static LayoutRevisionSoap[] toSoapModels(List<LayoutRevision> models) {
097                    List<LayoutRevisionSoap> soapModels = new ArrayList<LayoutRevisionSoap>(models.size());
098    
099                    for (LayoutRevision model : models) {
100                            soapModels.add(toSoapModel(model));
101                    }
102    
103                    return soapModels.toArray(new LayoutRevisionSoap[soapModels.size()]);
104            }
105    
106            public LayoutRevisionSoap() {
107            }
108    
109            public long getPrimaryKey() {
110                    return _layoutRevisionId;
111            }
112    
113            public void setPrimaryKey(long pk) {
114                    setLayoutRevisionId(pk);
115            }
116    
117            public long getLayoutRevisionId() {
118                    return _layoutRevisionId;
119            }
120    
121            public void setLayoutRevisionId(long layoutRevisionId) {
122                    _layoutRevisionId = layoutRevisionId;
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 long getUserId() {
142                    return _userId;
143            }
144    
145            public void setUserId(long userId) {
146                    _userId = userId;
147            }
148    
149            public String getUserName() {
150                    return _userName;
151            }
152    
153            public void setUserName(String userName) {
154                    _userName = userName;
155            }
156    
157            public Date getCreateDate() {
158                    return _createDate;
159            }
160    
161            public void setCreateDate(Date createDate) {
162                    _createDate = createDate;
163            }
164    
165            public Date getModifiedDate() {
166                    return _modifiedDate;
167            }
168    
169            public void setModifiedDate(Date modifiedDate) {
170                    _modifiedDate = modifiedDate;
171            }
172    
173            public long getLayoutSetBranchId() {
174                    return _layoutSetBranchId;
175            }
176    
177            public void setLayoutSetBranchId(long layoutSetBranchId) {
178                    _layoutSetBranchId = layoutSetBranchId;
179            }
180    
181            public long getLayoutBranchId() {
182                    return _layoutBranchId;
183            }
184    
185            public void setLayoutBranchId(long layoutBranchId) {
186                    _layoutBranchId = layoutBranchId;
187            }
188    
189            public long getParentLayoutRevisionId() {
190                    return _parentLayoutRevisionId;
191            }
192    
193            public void setParentLayoutRevisionId(long parentLayoutRevisionId) {
194                    _parentLayoutRevisionId = parentLayoutRevisionId;
195            }
196    
197            public boolean getHead() {
198                    return _head;
199            }
200    
201            public boolean isHead() {
202                    return _head;
203            }
204    
205            public void setHead(boolean head) {
206                    _head = head;
207            }
208    
209            public boolean getMajor() {
210                    return _major;
211            }
212    
213            public boolean isMajor() {
214                    return _major;
215            }
216    
217            public void setMajor(boolean major) {
218                    _major = major;
219            }
220    
221            public long getPlid() {
222                    return _plid;
223            }
224    
225            public void setPlid(long plid) {
226                    _plid = plid;
227            }
228    
229            public boolean getPrivateLayout() {
230                    return _privateLayout;
231            }
232    
233            public boolean isPrivateLayout() {
234                    return _privateLayout;
235            }
236    
237            public void setPrivateLayout(boolean privateLayout) {
238                    _privateLayout = privateLayout;
239            }
240    
241            public String getName() {
242                    return _name;
243            }
244    
245            public void setName(String name) {
246                    _name = name;
247            }
248    
249            public String getTitle() {
250                    return _title;
251            }
252    
253            public void setTitle(String title) {
254                    _title = title;
255            }
256    
257            public String getDescription() {
258                    return _description;
259            }
260    
261            public void setDescription(String description) {
262                    _description = description;
263            }
264    
265            public String getKeywords() {
266                    return _keywords;
267            }
268    
269            public void setKeywords(String keywords) {
270                    _keywords = keywords;
271            }
272    
273            public String getRobots() {
274                    return _robots;
275            }
276    
277            public void setRobots(String robots) {
278                    _robots = robots;
279            }
280    
281            public String getTypeSettings() {
282                    return _typeSettings;
283            }
284    
285            public void setTypeSettings(String typeSettings) {
286                    _typeSettings = typeSettings;
287            }
288    
289            public boolean getIconImage() {
290                    return _iconImage;
291            }
292    
293            public boolean isIconImage() {
294                    return _iconImage;
295            }
296    
297            public void setIconImage(boolean iconImage) {
298                    _iconImage = iconImage;
299            }
300    
301            public long getIconImageId() {
302                    return _iconImageId;
303            }
304    
305            public void setIconImageId(long iconImageId) {
306                    _iconImageId = iconImageId;
307            }
308    
309            public String getThemeId() {
310                    return _themeId;
311            }
312    
313            public void setThemeId(String themeId) {
314                    _themeId = themeId;
315            }
316    
317            public String getColorSchemeId() {
318                    return _colorSchemeId;
319            }
320    
321            public void setColorSchemeId(String colorSchemeId) {
322                    _colorSchemeId = colorSchemeId;
323            }
324    
325            public String getWapThemeId() {
326                    return _wapThemeId;
327            }
328    
329            public void setWapThemeId(String wapThemeId) {
330                    _wapThemeId = wapThemeId;
331            }
332    
333            public String getWapColorSchemeId() {
334                    return _wapColorSchemeId;
335            }
336    
337            public void setWapColorSchemeId(String wapColorSchemeId) {
338                    _wapColorSchemeId = wapColorSchemeId;
339            }
340    
341            public String getCss() {
342                    return _css;
343            }
344    
345            public void setCss(String css) {
346                    _css = css;
347            }
348    
349            public int getStatus() {
350                    return _status;
351            }
352    
353            public void setStatus(int status) {
354                    _status = status;
355            }
356    
357            public long getStatusByUserId() {
358                    return _statusByUserId;
359            }
360    
361            public void setStatusByUserId(long statusByUserId) {
362                    _statusByUserId = statusByUserId;
363            }
364    
365            public String getStatusByUserName() {
366                    return _statusByUserName;
367            }
368    
369            public void setStatusByUserName(String statusByUserName) {
370                    _statusByUserName = statusByUserName;
371            }
372    
373            public Date getStatusDate() {
374                    return _statusDate;
375            }
376    
377            public void setStatusDate(Date statusDate) {
378                    _statusDate = statusDate;
379            }
380    
381            private long _layoutRevisionId;
382            private long _groupId;
383            private long _companyId;
384            private long _userId;
385            private String _userName;
386            private Date _createDate;
387            private Date _modifiedDate;
388            private long _layoutSetBranchId;
389            private long _layoutBranchId;
390            private long _parentLayoutRevisionId;
391            private boolean _head;
392            private boolean _major;
393            private long _plid;
394            private boolean _privateLayout;
395            private String _name;
396            private String _title;
397            private String _description;
398            private String _keywords;
399            private String _robots;
400            private String _typeSettings;
401            private boolean _iconImage;
402            private long _iconImageId;
403            private String _themeId;
404            private String _colorSchemeId;
405            private String _wapThemeId;
406            private String _wapColorSchemeId;
407            private String _css;
408            private int _status;
409            private long _statusByUserId;
410            private String _statusByUserName;
411            private Date _statusDate;
412    }