1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.messageboards.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="MBMessageSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.messageboards.service.http.MBMessageServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.messageboards.service.http.MBMessageServiceSoap
38   * @generated
39   */
40  public class MBMessageSoap implements Serializable {
41      public static MBMessageSoap toSoapModel(MBMessage model) {
42          MBMessageSoap soapModel = new MBMessageSoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setMessageId(model.getMessageId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setUserName(model.getUserName());
50          soapModel.setCreateDate(model.getCreateDate());
51          soapModel.setModifiedDate(model.getModifiedDate());
52          soapModel.setClassNameId(model.getClassNameId());
53          soapModel.setClassPK(model.getClassPK());
54          soapModel.setCategoryId(model.getCategoryId());
55          soapModel.setThreadId(model.getThreadId());
56          soapModel.setParentMessageId(model.getParentMessageId());
57          soapModel.setSubject(model.getSubject());
58          soapModel.setBody(model.getBody());
59          soapModel.setAttachments(model.getAttachments());
60          soapModel.setAnonymous(model.getAnonymous());
61          soapModel.setPriority(model.getPriority());
62          soapModel.setAllowPingbacks(model.getAllowPingbacks());
63          soapModel.setStatus(model.getStatus());
64          soapModel.setStatusByUserId(model.getStatusByUserId());
65          soapModel.setStatusByUserName(model.getStatusByUserName());
66          soapModel.setStatusDate(model.getStatusDate());
67  
68          return soapModel;
69      }
70  
71      public static MBMessageSoap[] toSoapModels(MBMessage[] models) {
72          MBMessageSoap[] soapModels = new MBMessageSoap[models.length];
73  
74          for (int i = 0; i < models.length; i++) {
75              soapModels[i] = toSoapModel(models[i]);
76          }
77  
78          return soapModels;
79      }
80  
81      public static MBMessageSoap[][] toSoapModels(MBMessage[][] models) {
82          MBMessageSoap[][] soapModels = null;
83  
84          if (models.length > 0) {
85              soapModels = new MBMessageSoap[models.length][models[0].length];
86          }
87          else {
88              soapModels = new MBMessageSoap[0][0];
89          }
90  
91          for (int i = 0; i < models.length; i++) {
92              soapModels[i] = toSoapModels(models[i]);
93          }
94  
95          return soapModels;
96      }
97  
98      public static MBMessageSoap[] toSoapModels(List<MBMessage> models) {
99          List<MBMessageSoap> soapModels = new ArrayList<MBMessageSoap>(models.size());
100 
101         for (MBMessage model : models) {
102             soapModels.add(toSoapModel(model));
103         }
104 
105         return soapModels.toArray(new MBMessageSoap[soapModels.size()]);
106     }
107 
108     public MBMessageSoap() {
109     }
110 
111     public long getPrimaryKey() {
112         return _messageId;
113     }
114 
115     public void setPrimaryKey(long pk) {
116         setMessageId(pk);
117     }
118 
119     public String getUuid() {
120         return _uuid;
121     }
122 
123     public void setUuid(String uuid) {
124         _uuid = uuid;
125     }
126 
127     public long getMessageId() {
128         return _messageId;
129     }
130 
131     public void setMessageId(long messageId) {
132         _messageId = messageId;
133     }
134 
135     public long getGroupId() {
136         return _groupId;
137     }
138 
139     public void setGroupId(long groupId) {
140         _groupId = groupId;
141     }
142 
143     public long getCompanyId() {
144         return _companyId;
145     }
146 
147     public void setCompanyId(long companyId) {
148         _companyId = companyId;
149     }
150 
151     public long getUserId() {
152         return _userId;
153     }
154 
155     public void setUserId(long userId) {
156         _userId = userId;
157     }
158 
159     public String getUserName() {
160         return _userName;
161     }
162 
163     public void setUserName(String userName) {
164         _userName = userName;
165     }
166 
167     public Date getCreateDate() {
168         return _createDate;
169     }
170 
171     public void setCreateDate(Date createDate) {
172         _createDate = createDate;
173     }
174 
175     public Date getModifiedDate() {
176         return _modifiedDate;
177     }
178 
179     public void setModifiedDate(Date modifiedDate) {
180         _modifiedDate = modifiedDate;
181     }
182 
183     public long getClassNameId() {
184         return _classNameId;
185     }
186 
187     public void setClassNameId(long classNameId) {
188         _classNameId = classNameId;
189     }
190 
191     public long getClassPK() {
192         return _classPK;
193     }
194 
195     public void setClassPK(long classPK) {
196         _classPK = classPK;
197     }
198 
199     public long getCategoryId() {
200         return _categoryId;
201     }
202 
203     public void setCategoryId(long categoryId) {
204         _categoryId = categoryId;
205     }
206 
207     public long getThreadId() {
208         return _threadId;
209     }
210 
211     public void setThreadId(long threadId) {
212         _threadId = threadId;
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 boolean getAttachments() {
240         return _attachments;
241     }
242 
243     public boolean isAttachments() {
244         return _attachments;
245     }
246 
247     public void setAttachments(boolean attachments) {
248         _attachments = attachments;
249     }
250 
251     public boolean getAnonymous() {
252         return _anonymous;
253     }
254 
255     public boolean isAnonymous() {
256         return _anonymous;
257     }
258 
259     public void setAnonymous(boolean anonymous) {
260         _anonymous = anonymous;
261     }
262 
263     public double getPriority() {
264         return _priority;
265     }
266 
267     public void setPriority(double priority) {
268         _priority = priority;
269     }
270 
271     public boolean getAllowPingbacks() {
272         return _allowPingbacks;
273     }
274 
275     public boolean isAllowPingbacks() {
276         return _allowPingbacks;
277     }
278 
279     public void setAllowPingbacks(boolean allowPingbacks) {
280         _allowPingbacks = allowPingbacks;
281     }
282 
283     public int getStatus() {
284         return _status;
285     }
286 
287     public void setStatus(int status) {
288         _status = status;
289     }
290 
291     public long getStatusByUserId() {
292         return _statusByUserId;
293     }
294 
295     public void setStatusByUserId(long statusByUserId) {
296         _statusByUserId = statusByUserId;
297     }
298 
299     public String getStatusByUserName() {
300         return _statusByUserName;
301     }
302 
303     public void setStatusByUserName(String statusByUserName) {
304         _statusByUserName = statusByUserName;
305     }
306 
307     public Date getStatusDate() {
308         return _statusDate;
309     }
310 
311     public void setStatusDate(Date statusDate) {
312         _statusDate = statusDate;
313     }
314 
315     private String _uuid;
316     private long _messageId;
317     private long _groupId;
318     private long _companyId;
319     private long _userId;
320     private String _userName;
321     private Date _createDate;
322     private Date _modifiedDate;
323     private long _classNameId;
324     private long _classPK;
325     private long _categoryId;
326     private long _threadId;
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 }