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