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