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