1   /**
2    * Copyright (c) 2000-2009 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(JournalFeed[] models) {
81          JournalFeedSoap[] soapModels = new JournalFeedSoap[models.length];
82  
83          for (int i = 0; i < models.length; i++) {
84              soapModels[i] = toSoapModel(models[i]);
85          }
86  
87          return soapModels;
88      }
89  
90      public static JournalFeedSoap[][] toSoapModels(JournalFeed[][] models) {
91          JournalFeedSoap[][] soapModels = null;
92  
93          if (models.length > 0) {
94              soapModels = new JournalFeedSoap[models.length][models[0].length];
95          }
96          else {
97              soapModels = new JournalFeedSoap[0][0];
98          }
99  
100         for (int i = 0; i < models.length; i++) {
101             soapModels[i] = toSoapModels(models[i]);
102         }
103 
104         return soapModels;
105     }
106 
107     public static JournalFeedSoap[] toSoapModels(List<JournalFeed> models) {
108         List<JournalFeedSoap> soapModels = new ArrayList<JournalFeedSoap>(models.size());
109 
110         for (JournalFeed model : models) {
111             soapModels.add(toSoapModel(model));
112         }
113 
114         return soapModels.toArray(new JournalFeedSoap[soapModels.size()]);
115     }
116 
117     public JournalFeedSoap() {
118     }
119 
120     public long getPrimaryKey() {
121         return _id;
122     }
123 
124     public void setPrimaryKey(long pk) {
125         setId(pk);
126     }
127 
128     public String getUuid() {
129         return _uuid;
130     }
131 
132     public void setUuid(String uuid) {
133         _uuid = uuid;
134     }
135 
136     public long getId() {
137         return _id;
138     }
139 
140     public void setId(long id) {
141         _id = id;
142     }
143 
144     public long getGroupId() {
145         return _groupId;
146     }
147 
148     public void setGroupId(long groupId) {
149         _groupId = groupId;
150     }
151 
152     public long getCompanyId() {
153         return _companyId;
154     }
155 
156     public void setCompanyId(long companyId) {
157         _companyId = companyId;
158     }
159 
160     public long getUserId() {
161         return _userId;
162     }
163 
164     public void setUserId(long userId) {
165         _userId = userId;
166     }
167 
168     public String getUserName() {
169         return _userName;
170     }
171 
172     public void setUserName(String userName) {
173         _userName = userName;
174     }
175 
176     public Date getCreateDate() {
177         return _createDate;
178     }
179 
180     public void setCreateDate(Date createDate) {
181         _createDate = createDate;
182     }
183 
184     public Date getModifiedDate() {
185         return _modifiedDate;
186     }
187 
188     public void setModifiedDate(Date modifiedDate) {
189         _modifiedDate = modifiedDate;
190     }
191 
192     public String getFeedId() {
193         return _feedId;
194     }
195 
196     public void setFeedId(String feedId) {
197         _feedId = feedId;
198     }
199 
200     public String getName() {
201         return _name;
202     }
203 
204     public void setName(String name) {
205         _name = name;
206     }
207 
208     public String getDescription() {
209         return _description;
210     }
211 
212     public void setDescription(String description) {
213         _description = description;
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 String getRendererTemplateId() {
241         return _rendererTemplateId;
242     }
243 
244     public void setRendererTemplateId(String rendererTemplateId) {
245         _rendererTemplateId = rendererTemplateId;
246     }
247 
248     public int getDelta() {
249         return _delta;
250     }
251 
252     public void setDelta(int delta) {
253         _delta = delta;
254     }
255 
256     public String getOrderByCol() {
257         return _orderByCol;
258     }
259 
260     public void setOrderByCol(String orderByCol) {
261         _orderByCol = orderByCol;
262     }
263 
264     public String getOrderByType() {
265         return _orderByType;
266     }
267 
268     public void setOrderByType(String orderByType) {
269         _orderByType = orderByType;
270     }
271 
272     public String getTargetLayoutFriendlyUrl() {
273         return _targetLayoutFriendlyUrl;
274     }
275 
276     public void setTargetLayoutFriendlyUrl(String targetLayoutFriendlyUrl) {
277         _targetLayoutFriendlyUrl = targetLayoutFriendlyUrl;
278     }
279 
280     public String getTargetPortletId() {
281         return _targetPortletId;
282     }
283 
284     public void setTargetPortletId(String targetPortletId) {
285         _targetPortletId = targetPortletId;
286     }
287 
288     public String getContentField() {
289         return _contentField;
290     }
291 
292     public void setContentField(String contentField) {
293         _contentField = contentField;
294     }
295 
296     public String getFeedType() {
297         return _feedType;
298     }
299 
300     public void setFeedType(String feedType) {
301         _feedType = feedType;
302     }
303 
304     public double getFeedVersion() {
305         return _feedVersion;
306     }
307 
308     public void setFeedVersion(double feedVersion) {
309         _feedVersion = feedVersion;
310     }
311 
312     private String _uuid;
313     private long _id;
314     private long _groupId;
315     private long _companyId;
316     private long _userId;
317     private String _userName;
318     private Date _createDate;
319     private Date _modifiedDate;
320     private String _feedId;
321     private String _name;
322     private String _description;
323     private String _type;
324     private String _structureId;
325     private String _templateId;
326     private String _rendererTemplateId;
327     private int _delta;
328     private String _orderByCol;
329     private String _orderByType;
330     private String _targetLayoutFriendlyUrl;
331     private String _targetPortletId;
332     private String _contentField;
333     private String _feedType;
334     private double _feedVersion;
335 }