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