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