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