1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="JournalArticleSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portlet.journal.service.http.JournalArticleServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.journal.service.http.JournalArticleServiceSoap
47   *
48   */
49  public class JournalArticleSoap implements Serializable {
50      public static JournalArticleSoap toSoapModel(JournalArticle model) {
51          JournalArticleSoap soapModel = new JournalArticleSoap();
52  
53          soapModel.setUuid(model.getUuid());
54          soapModel.setId(model.getId());
55          soapModel.setResourcePrimKey(model.getResourcePrimKey());
56          soapModel.setGroupId(model.getGroupId());
57          soapModel.setCompanyId(model.getCompanyId());
58          soapModel.setUserId(model.getUserId());
59          soapModel.setUserName(model.getUserName());
60          soapModel.setCreateDate(model.getCreateDate());
61          soapModel.setModifiedDate(model.getModifiedDate());
62          soapModel.setArticleId(model.getArticleId());
63          soapModel.setVersion(model.getVersion());
64          soapModel.setTitle(model.getTitle());
65          soapModel.setUrlTitle(model.getUrlTitle());
66          soapModel.setDescription(model.getDescription());
67          soapModel.setContent(model.getContent());
68          soapModel.setType(model.getType());
69          soapModel.setStructureId(model.getStructureId());
70          soapModel.setTemplateId(model.getTemplateId());
71          soapModel.setDisplayDate(model.getDisplayDate());
72          soapModel.setApproved(model.getApproved());
73          soapModel.setApprovedByUserId(model.getApprovedByUserId());
74          soapModel.setApprovedByUserName(model.getApprovedByUserName());
75          soapModel.setApprovedDate(model.getApprovedDate());
76          soapModel.setExpired(model.getExpired());
77          soapModel.setExpirationDate(model.getExpirationDate());
78          soapModel.setReviewDate(model.getReviewDate());
79          soapModel.setIndexable(model.getIndexable());
80          soapModel.setSmallImage(model.getSmallImage());
81          soapModel.setSmallImageId(model.getSmallImageId());
82          soapModel.setSmallImageURL(model.getSmallImageURL());
83  
84          return soapModel;
85      }
86  
87      public static JournalArticleSoap[] toSoapModels(JournalArticle[] models) {
88          JournalArticleSoap[] soapModels = new JournalArticleSoap[models.length];
89  
90          for (int i = 0; i < models.length; i++) {
91              soapModels[i] = toSoapModel(models[i]);
92          }
93  
94          return soapModels;
95      }
96  
97      public static JournalArticleSoap[][] toSoapModels(JournalArticle[][] models) {
98          JournalArticleSoap[][] soapModels = null;
99  
100         if (models.length > 0) {
101             soapModels = new JournalArticleSoap[models.length][models[0].length];
102         }
103         else {
104             soapModels = new JournalArticleSoap[0][0];
105         }
106 
107         for (int i = 0; i < models.length; i++) {
108             soapModels[i] = toSoapModels(models[i]);
109         }
110 
111         return soapModels;
112     }
113 
114     public static JournalArticleSoap[] toSoapModels(List<JournalArticle> models) {
115         List<JournalArticleSoap> soapModels = new ArrayList<JournalArticleSoap>(models.size());
116 
117         for (JournalArticle model : models) {
118             soapModels.add(toSoapModel(model));
119         }
120 
121         return soapModels.toArray(new JournalArticleSoap[soapModels.size()]);
122     }
123 
124     public JournalArticleSoap() {
125     }
126 
127     public long getPrimaryKey() {
128         return _id;
129     }
130 
131     public void setPrimaryKey(long pk) {
132         setId(pk);
133     }
134 
135     public String getUuid() {
136         return _uuid;
137     }
138 
139     public void setUuid(String uuid) {
140         _uuid = uuid;
141     }
142 
143     public long getId() {
144         return _id;
145     }
146 
147     public void setId(long id) {
148         _id = id;
149     }
150 
151     public long getResourcePrimKey() {
152         return _resourcePrimKey;
153     }
154 
155     public void setResourcePrimKey(long resourcePrimKey) {
156         _resourcePrimKey = resourcePrimKey;
157     }
158 
159     public long getGroupId() {
160         return _groupId;
161     }
162 
163     public void setGroupId(long groupId) {
164         _groupId = groupId;
165     }
166 
167     public long getCompanyId() {
168         return _companyId;
169     }
170 
171     public void setCompanyId(long companyId) {
172         _companyId = companyId;
173     }
174 
175     public long getUserId() {
176         return _userId;
177     }
178 
179     public void setUserId(long userId) {
180         _userId = userId;
181     }
182 
183     public String getUserName() {
184         return _userName;
185     }
186 
187     public void setUserName(String userName) {
188         _userName = userName;
189     }
190 
191     public Date getCreateDate() {
192         return _createDate;
193     }
194 
195     public void setCreateDate(Date createDate) {
196         _createDate = createDate;
197     }
198 
199     public Date getModifiedDate() {
200         return _modifiedDate;
201     }
202 
203     public void setModifiedDate(Date modifiedDate) {
204         _modifiedDate = modifiedDate;
205     }
206 
207     public String getArticleId() {
208         return _articleId;
209     }
210 
211     public void setArticleId(String articleId) {
212         _articleId = articleId;
213     }
214 
215     public double getVersion() {
216         return _version;
217     }
218 
219     public void setVersion(double version) {
220         _version = version;
221     }
222 
223     public String getTitle() {
224         return _title;
225     }
226 
227     public void setTitle(String title) {
228         _title = title;
229     }
230 
231     public String getUrlTitle() {
232         return _urlTitle;
233     }
234 
235     public void setUrlTitle(String urlTitle) {
236         _urlTitle = urlTitle;
237     }
238 
239     public String getDescription() {
240         return _description;
241     }
242 
243     public void setDescription(String description) {
244         _description = description;
245     }
246 
247     public String getContent() {
248         return _content;
249     }
250 
251     public void setContent(String content) {
252         _content = content;
253     }
254 
255     public String getType() {
256         return _type;
257     }
258 
259     public void setType(String type) {
260         _type = type;
261     }
262 
263     public String getStructureId() {
264         return _structureId;
265     }
266 
267     public void setStructureId(String structureId) {
268         _structureId = structureId;
269     }
270 
271     public String getTemplateId() {
272         return _templateId;
273     }
274 
275     public void setTemplateId(String templateId) {
276         _templateId = templateId;
277     }
278 
279     public Date getDisplayDate() {
280         return _displayDate;
281     }
282 
283     public void setDisplayDate(Date displayDate) {
284         _displayDate = displayDate;
285     }
286 
287     public boolean getApproved() {
288         return _approved;
289     }
290 
291     public boolean isApproved() {
292         return _approved;
293     }
294 
295     public void setApproved(boolean approved) {
296         _approved = approved;
297     }
298 
299     public long getApprovedByUserId() {
300         return _approvedByUserId;
301     }
302 
303     public void setApprovedByUserId(long approvedByUserId) {
304         _approvedByUserId = approvedByUserId;
305     }
306 
307     public String getApprovedByUserName() {
308         return _approvedByUserName;
309     }
310 
311     public void setApprovedByUserName(String approvedByUserName) {
312         _approvedByUserName = approvedByUserName;
313     }
314 
315     public Date getApprovedDate() {
316         return _approvedDate;
317     }
318 
319     public void setApprovedDate(Date approvedDate) {
320         _approvedDate = approvedDate;
321     }
322 
323     public boolean getExpired() {
324         return _expired;
325     }
326 
327     public boolean isExpired() {
328         return _expired;
329     }
330 
331     public void setExpired(boolean expired) {
332         _expired = expired;
333     }
334 
335     public Date getExpirationDate() {
336         return _expirationDate;
337     }
338 
339     public void setExpirationDate(Date expirationDate) {
340         _expirationDate = expirationDate;
341     }
342 
343     public Date getReviewDate() {
344         return _reviewDate;
345     }
346 
347     public void setReviewDate(Date reviewDate) {
348         _reviewDate = reviewDate;
349     }
350 
351     public boolean getIndexable() {
352         return _indexable;
353     }
354 
355     public boolean isIndexable() {
356         return _indexable;
357     }
358 
359     public void setIndexable(boolean indexable) {
360         _indexable = indexable;
361     }
362 
363     public boolean getSmallImage() {
364         return _smallImage;
365     }
366 
367     public boolean isSmallImage() {
368         return _smallImage;
369     }
370 
371     public void setSmallImage(boolean smallImage) {
372         _smallImage = smallImage;
373     }
374 
375     public long getSmallImageId() {
376         return _smallImageId;
377     }
378 
379     public void setSmallImageId(long smallImageId) {
380         _smallImageId = smallImageId;
381     }
382 
383     public String getSmallImageURL() {
384         return _smallImageURL;
385     }
386 
387     public void setSmallImageURL(String smallImageURL) {
388         _smallImageURL = smallImageURL;
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 String _articleId;
401     private double _version;
402     private String _title;
403     private String _urlTitle;
404     private String _description;
405     private String _content;
406     private String _type;
407     private String _structureId;
408     private String _templateId;
409     private Date _displayDate;
410     private boolean _approved;
411     private long _approvedByUserId;
412     private String _approvedByUserName;
413     private Date _approvedDate;
414     private boolean _expired;
415     private Date _expirationDate;
416     private Date _reviewDate;
417     private boolean _indexable;
418     private boolean _smallImage;
419     private long _smallImageId;
420     private String _smallImageURL;
421 }