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.setUrlTitle(model.getUrlTitle());
57          soapModel.setDescription(model.getDescription());
58          soapModel.setContent(model.getContent());
59          soapModel.setType(model.getType());
60          soapModel.setStructureId(model.getStructureId());
61          soapModel.setTemplateId(model.getTemplateId());
62          soapModel.setDisplayDate(model.getDisplayDate());
63          soapModel.setApproved(model.getApproved());
64          soapModel.setApprovedByUserId(model.getApprovedByUserId());
65          soapModel.setApprovedByUserName(model.getApprovedByUserName());
66          soapModel.setApprovedDate(model.getApprovedDate());
67          soapModel.setExpired(model.getExpired());
68          soapModel.setExpirationDate(model.getExpirationDate());
69          soapModel.setReviewDate(model.getReviewDate());
70          soapModel.setIndexable(model.getIndexable());
71          soapModel.setSmallImage(model.getSmallImage());
72          soapModel.setSmallImageId(model.getSmallImageId());
73          soapModel.setSmallImageURL(model.getSmallImageURL());
74  
75          return soapModel;
76      }
77  
78      public static JournalArticleSoap[] toSoapModels(JournalArticle[] models) {
79          JournalArticleSoap[] soapModels = new JournalArticleSoap[models.length];
80  
81          for (int i = 0; i < models.length; i++) {
82              soapModels[i] = toSoapModel(models[i]);
83          }
84  
85          return soapModels;
86      }
87  
88      public static JournalArticleSoap[][] toSoapModels(JournalArticle[][] models) {
89          JournalArticleSoap[][] soapModels = null;
90  
91          if (models.length > 0) {
92              soapModels = new JournalArticleSoap[models.length][models[0].length];
93          }
94          else {
95              soapModels = new JournalArticleSoap[0][0];
96          }
97  
98          for (int i = 0; i < models.length; i++) {
99              soapModels[i] = toSoapModels(models[i]);
100         }
101 
102         return soapModels;
103     }
104 
105     public static JournalArticleSoap[] toSoapModels(List<JournalArticle> models) {
106         List<JournalArticleSoap> soapModels = new ArrayList<JournalArticleSoap>(models.size());
107 
108         for (JournalArticle model : models) {
109             soapModels.add(toSoapModel(model));
110         }
111 
112         return soapModels.toArray(new JournalArticleSoap[soapModels.size()]);
113     }
114 
115     public JournalArticleSoap() {
116     }
117 
118     public long getPrimaryKey() {
119         return _id;
120     }
121 
122     public void setPrimaryKey(long pk) {
123         setId(pk);
124     }
125 
126     public String getUuid() {
127         return _uuid;
128     }
129 
130     public void setUuid(String uuid) {
131         _uuid = uuid;
132     }
133 
134     public long getId() {
135         return _id;
136     }
137 
138     public void setId(long id) {
139         _id = id;
140     }
141 
142     public long getResourcePrimKey() {
143         return _resourcePrimKey;
144     }
145 
146     public void setResourcePrimKey(long resourcePrimKey) {
147         _resourcePrimKey = resourcePrimKey;
148     }
149 
150     public long getGroupId() {
151         return _groupId;
152     }
153 
154     public void setGroupId(long groupId) {
155         _groupId = groupId;
156     }
157 
158     public long getCompanyId() {
159         return _companyId;
160     }
161 
162     public void setCompanyId(long companyId) {
163         _companyId = companyId;
164     }
165 
166     public long getUserId() {
167         return _userId;
168     }
169 
170     public void setUserId(long userId) {
171         _userId = userId;
172     }
173 
174     public String getUserName() {
175         return _userName;
176     }
177 
178     public void setUserName(String userName) {
179         _userName = userName;
180     }
181 
182     public Date getCreateDate() {
183         return _createDate;
184     }
185 
186     public void setCreateDate(Date createDate) {
187         _createDate = createDate;
188     }
189 
190     public Date getModifiedDate() {
191         return _modifiedDate;
192     }
193 
194     public void setModifiedDate(Date modifiedDate) {
195         _modifiedDate = modifiedDate;
196     }
197 
198     public String getArticleId() {
199         return _articleId;
200     }
201 
202     public void setArticleId(String articleId) {
203         _articleId = articleId;
204     }
205 
206     public double getVersion() {
207         return _version;
208     }
209 
210     public void setVersion(double version) {
211         _version = version;
212     }
213 
214     public String getTitle() {
215         return _title;
216     }
217 
218     public void setTitle(String title) {
219         _title = title;
220     }
221 
222     public String getUrlTitle() {
223         return _urlTitle;
224     }
225 
226     public void setUrlTitle(String urlTitle) {
227         _urlTitle = urlTitle;
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 _urlTitle;
395     private String _description;
396     private String _content;
397     private String _type;
398     private String _structureId;
399     private String _templateId;
400     private Date _displayDate;
401     private boolean _approved;
402     private long _approvedByUserId;
403     private String _approvedByUserName;
404     private Date _approvedDate;
405     private boolean _expired;
406     private Date _expirationDate;
407     private Date _reviewDate;
408     private boolean _indexable;
409     private boolean _smallImage;
410     private long _smallImageId;
411     private String _smallImageURL;
412 }