1
14
15 package com.liferay.portlet.journal.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
40 public class JournalArticleSoap implements Serializable {
41 public static JournalArticleSoap toSoapModel(JournalArticle model) {
42 JournalArticleSoap soapModel = new JournalArticleSoap();
43
44 soapModel.setUuid(model.getUuid());
45 soapModel.setId(model.getId());
46 soapModel.setResourcePrimKey(model.getResourcePrimKey());
47 soapModel.setGroupId(model.getGroupId());
48 soapModel.setCompanyId(model.getCompanyId());
49 soapModel.setUserId(model.getUserId());
50 soapModel.setUserName(model.getUserName());
51 soapModel.setCreateDate(model.getCreateDate());
52 soapModel.setModifiedDate(model.getModifiedDate());
53 soapModel.setArticleId(model.getArticleId());
54 soapModel.setVersion(model.getVersion());
55 soapModel.setTitle(model.getTitle());
56 soapModel.setUrlTitle(model.getUrlTitle());
57 soapModel.setDescription(model.getDescription());
58 soapModel.setContent(model.getContent());
59 soapModel.setType(model.getType());
60 soapModel.setStructureId(model.getStructureId());
61 soapModel.setTemplateId(model.getTemplateId());
62 soapModel.setDisplayDate(model.getDisplayDate());
63 soapModel.setStatus(model.getStatus());
64 soapModel.setStatusByUserId(model.getStatusByUserId());
65 soapModel.setStatusByUserName(model.getStatusByUserName());
66 soapModel.setStatusDate(model.getStatusDate());
67 soapModel.setExpirationDate(model.getExpirationDate());
68 soapModel.setReviewDate(model.getReviewDate());
69 soapModel.setIndexable(model.getIndexable());
70 soapModel.setSmallImage(model.getSmallImage());
71 soapModel.setSmallImageId(model.getSmallImageId());
72 soapModel.setSmallImageURL(model.getSmallImageURL());
73
74 return soapModel;
75 }
76
77 public static JournalArticleSoap[] toSoapModels(JournalArticle[] models) {
78 JournalArticleSoap[] soapModels = new JournalArticleSoap[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 JournalArticleSoap[][] toSoapModels(JournalArticle[][] models) {
88 JournalArticleSoap[][] soapModels = null;
89
90 if (models.length > 0) {
91 soapModels = new JournalArticleSoap[models.length][models[0].length];
92 }
93 else {
94 soapModels = new JournalArticleSoap[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 JournalArticleSoap[] toSoapModels(List<JournalArticle> models) {
105 List<JournalArticleSoap> soapModels = new ArrayList<JournalArticleSoap>(models.size());
106
107 for (JournalArticle model : models) {
108 soapModels.add(toSoapModel(model));
109 }
110
111 return soapModels.toArray(new JournalArticleSoap[soapModels.size()]);
112 }
113
114 public JournalArticleSoap() {
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 getResourcePrimKey() {
142 return _resourcePrimKey;
143 }
144
145 public void setResourcePrimKey(long resourcePrimKey) {
146 _resourcePrimKey = resourcePrimKey;
147 }
148
149 public long getGroupId() {
150 return _groupId;
151 }
152
153 public void setGroupId(long groupId) {
154 _groupId = groupId;
155 }
156
157 public long getCompanyId() {
158 return _companyId;
159 }
160
161 public void setCompanyId(long companyId) {
162 _companyId = companyId;
163 }
164
165 public long getUserId() {
166 return _userId;
167 }
168
169 public void setUserId(long userId) {
170 _userId = userId;
171 }
172
173 public String getUserName() {
174 return _userName;
175 }
176
177 public void setUserName(String userName) {
178 _userName = userName;
179 }
180
181 public Date getCreateDate() {
182 return _createDate;
183 }
184
185 public void setCreateDate(Date createDate) {
186 _createDate = createDate;
187 }
188
189 public Date getModifiedDate() {
190 return _modifiedDate;
191 }
192
193 public void setModifiedDate(Date modifiedDate) {
194 _modifiedDate = modifiedDate;
195 }
196
197 public String getArticleId() {
198 return _articleId;
199 }
200
201 public void setArticleId(String articleId) {
202 _articleId = articleId;
203 }
204
205 public double getVersion() {
206 return _version;
207 }
208
209 public void setVersion(double version) {
210 _version = version;
211 }
212
213 public String getTitle() {
214 return _title;
215 }
216
217 public void setTitle(String title) {
218 _title = title;
219 }
220
221 public String getUrlTitle() {
222 return _urlTitle;
223 }
224
225 public void setUrlTitle(String urlTitle) {
226 _urlTitle = urlTitle;
227 }
228
229 public String getDescription() {
230 return _description;
231 }
232
233 public void setDescription(String description) {
234 _description = description;
235 }
236
237 public String getContent() {
238 return _content;
239 }
240
241 public void setContent(String content) {
242 _content = content;
243 }
244
245 public String getType() {
246 return _type;
247 }
248
249 public void setType(String type) {
250 _type = type;
251 }
252
253 public String getStructureId() {
254 return _structureId;
255 }
256
257 public void setStructureId(String structureId) {
258 _structureId = structureId;
259 }
260
261 public String getTemplateId() {
262 return _templateId;
263 }
264
265 public void setTemplateId(String templateId) {
266 _templateId = templateId;
267 }
268
269 public Date getDisplayDate() {
270 return _displayDate;
271 }
272
273 public void setDisplayDate(Date displayDate) {
274 _displayDate = displayDate;
275 }
276
277 public int getStatus() {
278 return _status;
279 }
280
281 public void setStatus(int status) {
282 _status = status;
283 }
284
285 public long getStatusByUserId() {
286 return _statusByUserId;
287 }
288
289 public void setStatusByUserId(long statusByUserId) {
290 _statusByUserId = statusByUserId;
291 }
292
293 public String getStatusByUserName() {
294 return _statusByUserName;
295 }
296
297 public void setStatusByUserName(String statusByUserName) {
298 _statusByUserName = statusByUserName;
299 }
300
301 public Date getStatusDate() {
302 return _statusDate;
303 }
304
305 public void setStatusDate(Date statusDate) {
306 _statusDate = statusDate;
307 }
308
309 public Date getExpirationDate() {
310 return _expirationDate;
311 }
312
313 public void setExpirationDate(Date expirationDate) {
314 _expirationDate = expirationDate;
315 }
316
317 public Date getReviewDate() {
318 return _reviewDate;
319 }
320
321 public void setReviewDate(Date reviewDate) {
322 _reviewDate = reviewDate;
323 }
324
325 public boolean getIndexable() {
326 return _indexable;
327 }
328
329 public boolean isIndexable() {
330 return _indexable;
331 }
332
333 public void setIndexable(boolean indexable) {
334 _indexable = indexable;
335 }
336
337 public boolean getSmallImage() {
338 return _smallImage;
339 }
340
341 public boolean isSmallImage() {
342 return _smallImage;
343 }
344
345 public void setSmallImage(boolean smallImage) {
346 _smallImage = smallImage;
347 }
348
349 public long getSmallImageId() {
350 return _smallImageId;
351 }
352
353 public void setSmallImageId(long smallImageId) {
354 _smallImageId = smallImageId;
355 }
356
357 public String getSmallImageURL() {
358 return _smallImageURL;
359 }
360
361 public void setSmallImageURL(String smallImageURL) {
362 _smallImageURL = smallImageURL;
363 }
364
365 private String _uuid;
366 private long _id;
367 private long _resourcePrimKey;
368 private long _groupId;
369 private long _companyId;
370 private long _userId;
371 private String _userName;
372 private Date _createDate;
373 private Date _modifiedDate;
374 private String _articleId;
375 private double _version;
376 private String _title;
377 private String _urlTitle;
378 private String _description;
379 private String _content;
380 private String _type;
381 private String _structureId;
382 private String _templateId;
383 private Date _displayDate;
384 private int _status;
385 private long _statusByUserId;
386 private String _statusByUserName;
387 private Date _statusDate;
388 private Date _expirationDate;
389 private Date _reviewDate;
390 private boolean _indexable;
391 private boolean _smallImage;
392 private long _smallImageId;
393 private String _smallImageURL;
394 }