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