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