1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.journal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="JournalArticleSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.journal.service.http.JournalArticleServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.journal.service.http.JournalArticleServiceSoap
38   * @generated
39   */
40  public class JournalArticleSoap implements Serializable {
41      public static JournalArticleSoap toSoapModel(JournalArticle model) {
42          JournalArticleSoap soapModel = new JournalArticleSoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setId(model.getId());
46          soapModel.setResourcePrimKey(model.getResourcePrimKey());
47          soapModel.setGroupId(model.getGroupId());
48          soapModel.setCompanyId(model.getCompanyId());
49          soapModel.setUserId(model.getUserId());
50          soapModel.setUserName(model.getUserName());
51          soapModel.setCreateDate(model.getCreateDate());
52          soapModel.setModifiedDate(model.getModifiedDate());
53          soapModel.setArticleId(model.getArticleId());
54          soapModel.setVersion(model.getVersion());
55          soapModel.setTitle(model.getTitle());
56          soapModel.setDescription(model.getDescription());
57          soapModel.setContent(model.getContent());
58          soapModel.setType(model.getType());
59          soapModel.setStructureId(model.getStructureId());
60          soapModel.setTemplateId(model.getTemplateId());
61          soapModel.setDisplayDate(model.getDisplayDate());
62          soapModel.setApproved(model.getApproved());
63          soapModel.setApprovedByUserId(model.getApprovedByUserId());
64          soapModel.setApprovedByUserName(model.getApprovedByUserName());
65          soapModel.setApprovedDate(model.getApprovedDate());
66          soapModel.setExpired(model.getExpired());
67          soapModel.setExpirationDate(model.getExpirationDate());
68          soapModel.setReviewDate(model.getReviewDate());
69          soapModel.setIndexable(model.getIndexable());
70          soapModel.setSmallImage(model.getSmallImage());
71          soapModel.setSmallImageId(model.getSmallImageId());
72          soapModel.setSmallImageURL(model.getSmallImageURL());
73  
74          return soapModel;
75      }
76  
77      public static JournalArticleSoap[] toSoapModels(JournalArticle[] models) {
78          JournalArticleSoap[] soapModels = new JournalArticleSoap[models.length];
79  
80          for (int i = 0; i < models.length; i++) {
81              soapModels[i] = toSoapModel(models[i]);
82          }
83  
84          return soapModels;
85      }
86  
87      public static JournalArticleSoap[][] toSoapModels(JournalArticle[][] models) {
88          JournalArticleSoap[][] soapModels = null;
89  
90          if (models.length > 0) {
91              soapModels = new JournalArticleSoap[models.length][models[0].length];
92          }
93          else {
94              soapModels = new JournalArticleSoap[0][0];
95          }
96  
97          for (int i = 0; i < models.length; i++) {
98              soapModels[i] = toSoapModels(models[i]);
99          }
100 
101         return soapModels;
102     }
103 
104     public static JournalArticleSoap[] toSoapModels(List<JournalArticle> models) {
105         List<JournalArticleSoap> soapModels = new ArrayList<JournalArticleSoap>(models.size());
106 
107         for (JournalArticle model : models) {
108             soapModels.add(toSoapModel(model));
109         }
110 
111         return soapModels.toArray(new JournalArticleSoap[soapModels.size()]);
112     }
113 
114     public JournalArticleSoap() {
115     }
116 
117     public long getPrimaryKey() {
118         return _id;
119     }
120 
121     public void setPrimaryKey(long pk) {
122         setId(pk);
123     }
124 
125     public String getUuid() {
126         return _uuid;
127     }
128 
129     public void setUuid(String uuid) {
130         _uuid = uuid;
131     }
132 
133     public long getId() {
134         return _id;
135     }
136 
137     public void setId(long id) {
138         _id = id;
139     }
140 
141     public long getResourcePrimKey() {
142         return _resourcePrimKey;
143     }
144 
145     public void setResourcePrimKey(long resourcePrimKey) {
146         _resourcePrimKey = resourcePrimKey;
147     }
148 
149     public long getGroupId() {
150         return _groupId;
151     }
152 
153     public void setGroupId(long groupId) {
154         _groupId = groupId;
155     }
156 
157     public long getCompanyId() {
158         return _companyId;
159     }
160 
161     public void setCompanyId(long companyId) {
162         _companyId = companyId;
163     }
164 
165     public long getUserId() {
166         return _userId;
167     }
168 
169     public void setUserId(long userId) {
170         _userId = userId;
171     }
172 
173     public String getUserName() {
174         return _userName;
175     }
176 
177     public void setUserName(String userName) {
178         _userName = userName;
179     }
180 
181     public Date getCreateDate() {
182         return _createDate;
183     }
184 
185     public void setCreateDate(Date createDate) {
186         _createDate = createDate;
187     }
188 
189     public Date getModifiedDate() {
190         return _modifiedDate;
191     }
192 
193     public void setModifiedDate(Date modifiedDate) {
194         _modifiedDate = modifiedDate;
195     }
196 
197     public String getArticleId() {
198         return _articleId;
199     }
200 
201     public void setArticleId(String articleId) {
202         _articleId = articleId;
203     }
204 
205     public double getVersion() {
206         return _version;
207     }
208 
209     public void setVersion(double version) {
210         _version = version;
211     }
212 
213     public String getTitle() {
214         return _title;
215     }
216 
217     public void setTitle(String title) {
218         _title = title;
219     }
220 
221     public String getDescription() {
222         return _description;
223     }
224 
225     public void setDescription(String description) {
226         _description = description;
227     }
228 
229     public String getContent() {
230         return _content;
231     }
232 
233     public void setContent(String content) {
234         _content = content;
235     }
236 
237     public String getType() {
238         return _type;
239     }
240 
241     public void setType(String type) {
242         _type = type;
243     }
244 
245     public String getStructureId() {
246         return _structureId;
247     }
248 
249     public void setStructureId(String structureId) {
250         _structureId = structureId;
251     }
252 
253     public String getTemplateId() {
254         return _templateId;
255     }
256 
257     public void setTemplateId(String templateId) {
258         _templateId = templateId;
259     }
260 
261     public Date getDisplayDate() {
262         return _displayDate;
263     }
264 
265     public void setDisplayDate(Date displayDate) {
266         _displayDate = displayDate;
267     }
268 
269     public boolean getApproved() {
270         return _approved;
271     }
272 
273     public boolean isApproved() {
274         return _approved;
275     }
276 
277     public void setApproved(boolean approved) {
278         _approved = approved;
279     }
280 
281     public long getApprovedByUserId() {
282         return _approvedByUserId;
283     }
284 
285     public void setApprovedByUserId(long approvedByUserId) {
286         _approvedByUserId = approvedByUserId;
287     }
288 
289     public String getApprovedByUserName() {
290         return _approvedByUserName;
291     }
292 
293     public void setApprovedByUserName(String approvedByUserName) {
294         _approvedByUserName = approvedByUserName;
295     }
296 
297     public Date getApprovedDate() {
298         return _approvedDate;
299     }
300 
301     public void setApprovedDate(Date approvedDate) {
302         _approvedDate = approvedDate;
303     }
304 
305     public boolean getExpired() {
306         return _expired;
307     }
308 
309     public boolean isExpired() {
310         return _expired;
311     }
312 
313     public void setExpired(boolean expired) {
314         _expired = expired;
315     }
316 
317     public Date getExpirationDate() {
318         return _expirationDate;
319     }
320 
321     public void setExpirationDate(Date expirationDate) {
322         _expirationDate = expirationDate;
323     }
324 
325     public Date getReviewDate() {
326         return _reviewDate;
327     }
328 
329     public void setReviewDate(Date reviewDate) {
330         _reviewDate = reviewDate;
331     }
332 
333     public boolean getIndexable() {
334         return _indexable;
335     }
336 
337     public boolean isIndexable() {
338         return _indexable;
339     }
340 
341     public void setIndexable(boolean indexable) {
342         _indexable = indexable;
343     }
344 
345     public boolean getSmallImage() {
346         return _smallImage;
347     }
348 
349     public boolean isSmallImage() {
350         return _smallImage;
351     }
352 
353     public void setSmallImage(boolean smallImage) {
354         _smallImage = smallImage;
355     }
356 
357     public long getSmallImageId() {
358         return _smallImageId;
359     }
360 
361     public void setSmallImageId(long smallImageId) {
362         _smallImageId = smallImageId;
363     }
364 
365     public String getSmallImageURL() {
366         return _smallImageURL;
367     }
368 
369     public void setSmallImageURL(String smallImageURL) {
370         _smallImageURL = smallImageURL;
371     }
372 
373     private String _uuid;
374     private long _id;
375     private long _resourcePrimKey;
376     private long _groupId;
377     private long _companyId;
378     private long _userId;
379     private String _userName;
380     private Date _createDate;
381     private Date _modifiedDate;
382     private String _articleId;
383     private double _version;
384     private String _title;
385     private String _description;
386     private String _content;
387     private String _type;
388     private String _structureId;
389     private String _templateId;
390     private Date _displayDate;
391     private boolean _approved;
392     private long _approvedByUserId;
393     private String _approvedByUserName;
394     private Date _approvedDate;
395     private boolean _expired;
396     private Date _expirationDate;
397     private Date _reviewDate;
398     private boolean _indexable;
399     private boolean _smallImage;
400     private long _smallImageId;
401     private String _smallImageURL;
402 }