1   /**
2    * Copyright (c) 2000-2008 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="JournalFeedSoap.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   * <code>com.liferay.portlet.journal.service.http.JournalFeedServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.journal.service.http.JournalFeedServiceSoap
47   *
48   */
49  public class JournalFeedSoap implements Serializable {
50      public static JournalFeedSoap toSoapModel(JournalFeed model) {
51          JournalFeedSoap soapModel = new JournalFeedSoap();
52  
53          soapModel.setUuid(model.getUuid());
54          soapModel.setId(model.getId());
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.setFeedId(model.getFeedId());
62          soapModel.setName(model.getName());
63          soapModel.setDescription(model.getDescription());
64          soapModel.setType(model.getType());
65          soapModel.setStructureId(model.getStructureId());
66          soapModel.setTemplateId(model.getTemplateId());
67          soapModel.setRendererTemplateId(model.getRendererTemplateId());
68          soapModel.setDelta(model.getDelta());
69          soapModel.setOrderByCol(model.getOrderByCol());
70          soapModel.setOrderByType(model.getOrderByType());
71          soapModel.setTargetLayoutFriendlyUrl(model.getTargetLayoutFriendlyUrl());
72          soapModel.setTargetPortletId(model.getTargetPortletId());
73          soapModel.setContentField(model.getContentField());
74          soapModel.setFeedType(model.getFeedType());
75          soapModel.setFeedVersion(model.getFeedVersion());
76  
77          return soapModel;
78      }
79  
80      public static JournalFeedSoap[] toSoapModels(List models) {
81          List soapModels = new ArrayList(models.size());
82  
83          for (int i = 0; i < models.size(); i++) {
84              JournalFeed model = (JournalFeed)models.get(i);
85  
86              soapModels.add(toSoapModel(model));
87          }
88  
89          return (JournalFeedSoap[])soapModels.toArray(new JournalFeedSoap[0]);
90      }
91  
92      public JournalFeedSoap() {
93      }
94  
95      public long getPrimaryKey() {
96          return _id;
97      }
98  
99      public void setPrimaryKey(long pk) {
100         setId(pk);
101     }
102 
103     public String getUuid() {
104         return _uuid;
105     }
106 
107     public void setUuid(String uuid) {
108         _uuid = uuid;
109     }
110 
111     public long getId() {
112         return _id;
113     }
114 
115     public void setId(long id) {
116         _id = id;
117     }
118 
119     public long getGroupId() {
120         return _groupId;
121     }
122 
123     public void setGroupId(long groupId) {
124         _groupId = groupId;
125     }
126 
127     public long getCompanyId() {
128         return _companyId;
129     }
130 
131     public void setCompanyId(long companyId) {
132         _companyId = companyId;
133     }
134 
135     public long getUserId() {
136         return _userId;
137     }
138 
139     public void setUserId(long userId) {
140         _userId = userId;
141     }
142 
143     public String getUserName() {
144         return _userName;
145     }
146 
147     public void setUserName(String userName) {
148         _userName = userName;
149     }
150 
151     public Date getCreateDate() {
152         return _createDate;
153     }
154 
155     public void setCreateDate(Date createDate) {
156         _createDate = createDate;
157     }
158 
159     public Date getModifiedDate() {
160         return _modifiedDate;
161     }
162 
163     public void setModifiedDate(Date modifiedDate) {
164         _modifiedDate = modifiedDate;
165     }
166 
167     public String getFeedId() {
168         return _feedId;
169     }
170 
171     public void setFeedId(String feedId) {
172         _feedId = feedId;
173     }
174 
175     public String getName() {
176         return _name;
177     }
178 
179     public void setName(String name) {
180         _name = name;
181     }
182 
183     public String getDescription() {
184         return _description;
185     }
186 
187     public void setDescription(String description) {
188         _description = description;
189     }
190 
191     public String getType() {
192         return _type;
193     }
194 
195     public void setType(String type) {
196         _type = type;
197     }
198 
199     public String getStructureId() {
200         return _structureId;
201     }
202 
203     public void setStructureId(String structureId) {
204         _structureId = structureId;
205     }
206 
207     public String getTemplateId() {
208         return _templateId;
209     }
210 
211     public void setTemplateId(String templateId) {
212         _templateId = templateId;
213     }
214 
215     public String getRendererTemplateId() {
216         return _rendererTemplateId;
217     }
218 
219     public void setRendererTemplateId(String rendererTemplateId) {
220         _rendererTemplateId = rendererTemplateId;
221     }
222 
223     public int getDelta() {
224         return _delta;
225     }
226 
227     public void setDelta(int delta) {
228         _delta = delta;
229     }
230 
231     public String getOrderByCol() {
232         return _orderByCol;
233     }
234 
235     public void setOrderByCol(String orderByCol) {
236         _orderByCol = orderByCol;
237     }
238 
239     public String getOrderByType() {
240         return _orderByType;
241     }
242 
243     public void setOrderByType(String orderByType) {
244         _orderByType = orderByType;
245     }
246 
247     public String getTargetLayoutFriendlyUrl() {
248         return _targetLayoutFriendlyUrl;
249     }
250 
251     public void setTargetLayoutFriendlyUrl(String targetLayoutFriendlyUrl) {
252         _targetLayoutFriendlyUrl = targetLayoutFriendlyUrl;
253     }
254 
255     public String getTargetPortletId() {
256         return _targetPortletId;
257     }
258 
259     public void setTargetPortletId(String targetPortletId) {
260         _targetPortletId = targetPortletId;
261     }
262 
263     public String getContentField() {
264         return _contentField;
265     }
266 
267     public void setContentField(String contentField) {
268         _contentField = contentField;
269     }
270 
271     public String getFeedType() {
272         return _feedType;
273     }
274 
275     public void setFeedType(String feedType) {
276         _feedType = feedType;
277     }
278 
279     public double getFeedVersion() {
280         return _feedVersion;
281     }
282 
283     public void setFeedVersion(double feedVersion) {
284         _feedVersion = feedVersion;
285     }
286 
287     private String _uuid;
288     private long _id;
289     private long _groupId;
290     private long _companyId;
291     private long _userId;
292     private String _userName;
293     private Date _createDate;
294     private Date _modifiedDate;
295     private String _feedId;
296     private String _name;
297     private String _description;
298     private String _type;
299     private String _structureId;
300     private String _templateId;
301     private String _rendererTemplateId;
302     private int _delta;
303     private String _orderByCol;
304     private String _orderByType;
305     private String _targetLayoutFriendlyUrl;
306     private String _targetPortletId;
307     private String _contentField;
308     private String _feedType;
309     private double _feedVersion;
310 }