1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.blogs.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="BlogsEntrySoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap
38   * @generated
39   */
40  public class BlogsEntrySoap implements Serializable {
41      public static BlogsEntrySoap toSoapModel(BlogsEntry model) {
42          BlogsEntrySoap soapModel = new BlogsEntrySoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setEntryId(model.getEntryId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setUserName(model.getUserName());
50          soapModel.setCreateDate(model.getCreateDate());
51          soapModel.setModifiedDate(model.getModifiedDate());
52          soapModel.setTitle(model.getTitle());
53          soapModel.setUrlTitle(model.getUrlTitle());
54          soapModel.setContent(model.getContent());
55          soapModel.setDisplayDate(model.getDisplayDate());
56          soapModel.setAllowPingbacks(model.getAllowPingbacks());
57          soapModel.setAllowTrackbacks(model.getAllowTrackbacks());
58          soapModel.setTrackbacks(model.getTrackbacks());
59          soapModel.setStatus(model.getStatus());
60          soapModel.setStatusByUserId(model.getStatusByUserId());
61          soapModel.setStatusByUserName(model.getStatusByUserName());
62          soapModel.setStatusDate(model.getStatusDate());
63  
64          return soapModel;
65      }
66  
67      public static BlogsEntrySoap[] toSoapModels(BlogsEntry[] models) {
68          BlogsEntrySoap[] soapModels = new BlogsEntrySoap[models.length];
69  
70          for (int i = 0; i < models.length; i++) {
71              soapModels[i] = toSoapModel(models[i]);
72          }
73  
74          return soapModels;
75      }
76  
77      public static BlogsEntrySoap[][] toSoapModels(BlogsEntry[][] models) {
78          BlogsEntrySoap[][] soapModels = null;
79  
80          if (models.length > 0) {
81              soapModels = new BlogsEntrySoap[models.length][models[0].length];
82          }
83          else {
84              soapModels = new BlogsEntrySoap[0][0];
85          }
86  
87          for (int i = 0; i < models.length; i++) {
88              soapModels[i] = toSoapModels(models[i]);
89          }
90  
91          return soapModels;
92      }
93  
94      public static BlogsEntrySoap[] toSoapModels(List<BlogsEntry> models) {
95          List<BlogsEntrySoap> soapModels = new ArrayList<BlogsEntrySoap>(models.size());
96  
97          for (BlogsEntry model : models) {
98              soapModels.add(toSoapModel(model));
99          }
100 
101         return soapModels.toArray(new BlogsEntrySoap[soapModels.size()]);
102     }
103 
104     public BlogsEntrySoap() {
105     }
106 
107     public long getPrimaryKey() {
108         return _entryId;
109     }
110 
111     public void setPrimaryKey(long pk) {
112         setEntryId(pk);
113     }
114 
115     public String getUuid() {
116         return _uuid;
117     }
118 
119     public void setUuid(String uuid) {
120         _uuid = uuid;
121     }
122 
123     public long getEntryId() {
124         return _entryId;
125     }
126 
127     public void setEntryId(long entryId) {
128         _entryId = entryId;
129     }
130 
131     public long getGroupId() {
132         return _groupId;
133     }
134 
135     public void setGroupId(long groupId) {
136         _groupId = groupId;
137     }
138 
139     public long getCompanyId() {
140         return _companyId;
141     }
142 
143     public void setCompanyId(long companyId) {
144         _companyId = companyId;
145     }
146 
147     public long getUserId() {
148         return _userId;
149     }
150 
151     public void setUserId(long userId) {
152         _userId = userId;
153     }
154 
155     public String getUserName() {
156         return _userName;
157     }
158 
159     public void setUserName(String userName) {
160         _userName = userName;
161     }
162 
163     public Date getCreateDate() {
164         return _createDate;
165     }
166 
167     public void setCreateDate(Date createDate) {
168         _createDate = createDate;
169     }
170 
171     public Date getModifiedDate() {
172         return _modifiedDate;
173     }
174 
175     public void setModifiedDate(Date modifiedDate) {
176         _modifiedDate = modifiedDate;
177     }
178 
179     public String getTitle() {
180         return _title;
181     }
182 
183     public void setTitle(String title) {
184         _title = title;
185     }
186 
187     public String getUrlTitle() {
188         return _urlTitle;
189     }
190 
191     public void setUrlTitle(String urlTitle) {
192         _urlTitle = urlTitle;
193     }
194 
195     public String getContent() {
196         return _content;
197     }
198 
199     public void setContent(String content) {
200         _content = content;
201     }
202 
203     public Date getDisplayDate() {
204         return _displayDate;
205     }
206 
207     public void setDisplayDate(Date displayDate) {
208         _displayDate = displayDate;
209     }
210 
211     public boolean getAllowPingbacks() {
212         return _allowPingbacks;
213     }
214 
215     public boolean isAllowPingbacks() {
216         return _allowPingbacks;
217     }
218 
219     public void setAllowPingbacks(boolean allowPingbacks) {
220         _allowPingbacks = allowPingbacks;
221     }
222 
223     public boolean getAllowTrackbacks() {
224         return _allowTrackbacks;
225     }
226 
227     public boolean isAllowTrackbacks() {
228         return _allowTrackbacks;
229     }
230 
231     public void setAllowTrackbacks(boolean allowTrackbacks) {
232         _allowTrackbacks = allowTrackbacks;
233     }
234 
235     public String getTrackbacks() {
236         return _trackbacks;
237     }
238 
239     public void setTrackbacks(String trackbacks) {
240         _trackbacks = trackbacks;
241     }
242 
243     public int getStatus() {
244         return _status;
245     }
246 
247     public void setStatus(int status) {
248         _status = status;
249     }
250 
251     public long getStatusByUserId() {
252         return _statusByUserId;
253     }
254 
255     public void setStatusByUserId(long statusByUserId) {
256         _statusByUserId = statusByUserId;
257     }
258 
259     public String getStatusByUserName() {
260         return _statusByUserName;
261     }
262 
263     public void setStatusByUserName(String statusByUserName) {
264         _statusByUserName = statusByUserName;
265     }
266 
267     public Date getStatusDate() {
268         return _statusDate;
269     }
270 
271     public void setStatusDate(Date statusDate) {
272         _statusDate = statusDate;
273     }
274 
275     private String _uuid;
276     private long _entryId;
277     private long _groupId;
278     private long _companyId;
279     private long _userId;
280     private String _userName;
281     private Date _createDate;
282     private Date _modifiedDate;
283     private String _title;
284     private String _urlTitle;
285     private String _content;
286     private Date _displayDate;
287     private boolean _allowPingbacks;
288     private boolean _allowTrackbacks;
289     private String _trackbacks;
290     private int _status;
291     private long _statusByUserId;
292     private String _statusByUserName;
293     private Date _statusDate;
294 }