001
014
015 package com.liferay.portlet.messageboards.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 MBMessageSoap implements Serializable {
031 public static MBMessageSoap toSoapModel(MBMessage model) {
032 MBMessageSoap soapModel = new MBMessageSoap();
033
034 soapModel.setUuid(model.getUuid());
035 soapModel.setMessageId(model.getMessageId());
036 soapModel.setGroupId(model.getGroupId());
037 soapModel.setCompanyId(model.getCompanyId());
038 soapModel.setUserId(model.getUserId());
039 soapModel.setUserName(model.getUserName());
040 soapModel.setCreateDate(model.getCreateDate());
041 soapModel.setModifiedDate(model.getModifiedDate());
042 soapModel.setClassNameId(model.getClassNameId());
043 soapModel.setClassPK(model.getClassPK());
044 soapModel.setCategoryId(model.getCategoryId());
045 soapModel.setThreadId(model.getThreadId());
046 soapModel.setRootMessageId(model.getRootMessageId());
047 soapModel.setParentMessageId(model.getParentMessageId());
048 soapModel.setSubject(model.getSubject());
049 soapModel.setBody(model.getBody());
050 soapModel.setFormat(model.getFormat());
051 soapModel.setAttachments(model.getAttachments());
052 soapModel.setAnonymous(model.getAnonymous());
053 soapModel.setPriority(model.getPriority());
054 soapModel.setAllowPingbacks(model.getAllowPingbacks());
055 soapModel.setAnswer(model.getAnswer());
056 soapModel.setStatus(model.getStatus());
057 soapModel.setStatusByUserId(model.getStatusByUserId());
058 soapModel.setStatusByUserName(model.getStatusByUserName());
059 soapModel.setStatusDate(model.getStatusDate());
060
061 return soapModel;
062 }
063
064 public static MBMessageSoap[] toSoapModels(MBMessage[] models) {
065 MBMessageSoap[] soapModels = new MBMessageSoap[models.length];
066
067 for (int i = 0; i < models.length; i++) {
068 soapModels[i] = toSoapModel(models[i]);
069 }
070
071 return soapModels;
072 }
073
074 public static MBMessageSoap[][] toSoapModels(MBMessage[][] models) {
075 MBMessageSoap[][] soapModels = null;
076
077 if (models.length > 0) {
078 soapModels = new MBMessageSoap[models.length][models[0].length];
079 }
080 else {
081 soapModels = new MBMessageSoap[0][0];
082 }
083
084 for (int i = 0; i < models.length; i++) {
085 soapModels[i] = toSoapModels(models[i]);
086 }
087
088 return soapModels;
089 }
090
091 public static MBMessageSoap[] toSoapModels(List<MBMessage> models) {
092 List<MBMessageSoap> soapModels = new ArrayList<MBMessageSoap>(models.size());
093
094 for (MBMessage model : models) {
095 soapModels.add(toSoapModel(model));
096 }
097
098 return soapModels.toArray(new MBMessageSoap[soapModels.size()]);
099 }
100
101 public MBMessageSoap() {
102 }
103
104 public long getPrimaryKey() {
105 return _messageId;
106 }
107
108 public void setPrimaryKey(long pk) {
109 setMessageId(pk);
110 }
111
112 public String getUuid() {
113 return _uuid;
114 }
115
116 public void setUuid(String uuid) {
117 _uuid = uuid;
118 }
119
120 public long getMessageId() {
121 return _messageId;
122 }
123
124 public void setMessageId(long messageId) {
125 _messageId = messageId;
126 }
127
128 public long getGroupId() {
129 return _groupId;
130 }
131
132 public void setGroupId(long groupId) {
133 _groupId = groupId;
134 }
135
136 public long getCompanyId() {
137 return _companyId;
138 }
139
140 public void setCompanyId(long companyId) {
141 _companyId = companyId;
142 }
143
144 public long getUserId() {
145 return _userId;
146 }
147
148 public void setUserId(long userId) {
149 _userId = userId;
150 }
151
152 public String getUserName() {
153 return _userName;
154 }
155
156 public void setUserName(String userName) {
157 _userName = userName;
158 }
159
160 public Date getCreateDate() {
161 return _createDate;
162 }
163
164 public void setCreateDate(Date createDate) {
165 _createDate = createDate;
166 }
167
168 public Date getModifiedDate() {
169 return _modifiedDate;
170 }
171
172 public void setModifiedDate(Date modifiedDate) {
173 _modifiedDate = modifiedDate;
174 }
175
176 public long getClassNameId() {
177 return _classNameId;
178 }
179
180 public void setClassNameId(long classNameId) {
181 _classNameId = classNameId;
182 }
183
184 public long getClassPK() {
185 return _classPK;
186 }
187
188 public void setClassPK(long classPK) {
189 _classPK = classPK;
190 }
191
192 public long getCategoryId() {
193 return _categoryId;
194 }
195
196 public void setCategoryId(long categoryId) {
197 _categoryId = categoryId;
198 }
199
200 public long getThreadId() {
201 return _threadId;
202 }
203
204 public void setThreadId(long threadId) {
205 _threadId = threadId;
206 }
207
208 public long getRootMessageId() {
209 return _rootMessageId;
210 }
211
212 public void setRootMessageId(long rootMessageId) {
213 _rootMessageId = rootMessageId;
214 }
215
216 public long getParentMessageId() {
217 return _parentMessageId;
218 }
219
220 public void setParentMessageId(long parentMessageId) {
221 _parentMessageId = parentMessageId;
222 }
223
224 public String getSubject() {
225 return _subject;
226 }
227
228 public void setSubject(String subject) {
229 _subject = subject;
230 }
231
232 public String getBody() {
233 return _body;
234 }
235
236 public void setBody(String body) {
237 _body = body;
238 }
239
240 public String getFormat() {
241 return _format;
242 }
243
244 public void setFormat(String format) {
245 _format = format;
246 }
247
248 public boolean getAttachments() {
249 return _attachments;
250 }
251
252 public boolean isAttachments() {
253 return _attachments;
254 }
255
256 public void setAttachments(boolean attachments) {
257 _attachments = attachments;
258 }
259
260 public boolean getAnonymous() {
261 return _anonymous;
262 }
263
264 public boolean isAnonymous() {
265 return _anonymous;
266 }
267
268 public void setAnonymous(boolean anonymous) {
269 _anonymous = anonymous;
270 }
271
272 public double getPriority() {
273 return _priority;
274 }
275
276 public void setPriority(double priority) {
277 _priority = priority;
278 }
279
280 public boolean getAllowPingbacks() {
281 return _allowPingbacks;
282 }
283
284 public boolean isAllowPingbacks() {
285 return _allowPingbacks;
286 }
287
288 public void setAllowPingbacks(boolean allowPingbacks) {
289 _allowPingbacks = allowPingbacks;
290 }
291
292 public boolean getAnswer() {
293 return _answer;
294 }
295
296 public boolean isAnswer() {
297 return _answer;
298 }
299
300 public void setAnswer(boolean answer) {
301 _answer = answer;
302 }
303
304 public int getStatus() {
305 return _status;
306 }
307
308 public void setStatus(int status) {
309 _status = status;
310 }
311
312 public long getStatusByUserId() {
313 return _statusByUserId;
314 }
315
316 public void setStatusByUserId(long statusByUserId) {
317 _statusByUserId = statusByUserId;
318 }
319
320 public String getStatusByUserName() {
321 return _statusByUserName;
322 }
323
324 public void setStatusByUserName(String statusByUserName) {
325 _statusByUserName = statusByUserName;
326 }
327
328 public Date getStatusDate() {
329 return _statusDate;
330 }
331
332 public void setStatusDate(Date statusDate) {
333 _statusDate = statusDate;
334 }
335
336 private String _uuid;
337 private long _messageId;
338 private long _groupId;
339 private long _companyId;
340 private long _userId;
341 private String _userName;
342 private Date _createDate;
343 private Date _modifiedDate;
344 private long _classNameId;
345 private long _classPK;
346 private long _categoryId;
347 private long _threadId;
348 private long _rootMessageId;
349 private long _parentMessageId;
350 private String _subject;
351 private String _body;
352 private String _format;
353 private boolean _attachments;
354 private boolean _anonymous;
355 private double _priority;
356 private boolean _allowPingbacks;
357 private boolean _answer;
358 private int _status;
359 private long _statusByUserId;
360 private String _statusByUserName;
361 private Date _statusDate;
362 }