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