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.setDescription(model.getDescription());
66          soapModel.setContent(model.getContent());
67          soapModel.setType(model.getType());
68          soapModel.setStructureId(model.getStructureId());
69          soapModel.setTemplateId(model.getTemplateId());
70          soapModel.setDisplayDate(model.getDisplayDate());
71          soapModel.setApproved(model.getApproved());
72          soapModel.setApprovedByUserId(model.getApprovedByUserId());
73          soapModel.setApprovedByUserName(model.getApprovedByUserName());
74          soapModel.setApprovedDate(model.getApprovedDate());
75          soapModel.setExpired(model.getExpired());
76          soapModel.setExpirationDate(model.getExpirationDate());
77          soapModel.setReviewDate(model.getReviewDate());
78          soapModel.setIndexable(model.getIndexable());
79          soapModel.setSmallImage(model.getSmallImage());
80          soapModel.setSmallImageId(model.getSmallImageId());
81          soapModel.setSmallImageURL(model.getSmallImageURL());
82  
83          return soapModel;
84      }
85  
86      public static JournalArticleSoap[] toSoapModels(List<JournalArticle> models) {
87          List<JournalArticleSoap> soapModels = new ArrayList<JournalArticleSoap>(models.size());
88  
89          for (JournalArticle model : models) {
90              soapModels.add(toSoapModel(model));
91          }
92  
93          return soapModels.toArray(new JournalArticleSoap[soapModels.size()]);
94      }
95  
96      public JournalArticleSoap() {
97      }
98  
99      public long getPrimaryKey() {
100         return _id;
101     }
102 
103     public void setPrimaryKey(long pk) {
104         setId(pk);
105     }
106 
107     public String getUuid() {
108         return _uuid;
109     }
110 
111     public void setUuid(String uuid) {
112         _uuid = uuid;
113     }
114 
115     public long getId() {
116         return _id;
117     }
118 
119     public void setId(long id) {
120         _id = id;
121     }
122 
123     public long getResourcePrimKey() {
124         return _resourcePrimKey;
125     }
126 
127     public void setResourcePrimKey(long resourcePrimKey) {
128         _resourcePrimKey = resourcePrimKey;
129     }
130 
131     public long getGroupId() {
132         return _groupId;
133     }
134 
135     public void setGroupId(long groupId) {
136         _groupId = groupId;
137     }
138 
139     public long getCompanyId() {
140         return _companyId;
141     }
142 
143     public void setCompanyId(long companyId) {
144         _companyId = companyId;
145     }
146 
147     public long getUserId() {
148         return _userId;
149     }
150 
151     public void setUserId(long userId) {
152         _userId = userId;
153     }
154 
155     public String getUserName() {
156         return _userName;
157     }
158 
159     public void setUserName(String userName) {
160         _userName = userName;
161     }
162 
163     public Date getCreateDate() {
164         return _createDate;
165     }
166 
167     public void setCreateDate(Date createDate) {
168         _createDate = createDate;
169     }
170 
171     public Date getModifiedDate() {
172         return _modifiedDate;
173     }
174 
175     public void setModifiedDate(Date modifiedDate) {
176         _modifiedDate = modifiedDate;
177     }
178 
179     public String getArticleId() {
180         return _articleId;
181     }
182 
183     public void setArticleId(String articleId) {
184         _articleId = articleId;
185     }
186 
187     public double getVersion() {
188         return _version;
189     }
190 
191     public void setVersion(double version) {
192         _version = version;
193     }
194 
195     public String getTitle() {
196         return _title;
197     }
198 
199     public void setTitle(String title) {
200         _title = title;
201     }
202 
203     public String getDescription() {
204         return _description;
205     }
206 
207     public void setDescription(String description) {
208         _description = description;
209     }
210 
211     public String getContent() {
212         return _content;
213     }
214 
215     public void setContent(String content) {
216         _content = content;
217     }
218 
219     public String getType() {
220         return _type;
221     }
222 
223     public void setType(String type) {
224         _type = type;
225     }
226 
227     public String getStructureId() {
228         return _structureId;
229     }
230 
231     public void setStructureId(String structureId) {
232         _structureId = structureId;
233     }
234 
235     public String getTemplateId() {
236         return _templateId;
237     }
238 
239     public void setTemplateId(String templateId) {
240         _templateId = templateId;
241     }
242 
243     public Date getDisplayDate() {
244         return _displayDate;
245     }
246 
247     public void setDisplayDate(Date displayDate) {
248         _displayDate = displayDate;
249     }
250 
251     public boolean getApproved() {
252         return _approved;
253     }
254 
255     public boolean isApproved() {
256         return _approved;
257     }
258 
259     public void setApproved(boolean approved) {
260         _approved = approved;
261     }
262 
263     public long getApprovedByUserId() {
264         return _approvedByUserId;
265     }
266 
267     public void setApprovedByUserId(long approvedByUserId) {
268         _approvedByUserId = approvedByUserId;
269     }
270 
271     public String getApprovedByUserName() {
272         return _approvedByUserName;
273     }
274 
275     public void setApprovedByUserName(String approvedByUserName) {
276         _approvedByUserName = approvedByUserName;
277     }
278 
279     public Date getApprovedDate() {
280         return _approvedDate;
281     }
282 
283     public void setApprovedDate(Date approvedDate) {
284         _approvedDate = approvedDate;
285     }
286 
287     public boolean getExpired() {
288         return _expired;
289     }
290 
291     public boolean isExpired() {
292         return _expired;
293     }
294 
295     public void setExpired(boolean expired) {
296         _expired = expired;
297     }
298 
299     public Date getExpirationDate() {
300         return _expirationDate;
301     }
302 
303     public void setExpirationDate(Date expirationDate) {
304         _expirationDate = expirationDate;
305     }
306 
307     public Date getReviewDate() {
308         return _reviewDate;
309     }
310 
311     public void setReviewDate(Date reviewDate) {
312         _reviewDate = reviewDate;
313     }
314 
315     public boolean getIndexable() {
316         return _indexable;
317     }
318 
319     public boolean isIndexable() {
320         return _indexable;
321     }
322 
323     public void setIndexable(boolean indexable) {
324         _indexable = indexable;
325     }
326 
327     public boolean getSmallImage() {
328         return _smallImage;
329     }
330 
331     public boolean isSmallImage() {
332         return _smallImage;
333     }
334 
335     public void setSmallImage(boolean smallImage) {
336         _smallImage = smallImage;
337     }
338 
339     public long getSmallImageId() {
340         return _smallImageId;
341     }
342 
343     public void setSmallImageId(long smallImageId) {
344         _smallImageId = smallImageId;
345     }
346 
347     public String getSmallImageURL() {
348         return _smallImageURL;
349     }
350 
351     public void setSmallImageURL(String smallImageURL) {
352         _smallImageURL = smallImageURL;
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 _description;
368     private String _content;
369     private String _type;
370     private String _structureId;
371     private String _templateId;
372     private Date _displayDate;
373     private boolean _approved;
374     private long _approvedByUserId;
375     private String _approvedByUserName;
376     private Date _approvedDate;
377     private boolean _expired;
378     private Date _expirationDate;
379     private Date _reviewDate;
380     private boolean _indexable;
381     private boolean _smallImage;
382     private long _smallImageId;
383     private String _smallImageURL;
384 }