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