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