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