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