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