001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * <p>
025     * This class is used by
026     * {@link com.liferay.portlet.journal.service.http.JournalFeedServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.journal.service.http.JournalFeedServiceSoap
031     * @generated
032     */
033    public class JournalFeedSoap implements Serializable {
034            public static JournalFeedSoap toSoapModel(JournalFeed model) {
035                    JournalFeedSoap soapModel = new JournalFeedSoap();
036    
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setId(model.getId());
039                    soapModel.setGroupId(model.getGroupId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setCreateDate(model.getCreateDate());
044                    soapModel.setModifiedDate(model.getModifiedDate());
045                    soapModel.setFeedId(model.getFeedId());
046                    soapModel.setName(model.getName());
047                    soapModel.setDescription(model.getDescription());
048                    soapModel.setType(model.getType());
049                    soapModel.setStructureId(model.getStructureId());
050                    soapModel.setTemplateId(model.getTemplateId());
051                    soapModel.setRendererTemplateId(model.getRendererTemplateId());
052                    soapModel.setDelta(model.getDelta());
053                    soapModel.setOrderByCol(model.getOrderByCol());
054                    soapModel.setOrderByType(model.getOrderByType());
055                    soapModel.setTargetLayoutFriendlyUrl(model.getTargetLayoutFriendlyUrl());
056                    soapModel.setTargetPortletId(model.getTargetPortletId());
057                    soapModel.setContentField(model.getContentField());
058                    soapModel.setFeedType(model.getFeedType());
059                    soapModel.setFeedVersion(model.getFeedVersion());
060    
061                    return soapModel;
062            }
063    
064            public static JournalFeedSoap[] toSoapModels(JournalFeed[] models) {
065                    JournalFeedSoap[] soapModels = new JournalFeedSoap[models.length];
066    
067                    for (int i = 0; i < models.length; i++) {
068                            soapModels[i] = toSoapModel(models[i]);
069                    }
070    
071                    return soapModels;
072            }
073    
074            public static JournalFeedSoap[][] toSoapModels(JournalFeed[][] models) {
075                    JournalFeedSoap[][] soapModels = null;
076    
077                    if (models.length > 0) {
078                            soapModels = new JournalFeedSoap[models.length][models[0].length];
079                    }
080                    else {
081                            soapModels = new JournalFeedSoap[0][0];
082                    }
083    
084                    for (int i = 0; i < models.length; i++) {
085                            soapModels[i] = toSoapModels(models[i]);
086                    }
087    
088                    return soapModels;
089            }
090    
091            public static JournalFeedSoap[] toSoapModels(List<JournalFeed> models) {
092                    List<JournalFeedSoap> soapModels = new ArrayList<JournalFeedSoap>(models.size());
093    
094                    for (JournalFeed model : models) {
095                            soapModels.add(toSoapModel(model));
096                    }
097    
098                    return soapModels.toArray(new JournalFeedSoap[soapModels.size()]);
099            }
100    
101            public JournalFeedSoap() {
102            }
103    
104            public long getPrimaryKey() {
105                    return _id;
106            }
107    
108            public void setPrimaryKey(long pk) {
109                    setId(pk);
110            }
111    
112            public String getUuid() {
113                    return _uuid;
114            }
115    
116            public void setUuid(String uuid) {
117                    _uuid = uuid;
118            }
119    
120            public long getId() {
121                    return _id;
122            }
123    
124            public void setId(long id) {
125                    _id = id;
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 getFeedId() {
177                    return _feedId;
178            }
179    
180            public void setFeedId(String feedId) {
181                    _feedId = feedId;
182            }
183    
184            public String getName() {
185                    return _name;
186            }
187    
188            public void setName(String name) {
189                    _name = name;
190            }
191    
192            public String getDescription() {
193                    return _description;
194            }
195    
196            public void setDescription(String description) {
197                    _description = description;
198            }
199    
200            public String getType() {
201                    return _type;
202            }
203    
204            public void setType(String type) {
205                    _type = type;
206            }
207    
208            public String getStructureId() {
209                    return _structureId;
210            }
211    
212            public void setStructureId(String structureId) {
213                    _structureId = structureId;
214            }
215    
216            public String getTemplateId() {
217                    return _templateId;
218            }
219    
220            public void setTemplateId(String templateId) {
221                    _templateId = templateId;
222            }
223    
224            public String getRendererTemplateId() {
225                    return _rendererTemplateId;
226            }
227    
228            public void setRendererTemplateId(String rendererTemplateId) {
229                    _rendererTemplateId = rendererTemplateId;
230            }
231    
232            public int getDelta() {
233                    return _delta;
234            }
235    
236            public void setDelta(int delta) {
237                    _delta = delta;
238            }
239    
240            public String getOrderByCol() {
241                    return _orderByCol;
242            }
243    
244            public void setOrderByCol(String orderByCol) {
245                    _orderByCol = orderByCol;
246            }
247    
248            public String getOrderByType() {
249                    return _orderByType;
250            }
251    
252            public void setOrderByType(String orderByType) {
253                    _orderByType = orderByType;
254            }
255    
256            public String getTargetLayoutFriendlyUrl() {
257                    return _targetLayoutFriendlyUrl;
258            }
259    
260            public void setTargetLayoutFriendlyUrl(String targetLayoutFriendlyUrl) {
261                    _targetLayoutFriendlyUrl = targetLayoutFriendlyUrl;
262            }
263    
264            public String getTargetPortletId() {
265                    return _targetPortletId;
266            }
267    
268            public void setTargetPortletId(String targetPortletId) {
269                    _targetPortletId = targetPortletId;
270            }
271    
272            public String getContentField() {
273                    return _contentField;
274            }
275    
276            public void setContentField(String contentField) {
277                    _contentField = contentField;
278            }
279    
280            public String getFeedType() {
281                    return _feedType;
282            }
283    
284            public void setFeedType(String feedType) {
285                    _feedType = feedType;
286            }
287    
288            public double getFeedVersion() {
289                    return _feedVersion;
290            }
291    
292            public void setFeedVersion(double feedVersion) {
293                    _feedVersion = feedVersion;
294            }
295    
296            private String _uuid;
297            private long _id;
298            private long _groupId;
299            private long _companyId;
300            private long _userId;
301            private String _userName;
302            private Date _createDate;
303            private Date _modifiedDate;
304            private String _feedId;
305            private String _name;
306            private String _description;
307            private String _type;
308            private String _structureId;
309            private String _templateId;
310            private String _rendererTemplateId;
311            private int _delta;
312            private String _orderByCol;
313            private String _orderByType;
314            private String _targetLayoutFriendlyUrl;
315            private String _targetPortletId;
316            private String _contentField;
317            private String _feedType;
318            private double _feedVersion;
319    }