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