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