1   /**
2    * Copyright (c) 2000-2007 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 overwritten
36   * the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by <code>com.liferay.portlet.journal.service.http.JournalArticleServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.portlet.journal.service.http.JournalArticleServiceSoap
46   *
47   */
48  public class JournalArticleSoap implements Serializable {
49      public static JournalArticleSoap toSoapModel(JournalArticle model) {
50          JournalArticleSoap soapModel = new JournalArticleSoap();
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.setDescription(model.getDescription());
63          soapModel.setContent(model.getContent());
64          soapModel.setType(model.getType());
65          soapModel.setStructureId(model.getStructureId());
66          soapModel.setTemplateId(model.getTemplateId());
67          soapModel.setDisplayDate(model.getDisplayDate());
68          soapModel.setApproved(model.getApproved());
69          soapModel.setApprovedByUserId(model.getApprovedByUserId());
70          soapModel.setApprovedByUserName(model.getApprovedByUserName());
71          soapModel.setApprovedDate(model.getApprovedDate());
72          soapModel.setExpired(model.getExpired());
73          soapModel.setExpirationDate(model.getExpirationDate());
74          soapModel.setReviewDate(model.getReviewDate());
75          soapModel.setIndexable(model.getIndexable());
76  
77          return soapModel;
78      }
79  
80      public static JournalArticleSoap[] toSoapModels(List models) {
81          List soapModels = new ArrayList(models.size());
82  
83          for (int i = 0; i < models.size(); i++) {
84              JournalArticle model = (JournalArticle)models.get(i);
85              soapModels.add(toSoapModel(model));
86          }
87  
88          return (JournalArticleSoap[])soapModels.toArray(new JournalArticleSoap[0]);
89      }
90  
91      public JournalArticleSoap() {
92      }
93  
94      public long getPrimaryKey() {
95          return _id;
96      }
97  
98      public void setPrimaryKey(long pk) {
99          setId(pk);
100     }
101 
102     public long getId() {
103         return _id;
104     }
105 
106     public void setId(long id) {
107         _id = id;
108     }
109 
110     public long getResourcePrimKey() {
111         return _resourcePrimKey;
112     }
113 
114     public void setResourcePrimKey(long resourcePrimKey) {
115         _resourcePrimKey = resourcePrimKey;
116     }
117 
118     public long getGroupId() {
119         return _groupId;
120     }
121 
122     public void setGroupId(long groupId) {
123         _groupId = groupId;
124     }
125 
126     public long getCompanyId() {
127         return _companyId;
128     }
129 
130     public void setCompanyId(long companyId) {
131         _companyId = companyId;
132     }
133 
134     public long getUserId() {
135         return _userId;
136     }
137 
138     public void setUserId(long userId) {
139         _userId = userId;
140     }
141 
142     public String getUserName() {
143         return _userName;
144     }
145 
146     public void setUserName(String userName) {
147         _userName = userName;
148     }
149 
150     public Date getCreateDate() {
151         return _createDate;
152     }
153 
154     public void setCreateDate(Date createDate) {
155         _createDate = createDate;
156     }
157 
158     public Date getModifiedDate() {
159         return _modifiedDate;
160     }
161 
162     public void setModifiedDate(Date modifiedDate) {
163         _modifiedDate = modifiedDate;
164     }
165 
166     public String getArticleId() {
167         return _articleId;
168     }
169 
170     public void setArticleId(String articleId) {
171         _articleId = articleId;
172     }
173 
174     public double getVersion() {
175         return _version;
176     }
177 
178     public void setVersion(double version) {
179         _version = version;
180     }
181 
182     public String getTitle() {
183         return _title;
184     }
185 
186     public void setTitle(String title) {
187         _title = title;
188     }
189 
190     public String getDescription() {
191         return _description;
192     }
193 
194     public void setDescription(String description) {
195         _description = description;
196     }
197 
198     public String getContent() {
199         return _content;
200     }
201 
202     public void setContent(String content) {
203         _content = content;
204     }
205 
206     public String getType() {
207         return _type;
208     }
209 
210     public void setType(String type) {
211         _type = type;
212     }
213 
214     public String getStructureId() {
215         return _structureId;
216     }
217 
218     public void setStructureId(String structureId) {
219         _structureId = structureId;
220     }
221 
222     public String getTemplateId() {
223         return _templateId;
224     }
225 
226     public void setTemplateId(String templateId) {
227         _templateId = templateId;
228     }
229 
230     public Date getDisplayDate() {
231         return _displayDate;
232     }
233 
234     public void setDisplayDate(Date displayDate) {
235         _displayDate = displayDate;
236     }
237 
238     public boolean getApproved() {
239         return _approved;
240     }
241 
242     public boolean isApproved() {
243         return _approved;
244     }
245 
246     public void setApproved(boolean approved) {
247         _approved = approved;
248     }
249 
250     public long getApprovedByUserId() {
251         return _approvedByUserId;
252     }
253 
254     public void setApprovedByUserId(long approvedByUserId) {
255         _approvedByUserId = approvedByUserId;
256     }
257 
258     public String getApprovedByUserName() {
259         return _approvedByUserName;
260     }
261 
262     public void setApprovedByUserName(String approvedByUserName) {
263         _approvedByUserName = approvedByUserName;
264     }
265 
266     public Date getApprovedDate() {
267         return _approvedDate;
268     }
269 
270     public void setApprovedDate(Date approvedDate) {
271         _approvedDate = approvedDate;
272     }
273 
274     public boolean getExpired() {
275         return _expired;
276     }
277 
278     public boolean isExpired() {
279         return _expired;
280     }
281 
282     public void setExpired(boolean expired) {
283         _expired = expired;
284     }
285 
286     public Date getExpirationDate() {
287         return _expirationDate;
288     }
289 
290     public void setExpirationDate(Date expirationDate) {
291         _expirationDate = expirationDate;
292     }
293 
294     public Date getReviewDate() {
295         return _reviewDate;
296     }
297 
298     public void setReviewDate(Date reviewDate) {
299         _reviewDate = reviewDate;
300     }
301 
302     public boolean getIndexable() {
303         return _indexable;
304     }
305 
306     public boolean isIndexable() {
307         return _indexable;
308     }
309 
310     public void setIndexable(boolean indexable) {
311         _indexable = indexable;
312     }
313 
314     private long _id;
315     private long _resourcePrimKey;
316     private long _groupId;
317     private long _companyId;
318     private long _userId;
319     private String _userName;
320     private Date _createDate;
321     private Date _modifiedDate;
322     private String _articleId;
323     private double _version;
324     private String _title;
325     private String _description;
326     private String _content;
327     private String _type;
328     private String _structureId;
329     private String _templateId;
330     private Date _displayDate;
331     private boolean _approved;
332     private long _approvedByUserId;
333     private String _approvedByUserName;
334     private Date _approvedDate;
335     private boolean _expired;
336     private Date _expirationDate;
337     private Date _reviewDate;
338     private boolean _indexable;
339 }