1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.journal.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.Date;
26  import java.util.List;
27  
28  /**
29   * <a href="JournalArticleSoap.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This class is used by
38   * <code>com.liferay.portlet.journal.service.http.JournalArticleServiceSoap</code>.
39   * </p>
40   *
41   * @author Brian Wing Shun Chan
42   *
43   * @see com.liferay.portlet.journal.service.http.JournalArticleServiceSoap
44   *
45   */
46  public class JournalArticleSoap implements Serializable {
47      public static JournalArticleSoap toSoapModel(JournalArticle model) {
48          JournalArticleSoap soapModel = new JournalArticleSoap();
49  
50          soapModel.setUuid(model.getUuid());
51          soapModel.setId(model.getId());
52          soapModel.setResourcePrimKey(model.getResourcePrimKey());
53          soapModel.setGroupId(model.getGroupId());
54          soapModel.setCompanyId(model.getCompanyId());
55          soapModel.setUserId(model.getUserId());
56          soapModel.setUserName(model.getUserName());
57          soapModel.setCreateDate(model.getCreateDate());
58          soapModel.setModifiedDate(model.getModifiedDate());
59          soapModel.setArticleId(model.getArticleId());
60          soapModel.setVersion(model.getVersion());
61          soapModel.setTitle(model.getTitle());
62          soapModel.setUrlTitle(model.getUrlTitle());
63          soapModel.setDescription(model.getDescription());
64          soapModel.setContent(model.getContent());
65          soapModel.setType(model.getType());
66          soapModel.setStructureId(model.getStructureId());
67          soapModel.setTemplateId(model.getTemplateId());
68          soapModel.setDisplayDate(model.getDisplayDate());
69          soapModel.setApproved(model.getApproved());
70          soapModel.setApprovedByUserId(model.getApprovedByUserId());
71          soapModel.setApprovedByUserName(model.getApprovedByUserName());
72          soapModel.setApprovedDate(model.getApprovedDate());
73          soapModel.setExpired(model.getExpired());
74          soapModel.setExpirationDate(model.getExpirationDate());
75          soapModel.setReviewDate(model.getReviewDate());
76          soapModel.setIndexable(model.getIndexable());
77          soapModel.setSmallImage(model.getSmallImage());
78          soapModel.setSmallImageId(model.getSmallImageId());
79          soapModel.setSmallImageURL(model.getSmallImageURL());
80  
81          return soapModel;
82      }
83  
84      public static JournalArticleSoap[] toSoapModels(JournalArticle[] models) {
85          JournalArticleSoap[] soapModels = new JournalArticleSoap[models.length];
86  
87          for (int i = 0; i < models.length; i++) {
88              soapModels[i] = toSoapModel(models[i]);
89          }
90  
91          return soapModels;
92      }
93  
94      public static JournalArticleSoap[][] toSoapModels(JournalArticle[][] models) {
95          JournalArticleSoap[][] soapModels = null;
96  
97          if (models.length > 0) {
98              soapModels = new JournalArticleSoap[models.length][models[0].length];
99          }
100         else {
101             soapModels = new JournalArticleSoap[0][0];
102         }
103 
104         for (int i = 0; i < models.length; i++) {
105             soapModels[i] = toSoapModels(models[i]);
106         }
107 
108         return soapModels;
109     }
110 
111     public static JournalArticleSoap[] toSoapModels(List<JournalArticle> models) {
112         List<JournalArticleSoap> soapModels = new ArrayList<JournalArticleSoap>(models.size());
113 
114         for (JournalArticle model : models) {
115             soapModels.add(toSoapModel(model));
116         }
117 
118         return soapModels.toArray(new JournalArticleSoap[soapModels.size()]);
119     }
120 
121     public JournalArticleSoap() {
122     }
123 
124     public long getPrimaryKey() {
125         return _id;
126     }
127 
128     public void setPrimaryKey(long pk) {
129         setId(pk);
130     }
131 
132     public String getUuid() {
133         return _uuid;
134     }
135 
136     public void setUuid(String uuid) {
137         _uuid = uuid;
138     }
139 
140     public long getId() {
141         return _id;
142     }
143 
144     public void setId(long id) {
145         _id = id;
146     }
147 
148     public long getResourcePrimKey() {
149         return _resourcePrimKey;
150     }
151 
152     public void setResourcePrimKey(long resourcePrimKey) {
153         _resourcePrimKey = resourcePrimKey;
154     }
155 
156     public long getGroupId() {
157         return _groupId;
158     }
159 
160     public void setGroupId(long groupId) {
161         _groupId = groupId;
162     }
163 
164     public long getCompanyId() {
165         return _companyId;
166     }
167 
168     public void setCompanyId(long companyId) {
169         _companyId = companyId;
170     }
171 
172     public long getUserId() {
173         return _userId;
174     }
175 
176     public void setUserId(long userId) {
177         _userId = userId;
178     }
179 
180     public String getUserName() {
181         return _userName;
182     }
183 
184     public void setUserName(String userName) {
185         _userName = userName;
186     }
187 
188     public Date getCreateDate() {
189         return _createDate;
190     }
191 
192     public void setCreateDate(Date createDate) {
193         _createDate = createDate;
194     }
195 
196     public Date getModifiedDate() {
197         return _modifiedDate;
198     }
199 
200     public void setModifiedDate(Date modifiedDate) {
201         _modifiedDate = modifiedDate;
202     }
203 
204     public String getArticleId() {
205         return _articleId;
206     }
207 
208     public void setArticleId(String articleId) {
209         _articleId = articleId;
210     }
211 
212     public double getVersion() {
213         return _version;
214     }
215 
216     public void setVersion(double version) {
217         _version = version;
218     }
219 
220     public String getTitle() {
221         return _title;
222     }
223 
224     public void setTitle(String title) {
225         _title = title;
226     }
227 
228     public String getUrlTitle() {
229         return _urlTitle;
230     }
231 
232     public void setUrlTitle(String urlTitle) {
233         _urlTitle = urlTitle;
234     }
235 
236     public String getDescription() {
237         return _description;
238     }
239 
240     public void setDescription(String description) {
241         _description = description;
242     }
243 
244     public String getContent() {
245         return _content;
246     }
247 
248     public void setContent(String content) {
249         _content = content;
250     }
251 
252     public String getType() {
253         return _type;
254     }
255 
256     public void setType(String type) {
257         _type = type;
258     }
259 
260     public String getStructureId() {
261         return _structureId;
262     }
263 
264     public void setStructureId(String structureId) {
265         _structureId = structureId;
266     }
267 
268     public String getTemplateId() {
269         return _templateId;
270     }
271 
272     public void setTemplateId(String templateId) {
273         _templateId = templateId;
274     }
275 
276     public Date getDisplayDate() {
277         return _displayDate;
278     }
279 
280     public void setDisplayDate(Date displayDate) {
281         _displayDate = displayDate;
282     }
283 
284     public boolean getApproved() {
285         return _approved;
286     }
287 
288     public boolean isApproved() {
289         return _approved;
290     }
291 
292     public void setApproved(boolean approved) {
293         _approved = approved;
294     }
295 
296     public long getApprovedByUserId() {
297         return _approvedByUserId;
298     }
299 
300     public void setApprovedByUserId(long approvedByUserId) {
301         _approvedByUserId = approvedByUserId;
302     }
303 
304     public String getApprovedByUserName() {
305         return _approvedByUserName;
306     }
307 
308     public void setApprovedByUserName(String approvedByUserName) {
309         _approvedByUserName = approvedByUserName;
310     }
311 
312     public Date getApprovedDate() {
313         return _approvedDate;
314     }
315 
316     public void setApprovedDate(Date approvedDate) {
317         _approvedDate = approvedDate;
318     }
319 
320     public boolean getExpired() {
321         return _expired;
322     }
323 
324     public boolean isExpired() {
325         return _expired;
326     }
327 
328     public void setExpired(boolean expired) {
329         _expired = expired;
330     }
331 
332     public Date getExpirationDate() {
333         return _expirationDate;
334     }
335 
336     public void setExpirationDate(Date expirationDate) {
337         _expirationDate = expirationDate;
338     }
339 
340     public Date getReviewDate() {
341         return _reviewDate;
342     }
343 
344     public void setReviewDate(Date reviewDate) {
345         _reviewDate = reviewDate;
346     }
347 
348     public boolean getIndexable() {
349         return _indexable;
350     }
351 
352     public boolean isIndexable() {
353         return _indexable;
354     }
355 
356     public void setIndexable(boolean indexable) {
357         _indexable = indexable;
358     }
359 
360     public boolean getSmallImage() {
361         return _smallImage;
362     }
363 
364     public boolean isSmallImage() {
365         return _smallImage;
366     }
367 
368     public void setSmallImage(boolean smallImage) {
369         _smallImage = smallImage;
370     }
371 
372     public long getSmallImageId() {
373         return _smallImageId;
374     }
375 
376     public void setSmallImageId(long smallImageId) {
377         _smallImageId = smallImageId;
378     }
379 
380     public String getSmallImageURL() {
381         return _smallImageURL;
382     }
383 
384     public void setSmallImageURL(String smallImageURL) {
385         _smallImageURL = smallImageURL;
386     }
387 
388     private String _uuid;
389     private long _id;
390     private long _resourcePrimKey;
391     private long _groupId;
392     private long _companyId;
393     private long _userId;
394     private String _userName;
395     private Date _createDate;
396     private Date _modifiedDate;
397     private String _articleId;
398     private double _version;
399     private String _title;
400     private String _urlTitle;
401     private String _description;
402     private String _content;
403     private String _type;
404     private String _structureId;
405     private String _templateId;
406     private Date _displayDate;
407     private boolean _approved;
408     private long _approvedByUserId;
409     private String _approvedByUserName;
410     private Date _approvedDate;
411     private boolean _expired;
412     private Date _expirationDate;
413     private Date _reviewDate;
414     private boolean _indexable;
415     private boolean _smallImage;
416     private long _smallImageId;
417     private String _smallImageURL;
418 }