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