001
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
030 public class JournalArticleSoap implements Serializable {
031 public static JournalArticleSoap toSoapModel(JournalArticle model) {
032 JournalArticleSoap soapModel = new JournalArticleSoap();
033
034 soapModel.setUuid(model.getUuid());
035 soapModel.setId(model.getId());
036 soapModel.setResourcePrimKey(model.getResourcePrimKey());
037 soapModel.setGroupId(model.getGroupId());
038 soapModel.setCompanyId(model.getCompanyId());
039 soapModel.setUserId(model.getUserId());
040 soapModel.setUserName(model.getUserName());
041 soapModel.setCreateDate(model.getCreateDate());
042 soapModel.setModifiedDate(model.getModifiedDate());
043 soapModel.setClassNameId(model.getClassNameId());
044 soapModel.setClassPK(model.getClassPK());
045 soapModel.setArticleId(model.getArticleId());
046 soapModel.setVersion(model.getVersion());
047 soapModel.setTitle(model.getTitle());
048 soapModel.setUrlTitle(model.getUrlTitle());
049 soapModel.setDescription(model.getDescription());
050 soapModel.setContent(model.getContent());
051 soapModel.setType(model.getType());
052 soapModel.setStructureId(model.getStructureId());
053 soapModel.setTemplateId(model.getTemplateId());
054 soapModel.setLayoutUuid(model.getLayoutUuid());
055 soapModel.setDisplayDate(model.getDisplayDate());
056 soapModel.setExpirationDate(model.getExpirationDate());
057 soapModel.setReviewDate(model.getReviewDate());
058 soapModel.setIndexable(model.getIndexable());
059 soapModel.setSmallImage(model.getSmallImage());
060 soapModel.setSmallImageId(model.getSmallImageId());
061 soapModel.setSmallImageURL(model.getSmallImageURL());
062 soapModel.setStatus(model.getStatus());
063 soapModel.setStatusByUserId(model.getStatusByUserId());
064 soapModel.setStatusByUserName(model.getStatusByUserName());
065 soapModel.setStatusDate(model.getStatusDate());
066
067 return soapModel;
068 }
069
070 public static JournalArticleSoap[] toSoapModels(JournalArticle[] models) {
071 JournalArticleSoap[] soapModels = new JournalArticleSoap[models.length];
072
073 for (int i = 0; i < models.length; i++) {
074 soapModels[i] = toSoapModel(models[i]);
075 }
076
077 return soapModels;
078 }
079
080 public static JournalArticleSoap[][] toSoapModels(JournalArticle[][] models) {
081 JournalArticleSoap[][] soapModels = null;
082
083 if (models.length > 0) {
084 soapModels = new JournalArticleSoap[models.length][models[0].length];
085 }
086 else {
087 soapModels = new JournalArticleSoap[0][0];
088 }
089
090 for (int i = 0; i < models.length; i++) {
091 soapModels[i] = toSoapModels(models[i]);
092 }
093
094 return soapModels;
095 }
096
097 public static JournalArticleSoap[] toSoapModels(List<JournalArticle> models) {
098 List<JournalArticleSoap> soapModels = new ArrayList<JournalArticleSoap>(models.size());
099
100 for (JournalArticle model : models) {
101 soapModels.add(toSoapModel(model));
102 }
103
104 return soapModels.toArray(new JournalArticleSoap[soapModels.size()]);
105 }
106
107 public JournalArticleSoap() {
108 }
109
110 public long getPrimaryKey() {
111 return _id;
112 }
113
114 public void setPrimaryKey(long pk) {
115 setId(pk);
116 }
117
118 public String getUuid() {
119 return _uuid;
120 }
121
122 public void setUuid(String uuid) {
123 _uuid = uuid;
124 }
125
126 public long getId() {
127 return _id;
128 }
129
130 public void setId(long id) {
131 _id = id;
132 }
133
134 public long getResourcePrimKey() {
135 return _resourcePrimKey;
136 }
137
138 public void setResourcePrimKey(long resourcePrimKey) {
139 _resourcePrimKey = resourcePrimKey;
140 }
141
142 public long getGroupId() {
143 return _groupId;
144 }
145
146 public void setGroupId(long groupId) {
147 _groupId = groupId;
148 }
149
150 public long getCompanyId() {
151 return _companyId;
152 }
153
154 public void setCompanyId(long companyId) {
155 _companyId = companyId;
156 }
157
158 public long getUserId() {
159 return _userId;
160 }
161
162 public void setUserId(long userId) {
163 _userId = userId;
164 }
165
166 public String getUserName() {
167 return _userName;
168 }
169
170 public void setUserName(String userName) {
171 _userName = userName;
172 }
173
174 public Date getCreateDate() {
175 return _createDate;
176 }
177
178 public void setCreateDate(Date createDate) {
179 _createDate = createDate;
180 }
181
182 public Date getModifiedDate() {
183 return _modifiedDate;
184 }
185
186 public void setModifiedDate(Date modifiedDate) {
187 _modifiedDate = modifiedDate;
188 }
189
190 public long getClassNameId() {
191 return _classNameId;
192 }
193
194 public void setClassNameId(long classNameId) {
195 _classNameId = classNameId;
196 }
197
198 public long getClassPK() {
199 return _classPK;
200 }
201
202 public void setClassPK(long classPK) {
203 _classPK = classPK;
204 }
205
206 public String getArticleId() {
207 return _articleId;
208 }
209
210 public void setArticleId(String articleId) {
211 _articleId = articleId;
212 }
213
214 public double getVersion() {
215 return _version;
216 }
217
218 public void setVersion(double version) {
219 _version = version;
220 }
221
222 public String getTitle() {
223 return _title;
224 }
225
226 public void setTitle(String title) {
227 _title = title;
228 }
229
230 public String getUrlTitle() {
231 return _urlTitle;
232 }
233
234 public void setUrlTitle(String urlTitle) {
235 _urlTitle = urlTitle;
236 }
237
238 public String getDescription() {
239 return _description;
240 }
241
242 public void setDescription(String description) {
243 _description = description;
244 }
245
246 public String getContent() {
247 return _content;
248 }
249
250 public void setContent(String content) {
251 _content = content;
252 }
253
254 public String getType() {
255 return _type;
256 }
257
258 public void setType(String type) {
259 _type = type;
260 }
261
262 public String getStructureId() {
263 return _structureId;
264 }
265
266 public void setStructureId(String structureId) {
267 _structureId = structureId;
268 }
269
270 public String getTemplateId() {
271 return _templateId;
272 }
273
274 public void setTemplateId(String templateId) {
275 _templateId = templateId;
276 }
277
278 public String getLayoutUuid() {
279 return _layoutUuid;
280 }
281
282 public void setLayoutUuid(String layoutUuid) {
283 _layoutUuid = layoutUuid;
284 }
285
286 public Date getDisplayDate() {
287 return _displayDate;
288 }
289
290 public void setDisplayDate(Date displayDate) {
291 _displayDate = displayDate;
292 }
293
294 public Date getExpirationDate() {
295 return _expirationDate;
296 }
297
298 public void setExpirationDate(Date expirationDate) {
299 _expirationDate = expirationDate;
300 }
301
302 public Date getReviewDate() {
303 return _reviewDate;
304 }
305
306 public void setReviewDate(Date reviewDate) {
307 _reviewDate = reviewDate;
308 }
309
310 public boolean getIndexable() {
311 return _indexable;
312 }
313
314 public boolean isIndexable() {
315 return _indexable;
316 }
317
318 public void setIndexable(boolean indexable) {
319 _indexable = indexable;
320 }
321
322 public boolean getSmallImage() {
323 return _smallImage;
324 }
325
326 public boolean isSmallImage() {
327 return _smallImage;
328 }
329
330 public void setSmallImage(boolean smallImage) {
331 _smallImage = smallImage;
332 }
333
334 public long getSmallImageId() {
335 return _smallImageId;
336 }
337
338 public void setSmallImageId(long smallImageId) {
339 _smallImageId = smallImageId;
340 }
341
342 public String getSmallImageURL() {
343 return _smallImageURL;
344 }
345
346 public void setSmallImageURL(String smallImageURL) {
347 _smallImageURL = smallImageURL;
348 }
349
350 public int getStatus() {
351 return _status;
352 }
353
354 public void setStatus(int status) {
355 _status = status;
356 }
357
358 public long getStatusByUserId() {
359 return _statusByUserId;
360 }
361
362 public void setStatusByUserId(long statusByUserId) {
363 _statusByUserId = statusByUserId;
364 }
365
366 public String getStatusByUserName() {
367 return _statusByUserName;
368 }
369
370 public void setStatusByUserName(String statusByUserName) {
371 _statusByUserName = statusByUserName;
372 }
373
374 public Date getStatusDate() {
375 return _statusDate;
376 }
377
378 public void setStatusDate(Date statusDate) {
379 _statusDate = statusDate;
380 }
381
382 private String _uuid;
383 private long _id;
384 private long _resourcePrimKey;
385 private long _groupId;
386 private long _companyId;
387 private long _userId;
388 private String _userName;
389 private Date _createDate;
390 private Date _modifiedDate;
391 private long _classNameId;
392 private long _classPK;
393 private String _articleId;
394 private double _version;
395 private String _title;
396 private String _urlTitle;
397 private String _description;
398 private String _content;
399 private String _type;
400 private String _structureId;
401 private String _templateId;
402 private String _layoutUuid;
403 private Date _displayDate;
404 private Date _expirationDate;
405 private Date _reviewDate;
406 private boolean _indexable;
407 private boolean _smallImage;
408 private long _smallImageId;
409 private String _smallImageURL;
410 private int _status;
411 private long _statusByUserId;
412 private String _statusByUserName;
413 private Date _statusDate;
414 }