001
014
015 package com.liferay.portlet.blogs.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
032 @ProviderType
033 public class BlogsEntrySoap implements Serializable {
034 public static BlogsEntrySoap toSoapModel(BlogsEntry model) {
035 BlogsEntrySoap soapModel = new BlogsEntrySoap();
036
037 soapModel.setUuid(model.getUuid());
038 soapModel.setEntryId(model.getEntryId());
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.setTitle(model.getTitle());
046 soapModel.setSubtitle(model.getSubtitle());
047 soapModel.setUrlTitle(model.getUrlTitle());
048 soapModel.setDescription(model.getDescription());
049 soapModel.setContent(model.getContent());
050 soapModel.setDisplayDate(model.getDisplayDate());
051 soapModel.setAllowPingbacks(model.getAllowPingbacks());
052 soapModel.setAllowTrackbacks(model.getAllowTrackbacks());
053 soapModel.setTrackbacks(model.getTrackbacks());
054 soapModel.setCoverImageFileEntryId(model.getCoverImageFileEntryId());
055 soapModel.setCoverImageURL(model.getCoverImageURL());
056 soapModel.setSmallImage(model.getSmallImage());
057 soapModel.setSmallImageFileEntryId(model.getSmallImageFileEntryId());
058 soapModel.setSmallImageId(model.getSmallImageId());
059 soapModel.setSmallImageURL(model.getSmallImageURL());
060 soapModel.setStatus(model.getStatus());
061 soapModel.setStatusByUserId(model.getStatusByUserId());
062 soapModel.setStatusByUserName(model.getStatusByUserName());
063 soapModel.setStatusDate(model.getStatusDate());
064
065 return soapModel;
066 }
067
068 public static BlogsEntrySoap[] toSoapModels(BlogsEntry[] models) {
069 BlogsEntrySoap[] soapModels = new BlogsEntrySoap[models.length];
070
071 for (int i = 0; i < models.length; i++) {
072 soapModels[i] = toSoapModel(models[i]);
073 }
074
075 return soapModels;
076 }
077
078 public static BlogsEntrySoap[][] toSoapModels(BlogsEntry[][] models) {
079 BlogsEntrySoap[][] soapModels = null;
080
081 if (models.length > 0) {
082 soapModels = new BlogsEntrySoap[models.length][models[0].length];
083 }
084 else {
085 soapModels = new BlogsEntrySoap[0][0];
086 }
087
088 for (int i = 0; i < models.length; i++) {
089 soapModels[i] = toSoapModels(models[i]);
090 }
091
092 return soapModels;
093 }
094
095 public static BlogsEntrySoap[] toSoapModels(List<BlogsEntry> models) {
096 List<BlogsEntrySoap> soapModels = new ArrayList<BlogsEntrySoap>(models.size());
097
098 for (BlogsEntry model : models) {
099 soapModels.add(toSoapModel(model));
100 }
101
102 return soapModels.toArray(new BlogsEntrySoap[soapModels.size()]);
103 }
104
105 public BlogsEntrySoap() {
106 }
107
108 public long getPrimaryKey() {
109 return _entryId;
110 }
111
112 public void setPrimaryKey(long pk) {
113 setEntryId(pk);
114 }
115
116 public String getUuid() {
117 return _uuid;
118 }
119
120 public void setUuid(String uuid) {
121 _uuid = uuid;
122 }
123
124 public long getEntryId() {
125 return _entryId;
126 }
127
128 public void setEntryId(long entryId) {
129 _entryId = entryId;
130 }
131
132 public long getGroupId() {
133 return _groupId;
134 }
135
136 public void setGroupId(long groupId) {
137 _groupId = groupId;
138 }
139
140 public long getCompanyId() {
141 return _companyId;
142 }
143
144 public void setCompanyId(long companyId) {
145 _companyId = companyId;
146 }
147
148 public long getUserId() {
149 return _userId;
150 }
151
152 public void setUserId(long userId) {
153 _userId = userId;
154 }
155
156 public String getUserName() {
157 return _userName;
158 }
159
160 public void setUserName(String userName) {
161 _userName = userName;
162 }
163
164 public Date getCreateDate() {
165 return _createDate;
166 }
167
168 public void setCreateDate(Date createDate) {
169 _createDate = createDate;
170 }
171
172 public Date getModifiedDate() {
173 return _modifiedDate;
174 }
175
176 public void setModifiedDate(Date modifiedDate) {
177 _modifiedDate = modifiedDate;
178 }
179
180 public String getTitle() {
181 return _title;
182 }
183
184 public void setTitle(String title) {
185 _title = title;
186 }
187
188 public String getSubtitle() {
189 return _subtitle;
190 }
191
192 public void setSubtitle(String subtitle) {
193 _subtitle = subtitle;
194 }
195
196 public String getUrlTitle() {
197 return _urlTitle;
198 }
199
200 public void setUrlTitle(String urlTitle) {
201 _urlTitle = urlTitle;
202 }
203
204 public String getDescription() {
205 return _description;
206 }
207
208 public void setDescription(String description) {
209 _description = description;
210 }
211
212 public String getContent() {
213 return _content;
214 }
215
216 public void setContent(String content) {
217 _content = content;
218 }
219
220 public Date getDisplayDate() {
221 return _displayDate;
222 }
223
224 public void setDisplayDate(Date displayDate) {
225 _displayDate = displayDate;
226 }
227
228 public boolean getAllowPingbacks() {
229 return _allowPingbacks;
230 }
231
232 public boolean isAllowPingbacks() {
233 return _allowPingbacks;
234 }
235
236 public void setAllowPingbacks(boolean allowPingbacks) {
237 _allowPingbacks = allowPingbacks;
238 }
239
240 public boolean getAllowTrackbacks() {
241 return _allowTrackbacks;
242 }
243
244 public boolean isAllowTrackbacks() {
245 return _allowTrackbacks;
246 }
247
248 public void setAllowTrackbacks(boolean allowTrackbacks) {
249 _allowTrackbacks = allowTrackbacks;
250 }
251
252 public String getTrackbacks() {
253 return _trackbacks;
254 }
255
256 public void setTrackbacks(String trackbacks) {
257 _trackbacks = trackbacks;
258 }
259
260 public long getCoverImageFileEntryId() {
261 return _coverImageFileEntryId;
262 }
263
264 public void setCoverImageFileEntryId(long coverImageFileEntryId) {
265 _coverImageFileEntryId = coverImageFileEntryId;
266 }
267
268 public String getCoverImageURL() {
269 return _coverImageURL;
270 }
271
272 public void setCoverImageURL(String coverImageURL) {
273 _coverImageURL = coverImageURL;
274 }
275
276 public boolean getSmallImage() {
277 return _smallImage;
278 }
279
280 public boolean isSmallImage() {
281 return _smallImage;
282 }
283
284 public void setSmallImage(boolean smallImage) {
285 _smallImage = smallImage;
286 }
287
288 public long getSmallImageFileEntryId() {
289 return _smallImageFileEntryId;
290 }
291
292 public void setSmallImageFileEntryId(long smallImageFileEntryId) {
293 _smallImageFileEntryId = smallImageFileEntryId;
294 }
295
296 public long getSmallImageId() {
297 return _smallImageId;
298 }
299
300 public void setSmallImageId(long smallImageId) {
301 _smallImageId = smallImageId;
302 }
303
304 public String getSmallImageURL() {
305 return _smallImageURL;
306 }
307
308 public void setSmallImageURL(String smallImageURL) {
309 _smallImageURL = smallImageURL;
310 }
311
312 public int getStatus() {
313 return _status;
314 }
315
316 public void setStatus(int status) {
317 _status = status;
318 }
319
320 public long getStatusByUserId() {
321 return _statusByUserId;
322 }
323
324 public void setStatusByUserId(long statusByUserId) {
325 _statusByUserId = statusByUserId;
326 }
327
328 public String getStatusByUserName() {
329 return _statusByUserName;
330 }
331
332 public void setStatusByUserName(String statusByUserName) {
333 _statusByUserName = statusByUserName;
334 }
335
336 public Date getStatusDate() {
337 return _statusDate;
338 }
339
340 public void setStatusDate(Date statusDate) {
341 _statusDate = statusDate;
342 }
343
344 private String _uuid;
345 private long _entryId;
346 private long _groupId;
347 private long _companyId;
348 private long _userId;
349 private String _userName;
350 private Date _createDate;
351 private Date _modifiedDate;
352 private String _title;
353 private String _subtitle;
354 private String _urlTitle;
355 private String _description;
356 private String _content;
357 private Date _displayDate;
358 private boolean _allowPingbacks;
359 private boolean _allowTrackbacks;
360 private String _trackbacks;
361 private long _coverImageFileEntryId;
362 private String _coverImageURL;
363 private boolean _smallImage;
364 private long _smallImageFileEntryId;
365 private long _smallImageId;
366 private String _smallImageURL;
367 private int _status;
368 private long _statusByUserId;
369 private String _statusByUserName;
370 private Date _statusDate;
371 }