001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.messageboards.service.http.MBMessageServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.messageboards.service.http.MBMessageServiceSoap
028     * @generated
029     */
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.setAnonymous(model.getAnonymous());
052                    soapModel.setPriority(model.getPriority());
053                    soapModel.setAllowPingbacks(model.getAllowPingbacks());
054                    soapModel.setAnswer(model.getAnswer());
055                    soapModel.setStatus(model.getStatus());
056                    soapModel.setStatusByUserId(model.getStatusByUserId());
057                    soapModel.setStatusByUserName(model.getStatusByUserName());
058                    soapModel.setStatusDate(model.getStatusDate());
059    
060                    return soapModel;
061            }
062    
063            public static MBMessageSoap[] toSoapModels(MBMessage[] models) {
064                    MBMessageSoap[] soapModels = new MBMessageSoap[models.length];
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModel(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static MBMessageSoap[][] toSoapModels(MBMessage[][] models) {
074                    MBMessageSoap[][] soapModels = null;
075    
076                    if (models.length > 0) {
077                            soapModels = new MBMessageSoap[models.length][models[0].length];
078                    }
079                    else {
080                            soapModels = new MBMessageSoap[0][0];
081                    }
082    
083                    for (int i = 0; i < models.length; i++) {
084                            soapModels[i] = toSoapModels(models[i]);
085                    }
086    
087                    return soapModels;
088            }
089    
090            public static MBMessageSoap[] toSoapModels(List<MBMessage> models) {
091                    List<MBMessageSoap> soapModels = new ArrayList<MBMessageSoap>(models.size());
092    
093                    for (MBMessage model : models) {
094                            soapModels.add(toSoapModel(model));
095                    }
096    
097                    return soapModels.toArray(new MBMessageSoap[soapModels.size()]);
098            }
099    
100            public MBMessageSoap() {
101            }
102    
103            public long getPrimaryKey() {
104                    return _messageId;
105            }
106    
107            public void setPrimaryKey(long pk) {
108                    setMessageId(pk);
109            }
110    
111            public String getUuid() {
112                    return _uuid;
113            }
114    
115            public void setUuid(String uuid) {
116                    _uuid = uuid;
117            }
118    
119            public long getMessageId() {
120                    return _messageId;
121            }
122    
123            public void setMessageId(long messageId) {
124                    _messageId = messageId;
125            }
126    
127            public long getGroupId() {
128                    return _groupId;
129            }
130    
131            public void setGroupId(long groupId) {
132                    _groupId = groupId;
133            }
134    
135            public long getCompanyId() {
136                    return _companyId;
137            }
138    
139            public void setCompanyId(long companyId) {
140                    _companyId = companyId;
141            }
142    
143            public long getUserId() {
144                    return _userId;
145            }
146    
147            public void setUserId(long userId) {
148                    _userId = userId;
149            }
150    
151            public String getUserName() {
152                    return _userName;
153            }
154    
155            public void setUserName(String userName) {
156                    _userName = userName;
157            }
158    
159            public Date getCreateDate() {
160                    return _createDate;
161            }
162    
163            public void setCreateDate(Date createDate) {
164                    _createDate = createDate;
165            }
166    
167            public Date getModifiedDate() {
168                    return _modifiedDate;
169            }
170    
171            public void setModifiedDate(Date modifiedDate) {
172                    _modifiedDate = modifiedDate;
173            }
174    
175            public long getClassNameId() {
176                    return _classNameId;
177            }
178    
179            public void setClassNameId(long classNameId) {
180                    _classNameId = classNameId;
181            }
182    
183            public long getClassPK() {
184                    return _classPK;
185            }
186    
187            public void setClassPK(long classPK) {
188                    _classPK = classPK;
189            }
190    
191            public long getCategoryId() {
192                    return _categoryId;
193            }
194    
195            public void setCategoryId(long categoryId) {
196                    _categoryId = categoryId;
197            }
198    
199            public long getThreadId() {
200                    return _threadId;
201            }
202    
203            public void setThreadId(long threadId) {
204                    _threadId = threadId;
205            }
206    
207            public long getRootMessageId() {
208                    return _rootMessageId;
209            }
210    
211            public void setRootMessageId(long rootMessageId) {
212                    _rootMessageId = rootMessageId;
213            }
214    
215            public long getParentMessageId() {
216                    return _parentMessageId;
217            }
218    
219            public void setParentMessageId(long parentMessageId) {
220                    _parentMessageId = parentMessageId;
221            }
222    
223            public String getSubject() {
224                    return _subject;
225            }
226    
227            public void setSubject(String subject) {
228                    _subject = subject;
229            }
230    
231            public String getBody() {
232                    return _body;
233            }
234    
235            public void setBody(String body) {
236                    _body = body;
237            }
238    
239            public String getFormat() {
240                    return _format;
241            }
242    
243            public void setFormat(String format) {
244                    _format = format;
245            }
246    
247            public boolean getAnonymous() {
248                    return _anonymous;
249            }
250    
251            public boolean isAnonymous() {
252                    return _anonymous;
253            }
254    
255            public void setAnonymous(boolean anonymous) {
256                    _anonymous = anonymous;
257            }
258    
259            public double getPriority() {
260                    return _priority;
261            }
262    
263            public void setPriority(double priority) {
264                    _priority = priority;
265            }
266    
267            public boolean getAllowPingbacks() {
268                    return _allowPingbacks;
269            }
270    
271            public boolean isAllowPingbacks() {
272                    return _allowPingbacks;
273            }
274    
275            public void setAllowPingbacks(boolean allowPingbacks) {
276                    _allowPingbacks = allowPingbacks;
277            }
278    
279            public boolean getAnswer() {
280                    return _answer;
281            }
282    
283            public boolean isAnswer() {
284                    return _answer;
285            }
286    
287            public void setAnswer(boolean answer) {
288                    _answer = answer;
289            }
290    
291            public int getStatus() {
292                    return _status;
293            }
294    
295            public void setStatus(int status) {
296                    _status = status;
297            }
298    
299            public long getStatusByUserId() {
300                    return _statusByUserId;
301            }
302    
303            public void setStatusByUserId(long statusByUserId) {
304                    _statusByUserId = statusByUserId;
305            }
306    
307            public String getStatusByUserName() {
308                    return _statusByUserName;
309            }
310    
311            public void setStatusByUserName(String statusByUserName) {
312                    _statusByUserName = statusByUserName;
313            }
314    
315            public Date getStatusDate() {
316                    return _statusDate;
317            }
318    
319            public void setStatusDate(Date statusDate) {
320                    _statusDate = statusDate;
321            }
322    
323            private String _uuid;
324            private long _messageId;
325            private long _groupId;
326            private long _companyId;
327            private long _userId;
328            private String _userName;
329            private Date _createDate;
330            private Date _modifiedDate;
331            private long _classNameId;
332            private long _classPK;
333            private long _categoryId;
334            private long _threadId;
335            private long _rootMessageId;
336            private long _parentMessageId;
337            private String _subject;
338            private String _body;
339            private String _format;
340            private boolean _anonymous;
341            private double _priority;
342            private boolean _allowPingbacks;
343            private boolean _answer;
344            private int _status;
345            private long _statusByUserId;
346            private String _statusByUserName;
347            private Date _statusDate;
348    }