001    /**
002     * Copyright (c) 2000-2013 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     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.journal.service.http.JournalFeedServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portlet.journal.service.http.JournalFeedServiceSoap
028     * @generated
029     */
030    public class JournalFeedSoap implements Serializable {
031            public static JournalFeedSoap toSoapModel(JournalFeed model) {
032                    JournalFeedSoap soapModel = new JournalFeedSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setId(model.getId());
036                    soapModel.setGroupId(model.getGroupId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setUserId(model.getUserId());
039                    soapModel.setUserName(model.getUserName());
040                    soapModel.setCreateDate(model.getCreateDate());
041                    soapModel.setModifiedDate(model.getModifiedDate());
042                    soapModel.setFeedId(model.getFeedId());
043                    soapModel.setName(model.getName());
044                    soapModel.setDescription(model.getDescription());
045                    soapModel.setType(model.getType());
046                    soapModel.setStructureId(model.getStructureId());
047                    soapModel.setTemplateId(model.getTemplateId());
048                    soapModel.setRendererTemplateId(model.getRendererTemplateId());
049                    soapModel.setDelta(model.getDelta());
050                    soapModel.setOrderByCol(model.getOrderByCol());
051                    soapModel.setOrderByType(model.getOrderByType());
052                    soapModel.setTargetLayoutFriendlyUrl(model.getTargetLayoutFriendlyUrl());
053                    soapModel.setTargetPortletId(model.getTargetPortletId());
054                    soapModel.setContentField(model.getContentField());
055                    soapModel.setFeedType(model.getFeedType());
056                    soapModel.setFeedVersion(model.getFeedVersion());
057    
058                    return soapModel;
059            }
060    
061            public static JournalFeedSoap[] toSoapModels(JournalFeed[] models) {
062                    JournalFeedSoap[] soapModels = new JournalFeedSoap[models.length];
063    
064                    for (int i = 0; i < models.length; i++) {
065                            soapModels[i] = toSoapModel(models[i]);
066                    }
067    
068                    return soapModels;
069            }
070    
071            public static JournalFeedSoap[][] toSoapModels(JournalFeed[][] models) {
072                    JournalFeedSoap[][] soapModels = null;
073    
074                    if (models.length > 0) {
075                            soapModels = new JournalFeedSoap[models.length][models[0].length];
076                    }
077                    else {
078                            soapModels = new JournalFeedSoap[0][0];
079                    }
080    
081                    for (int i = 0; i < models.length; i++) {
082                            soapModels[i] = toSoapModels(models[i]);
083                    }
084    
085                    return soapModels;
086            }
087    
088            public static JournalFeedSoap[] toSoapModels(List<JournalFeed> models) {
089                    List<JournalFeedSoap> soapModels = new ArrayList<JournalFeedSoap>(models.size());
090    
091                    for (JournalFeed model : models) {
092                            soapModels.add(toSoapModel(model));
093                    }
094    
095                    return soapModels.toArray(new JournalFeedSoap[soapModels.size()]);
096            }
097    
098            public JournalFeedSoap() {
099            }
100    
101            public long getPrimaryKey() {
102                    return _id;
103            }
104    
105            public void setPrimaryKey(long pk) {
106                    setId(pk);
107            }
108    
109            public String getUuid() {
110                    return _uuid;
111            }
112    
113            public void setUuid(String uuid) {
114                    _uuid = uuid;
115            }
116    
117            public long getId() {
118                    return _id;
119            }
120    
121            public void setId(long id) {
122                    _id = id;
123            }
124    
125            public long getGroupId() {
126                    return _groupId;
127            }
128    
129            public void setGroupId(long groupId) {
130                    _groupId = groupId;
131            }
132    
133            public long getCompanyId() {
134                    return _companyId;
135            }
136    
137            public void setCompanyId(long companyId) {
138                    _companyId = companyId;
139            }
140    
141            public long getUserId() {
142                    return _userId;
143            }
144    
145            public void setUserId(long userId) {
146                    _userId = userId;
147            }
148    
149            public String getUserName() {
150                    return _userName;
151            }
152    
153            public void setUserName(String userName) {
154                    _userName = userName;
155            }
156    
157            public Date getCreateDate() {
158                    return _createDate;
159            }
160    
161            public void setCreateDate(Date createDate) {
162                    _createDate = createDate;
163            }
164    
165            public Date getModifiedDate() {
166                    return _modifiedDate;
167            }
168    
169            public void setModifiedDate(Date modifiedDate) {
170                    _modifiedDate = modifiedDate;
171            }
172    
173            public String getFeedId() {
174                    return _feedId;
175            }
176    
177            public void setFeedId(String feedId) {
178                    _feedId = feedId;
179            }
180    
181            public String getName() {
182                    return _name;
183            }
184    
185            public void setName(String name) {
186                    _name = name;
187            }
188    
189            public String getDescription() {
190                    return _description;
191            }
192    
193            public void setDescription(String description) {
194                    _description = description;
195            }
196    
197            public String getType() {
198                    return _type;
199            }
200    
201            public void setType(String type) {
202                    _type = type;
203            }
204    
205            public String getStructureId() {
206                    return _structureId;
207            }
208    
209            public void setStructureId(String structureId) {
210                    _structureId = structureId;
211            }
212    
213            public String getTemplateId() {
214                    return _templateId;
215            }
216    
217            public void setTemplateId(String templateId) {
218                    _templateId = templateId;
219            }
220    
221            public String getRendererTemplateId() {
222                    return _rendererTemplateId;
223            }
224    
225            public void setRendererTemplateId(String rendererTemplateId) {
226                    _rendererTemplateId = rendererTemplateId;
227            }
228    
229            public int getDelta() {
230                    return _delta;
231            }
232    
233            public void setDelta(int delta) {
234                    _delta = delta;
235            }
236    
237            public String getOrderByCol() {
238                    return _orderByCol;
239            }
240    
241            public void setOrderByCol(String orderByCol) {
242                    _orderByCol = orderByCol;
243            }
244    
245            public String getOrderByType() {
246                    return _orderByType;
247            }
248    
249            public void setOrderByType(String orderByType) {
250                    _orderByType = orderByType;
251            }
252    
253            public String getTargetLayoutFriendlyUrl() {
254                    return _targetLayoutFriendlyUrl;
255            }
256    
257            public void setTargetLayoutFriendlyUrl(String targetLayoutFriendlyUrl) {
258                    _targetLayoutFriendlyUrl = targetLayoutFriendlyUrl;
259            }
260    
261            public String getTargetPortletId() {
262                    return _targetPortletId;
263            }
264    
265            public void setTargetPortletId(String targetPortletId) {
266                    _targetPortletId = targetPortletId;
267            }
268    
269            public String getContentField() {
270                    return _contentField;
271            }
272    
273            public void setContentField(String contentField) {
274                    _contentField = contentField;
275            }
276    
277            public String getFeedType() {
278                    return _feedType;
279            }
280    
281            public void setFeedType(String feedType) {
282                    _feedType = feedType;
283            }
284    
285            public double getFeedVersion() {
286                    return _feedVersion;
287            }
288    
289            public void setFeedVersion(double feedVersion) {
290                    _feedVersion = feedVersion;
291            }
292    
293            private String _uuid;
294            private long _id;
295            private long _groupId;
296            private long _companyId;
297            private long _userId;
298            private String _userName;
299            private Date _createDate;
300            private Date _modifiedDate;
301            private String _feedId;
302            private String _name;
303            private String _description;
304            private String _type;
305            private String _structureId;
306            private String _templateId;
307            private String _rendererTemplateId;
308            private int _delta;
309            private String _orderByCol;
310            private String _orderByType;
311            private String _targetLayoutFriendlyUrl;
312            private String _targetPortletId;
313            private String _contentField;
314            private String _feedType;
315            private double _feedVersion;
316    }