1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
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  
63          return soapModel;
64      }
65  
66      public static MBMessageSoap[] toSoapModels(MBMessage[] models) {
67          MBMessageSoap[] soapModels = new MBMessageSoap[models.length];
68  
69          for (int i = 0; i < models.length; i++) {
70              soapModels[i] = toSoapModel(models[i]);
71          }
72  
73          return soapModels;
74      }
75  
76      public static MBMessageSoap[][] toSoapModels(MBMessage[][] models) {
77          MBMessageSoap[][] soapModels = null;
78  
79          if (models.length > 0) {
80              soapModels = new MBMessageSoap[models.length][models[0].length];
81          }
82          else {
83              soapModels = new MBMessageSoap[0][0];
84          }
85  
86          for (int i = 0; i < models.length; i++) {
87              soapModels[i] = toSoapModels(models[i]);
88          }
89  
90          return soapModels;
91      }
92  
93      public static MBMessageSoap[] toSoapModels(List<MBMessage> models) {
94          List<MBMessageSoap> soapModels = new ArrayList<MBMessageSoap>(models.size());
95  
96          for (MBMessage model : models) {
97              soapModels.add(toSoapModel(model));
98          }
99  
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 getParentMessageId() {
211         return _parentMessageId;
212     }
213 
214     public void setParentMessageId(long parentMessageId) {
215         _parentMessageId = parentMessageId;
216     }
217 
218     public String getSubject() {
219         return _subject;
220     }
221 
222     public void setSubject(String subject) {
223         _subject = subject;
224     }
225 
226     public String getBody() {
227         return _body;
228     }
229 
230     public void setBody(String body) {
231         _body = body;
232     }
233 
234     public boolean getAttachments() {
235         return _attachments;
236     }
237 
238     public boolean isAttachments() {
239         return _attachments;
240     }
241 
242     public void setAttachments(boolean attachments) {
243         _attachments = attachments;
244     }
245 
246     public boolean getAnonymous() {
247         return _anonymous;
248     }
249 
250     public boolean isAnonymous() {
251         return _anonymous;
252     }
253 
254     public void setAnonymous(boolean anonymous) {
255         _anonymous = anonymous;
256     }
257 
258     public double getPriority() {
259         return _priority;
260     }
261 
262     public void setPriority(double priority) {
263         _priority = priority;
264     }
265 
266     private String _uuid;
267     private long _messageId;
268     private long _groupId;
269     private long _companyId;
270     private long _userId;
271     private String _userName;
272     private Date _createDate;
273     private Date _modifiedDate;
274     private long _classNameId;
275     private long _classPK;
276     private long _categoryId;
277     private long _threadId;
278     private long _parentMessageId;
279     private String _subject;
280     private String _body;
281     private boolean _attachments;
282     private boolean _anonymous;
283     private double _priority;
284 }