001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.setAttachments(model.getAttachments());
051                    soapModel.setAnonymous(model.getAnonymous());
052                    soapModel.setPriority(model.getPriority());
053                    soapModel.setAllowPingbacks(model.getAllowPingbacks());
054                    soapModel.setStatus(model.getStatus());
055                    soapModel.setStatusByUserId(model.getStatusByUserId());
056                    soapModel.setStatusByUserName(model.getStatusByUserName());
057                    soapModel.setStatusDate(model.getStatusDate());
058    
059                    return soapModel;
060            }
061    
062            public static MBMessageSoap[] toSoapModels(MBMessage[] models) {
063                    MBMessageSoap[] soapModels = new MBMessageSoap[models.length];
064    
065                    for (int i = 0; i < models.length; i++) {
066                            soapModels[i] = toSoapModel(models[i]);
067                    }
068    
069                    return soapModels;
070            }
071    
072            public static MBMessageSoap[][] toSoapModels(MBMessage[][] models) {
073                    MBMessageSoap[][] soapModels = null;
074    
075                    if (models.length > 0) {
076                            soapModels = new MBMessageSoap[models.length][models[0].length];
077                    }
078                    else {
079                            soapModels = new MBMessageSoap[0][0];
080                    }
081    
082                    for (int i = 0; i < models.length; i++) {
083                            soapModels[i] = toSoapModels(models[i]);
084                    }
085    
086                    return soapModels;
087            }
088    
089            public static MBMessageSoap[] toSoapModels(List<MBMessage> models) {
090                    List<MBMessageSoap> soapModels = new ArrayList<MBMessageSoap>(models.size());
091    
092                    for (MBMessage model : models) {
093                            soapModels.add(toSoapModel(model));
094                    }
095    
096                    return soapModels.toArray(new MBMessageSoap[soapModels.size()]);
097            }
098    
099            public MBMessageSoap() {
100            }
101    
102            public long getPrimaryKey() {
103                    return _messageId;
104            }
105    
106            public void setPrimaryKey(long pk) {
107                    setMessageId(pk);
108            }
109    
110            public String getUuid() {
111                    return _uuid;
112            }
113    
114            public void setUuid(String uuid) {
115                    _uuid = uuid;
116            }
117    
118            public long getMessageId() {
119                    return _messageId;
120            }
121    
122            public void setMessageId(long messageId) {
123                    _messageId = messageId;
124            }
125    
126            public long getGroupId() {
127                    return _groupId;
128            }
129    
130            public void setGroupId(long groupId) {
131                    _groupId = groupId;
132            }
133    
134            public long getCompanyId() {
135                    return _companyId;
136            }
137    
138            public void setCompanyId(long companyId) {
139                    _companyId = companyId;
140            }
141    
142            public long getUserId() {
143                    return _userId;
144            }
145    
146            public void setUserId(long userId) {
147                    _userId = userId;
148            }
149    
150            public String getUserName() {
151                    return _userName;
152            }
153    
154            public void setUserName(String userName) {
155                    _userName = userName;
156            }
157    
158            public Date getCreateDate() {
159                    return _createDate;
160            }
161    
162            public void setCreateDate(Date createDate) {
163                    _createDate = createDate;
164            }
165    
166            public Date getModifiedDate() {
167                    return _modifiedDate;
168            }
169    
170            public void setModifiedDate(Date modifiedDate) {
171                    _modifiedDate = modifiedDate;
172            }
173    
174            public long getClassNameId() {
175                    return _classNameId;
176            }
177    
178            public void setClassNameId(long classNameId) {
179                    _classNameId = classNameId;
180            }
181    
182            public long getClassPK() {
183                    return _classPK;
184            }
185    
186            public void setClassPK(long classPK) {
187                    _classPK = classPK;
188            }
189    
190            public long getCategoryId() {
191                    return _categoryId;
192            }
193    
194            public void setCategoryId(long categoryId) {
195                    _categoryId = categoryId;
196            }
197    
198            public long getThreadId() {
199                    return _threadId;
200            }
201    
202            public void setThreadId(long threadId) {
203                    _threadId = threadId;
204            }
205    
206            public long getRootMessageId() {
207                    return _rootMessageId;
208            }
209    
210            public void setRootMessageId(long rootMessageId) {
211                    _rootMessageId = rootMessageId;
212            }
213    
214            public long getParentMessageId() {
215                    return _parentMessageId;
216            }
217    
218            public void setParentMessageId(long parentMessageId) {
219                    _parentMessageId = parentMessageId;
220            }
221    
222            public String getSubject() {
223                    return _subject;
224            }
225    
226            public void setSubject(String subject) {
227                    _subject = subject;
228            }
229    
230            public String getBody() {
231                    return _body;
232            }
233    
234            public void setBody(String body) {
235                    _body = body;
236            }
237    
238            public boolean getAttachments() {
239                    return _attachments;
240            }
241    
242            public boolean isAttachments() {
243                    return _attachments;
244            }
245    
246            public void setAttachments(boolean attachments) {
247                    _attachments = attachments;
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 int getStatus() {
283                    return _status;
284            }
285    
286            public void setStatus(int status) {
287                    _status = status;
288            }
289    
290            public long getStatusByUserId() {
291                    return _statusByUserId;
292            }
293    
294            public void setStatusByUserId(long statusByUserId) {
295                    _statusByUserId = statusByUserId;
296            }
297    
298            public String getStatusByUserName() {
299                    return _statusByUserName;
300            }
301    
302            public void setStatusByUserName(String statusByUserName) {
303                    _statusByUserName = statusByUserName;
304            }
305    
306            public Date getStatusDate() {
307                    return _statusDate;
308            }
309    
310            public void setStatusDate(Date statusDate) {
311                    _statusDate = statusDate;
312            }
313    
314            private String _uuid;
315            private long _messageId;
316            private long _groupId;
317            private long _companyId;
318            private long _userId;
319            private String _userName;
320            private Date _createDate;
321            private Date _modifiedDate;
322            private long _classNameId;
323            private long _classPK;
324            private long _categoryId;
325            private long _threadId;
326            private long _rootMessageId;
327            private long _parentMessageId;
328            private String _subject;
329            private String _body;
330            private boolean _attachments;
331            private boolean _anonymous;
332            private double _priority;
333            private boolean _allowPingbacks;
334            private int _status;
335            private long _statusByUserId;
336            private String _statusByUserName;
337            private Date _statusDate;
338    }