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.portlet.journal.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.portlet.journal.service.http.JournalArticleServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.journal.service.http.JournalArticleServiceSoap
028     * @generated
029     */
030    public class JournalArticleSoap implements Serializable {
031            public static JournalArticleSoap toSoapModel(JournalArticle model) {
032                    JournalArticleSoap soapModel = new JournalArticleSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setId(model.getId());
036                    soapModel.setResourcePrimKey(model.getResourcePrimKey());
037                    soapModel.setGroupId(model.getGroupId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setUserId(model.getUserId());
040                    soapModel.setUserName(model.getUserName());
041                    soapModel.setCreateDate(model.getCreateDate());
042                    soapModel.setModifiedDate(model.getModifiedDate());
043                    soapModel.setFolderId(model.getFolderId());
044                    soapModel.setClassNameId(model.getClassNameId());
045                    soapModel.setClassPK(model.getClassPK());
046                    soapModel.setTreePath(model.getTreePath());
047                    soapModel.setArticleId(model.getArticleId());
048                    soapModel.setVersion(model.getVersion());
049                    soapModel.setTitle(model.getTitle());
050                    soapModel.setUrlTitle(model.getUrlTitle());
051                    soapModel.setDescription(model.getDescription());
052                    soapModel.setContent(model.getContent());
053                    soapModel.setType(model.getType());
054                    soapModel.setStructureId(model.getStructureId());
055                    soapModel.setTemplateId(model.getTemplateId());
056                    soapModel.setLayoutUuid(model.getLayoutUuid());
057                    soapModel.setDisplayDate(model.getDisplayDate());
058                    soapModel.setExpirationDate(model.getExpirationDate());
059                    soapModel.setReviewDate(model.getReviewDate());
060                    soapModel.setIndexable(model.getIndexable());
061                    soapModel.setSmallImage(model.getSmallImage());
062                    soapModel.setSmallImageId(model.getSmallImageId());
063                    soapModel.setSmallImageURL(model.getSmallImageURL());
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 JournalArticleSoap[] toSoapModels(JournalArticle[] models) {
073                    JournalArticleSoap[] soapModels = new JournalArticleSoap[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 JournalArticleSoap[][] toSoapModels(JournalArticle[][] models) {
083                    JournalArticleSoap[][] soapModels = null;
084    
085                    if (models.length > 0) {
086                            soapModels = new JournalArticleSoap[models.length][models[0].length];
087                    }
088                    else {
089                            soapModels = new JournalArticleSoap[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 JournalArticleSoap[] toSoapModels(List<JournalArticle> models) {
100                    List<JournalArticleSoap> soapModels = new ArrayList<JournalArticleSoap>(models.size());
101    
102                    for (JournalArticle model : models) {
103                            soapModels.add(toSoapModel(model));
104                    }
105    
106                    return soapModels.toArray(new JournalArticleSoap[soapModels.size()]);
107            }
108    
109            public JournalArticleSoap() {
110            }
111    
112            public long getPrimaryKey() {
113                    return _id;
114            }
115    
116            public void setPrimaryKey(long pk) {
117                    setId(pk);
118            }
119    
120            public String getUuid() {
121                    return _uuid;
122            }
123    
124            public void setUuid(String uuid) {
125                    _uuid = uuid;
126            }
127    
128            public long getId() {
129                    return _id;
130            }
131    
132            public void setId(long id) {
133                    _id = id;
134            }
135    
136            public long getResourcePrimKey() {
137                    return _resourcePrimKey;
138            }
139    
140            public void setResourcePrimKey(long resourcePrimKey) {
141                    _resourcePrimKey = resourcePrimKey;
142            }
143    
144            public long getGroupId() {
145                    return _groupId;
146            }
147    
148            public void setGroupId(long groupId) {
149                    _groupId = groupId;
150            }
151    
152            public long getCompanyId() {
153                    return _companyId;
154            }
155    
156            public void setCompanyId(long companyId) {
157                    _companyId = companyId;
158            }
159    
160            public long getUserId() {
161                    return _userId;
162            }
163    
164            public void setUserId(long userId) {
165                    _userId = userId;
166            }
167    
168            public String getUserName() {
169                    return _userName;
170            }
171    
172            public void setUserName(String userName) {
173                    _userName = userName;
174            }
175    
176            public Date getCreateDate() {
177                    return _createDate;
178            }
179    
180            public void setCreateDate(Date createDate) {
181                    _createDate = createDate;
182            }
183    
184            public Date getModifiedDate() {
185                    return _modifiedDate;
186            }
187    
188            public void setModifiedDate(Date modifiedDate) {
189                    _modifiedDate = modifiedDate;
190            }
191    
192            public long getFolderId() {
193                    return _folderId;
194            }
195    
196            public void setFolderId(long folderId) {
197                    _folderId = folderId;
198            }
199    
200            public long getClassNameId() {
201                    return _classNameId;
202            }
203    
204            public void setClassNameId(long classNameId) {
205                    _classNameId = classNameId;
206            }
207    
208            public long getClassPK() {
209                    return _classPK;
210            }
211    
212            public void setClassPK(long classPK) {
213                    _classPK = classPK;
214            }
215    
216            public String getTreePath() {
217                    return _treePath;
218            }
219    
220            public void setTreePath(String treePath) {
221                    _treePath = treePath;
222            }
223    
224            public String getArticleId() {
225                    return _articleId;
226            }
227    
228            public void setArticleId(String articleId) {
229                    _articleId = articleId;
230            }
231    
232            public double getVersion() {
233                    return _version;
234            }
235    
236            public void setVersion(double version) {
237                    _version = version;
238            }
239    
240            public String getTitle() {
241                    return _title;
242            }
243    
244            public void setTitle(String title) {
245                    _title = title;
246            }
247    
248            public String getUrlTitle() {
249                    return _urlTitle;
250            }
251    
252            public void setUrlTitle(String urlTitle) {
253                    _urlTitle = urlTitle;
254            }
255    
256            public String getDescription() {
257                    return _description;
258            }
259    
260            public void setDescription(String description) {
261                    _description = description;
262            }
263    
264            public String getContent() {
265                    return _content;
266            }
267    
268            public void setContent(String content) {
269                    _content = content;
270            }
271    
272            public String getType() {
273                    return _type;
274            }
275    
276            public void setType(String type) {
277                    _type = type;
278            }
279    
280            public String getStructureId() {
281                    return _structureId;
282            }
283    
284            public void setStructureId(String structureId) {
285                    _structureId = structureId;
286            }
287    
288            public String getTemplateId() {
289                    return _templateId;
290            }
291    
292            public void setTemplateId(String templateId) {
293                    _templateId = templateId;
294            }
295    
296            public String getLayoutUuid() {
297                    return _layoutUuid;
298            }
299    
300            public void setLayoutUuid(String layoutUuid) {
301                    _layoutUuid = layoutUuid;
302            }
303    
304            public Date getDisplayDate() {
305                    return _displayDate;
306            }
307    
308            public void setDisplayDate(Date displayDate) {
309                    _displayDate = displayDate;
310            }
311    
312            public Date getExpirationDate() {
313                    return _expirationDate;
314            }
315    
316            public void setExpirationDate(Date expirationDate) {
317                    _expirationDate = expirationDate;
318            }
319    
320            public Date getReviewDate() {
321                    return _reviewDate;
322            }
323    
324            public void setReviewDate(Date reviewDate) {
325                    _reviewDate = reviewDate;
326            }
327    
328            public boolean getIndexable() {
329                    return _indexable;
330            }
331    
332            public boolean isIndexable() {
333                    return _indexable;
334            }
335    
336            public void setIndexable(boolean indexable) {
337                    _indexable = indexable;
338            }
339    
340            public boolean getSmallImage() {
341                    return _smallImage;
342            }
343    
344            public boolean isSmallImage() {
345                    return _smallImage;
346            }
347    
348            public void setSmallImage(boolean smallImage) {
349                    _smallImage = smallImage;
350            }
351    
352            public long getSmallImageId() {
353                    return _smallImageId;
354            }
355    
356            public void setSmallImageId(long smallImageId) {
357                    _smallImageId = smallImageId;
358            }
359    
360            public String getSmallImageURL() {
361                    return _smallImageURL;
362            }
363    
364            public void setSmallImageURL(String smallImageURL) {
365                    _smallImageURL = smallImageURL;
366            }
367    
368            public int getStatus() {
369                    return _status;
370            }
371    
372            public void setStatus(int status) {
373                    _status = status;
374            }
375    
376            public long getStatusByUserId() {
377                    return _statusByUserId;
378            }
379    
380            public void setStatusByUserId(long statusByUserId) {
381                    _statusByUserId = statusByUserId;
382            }
383    
384            public String getStatusByUserName() {
385                    return _statusByUserName;
386            }
387    
388            public void setStatusByUserName(String statusByUserName) {
389                    _statusByUserName = statusByUserName;
390            }
391    
392            public Date getStatusDate() {
393                    return _statusDate;
394            }
395    
396            public void setStatusDate(Date statusDate) {
397                    _statusDate = statusDate;
398            }
399    
400            private String _uuid;
401            private long _id;
402            private long _resourcePrimKey;
403            private long _groupId;
404            private long _companyId;
405            private long _userId;
406            private String _userName;
407            private Date _createDate;
408            private Date _modifiedDate;
409            private long _folderId;
410            private long _classNameId;
411            private long _classPK;
412            private String _treePath;
413            private String _articleId;
414            private double _version;
415            private String _title;
416            private String _urlTitle;
417            private String _description;
418            private String _content;
419            private String _type;
420            private String _structureId;
421            private String _templateId;
422            private String _layoutUuid;
423            private Date _displayDate;
424            private Date _expirationDate;
425            private Date _reviewDate;
426            private boolean _indexable;
427            private boolean _smallImage;
428            private long _smallImageId;
429            private String _smallImageURL;
430            private int _status;
431            private long _statusByUserId;
432            private String _statusByUserName;
433            private Date _statusDate;
434    }