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="MBMailingListSoap.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.MBMailingListServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.messageboards.service.http.MBMailingListServiceSoap
38   * @generated
39   */
40  public class MBMailingListSoap implements Serializable {
41      public static MBMailingListSoap toSoapModel(MBMailingList model) {
42          MBMailingListSoap soapModel = new MBMailingListSoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setMailingListId(model.getMailingListId());
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.setCategoryId(model.getCategoryId());
53          soapModel.setEmailAddress(model.getEmailAddress());
54          soapModel.setInProtocol(model.getInProtocol());
55          soapModel.setInServerName(model.getInServerName());
56          soapModel.setInServerPort(model.getInServerPort());
57          soapModel.setInUseSSL(model.getInUseSSL());
58          soapModel.setInUserName(model.getInUserName());
59          soapModel.setInPassword(model.getInPassword());
60          soapModel.setInReadInterval(model.getInReadInterval());
61          soapModel.setOutEmailAddress(model.getOutEmailAddress());
62          soapModel.setOutCustom(model.getOutCustom());
63          soapModel.setOutServerName(model.getOutServerName());
64          soapModel.setOutServerPort(model.getOutServerPort());
65          soapModel.setOutUseSSL(model.getOutUseSSL());
66          soapModel.setOutUserName(model.getOutUserName());
67          soapModel.setOutPassword(model.getOutPassword());
68          soapModel.setActive(model.getActive());
69  
70          return soapModel;
71      }
72  
73      public static MBMailingListSoap[] toSoapModels(MBMailingList[] models) {
74          MBMailingListSoap[] soapModels = new MBMailingListSoap[models.length];
75  
76          for (int i = 0; i < models.length; i++) {
77              soapModels[i] = toSoapModel(models[i]);
78          }
79  
80          return soapModels;
81      }
82  
83      public static MBMailingListSoap[][] toSoapModels(MBMailingList[][] models) {
84          MBMailingListSoap[][] soapModels = null;
85  
86          if (models.length > 0) {
87              soapModels = new MBMailingListSoap[models.length][models[0].length];
88          }
89          else {
90              soapModels = new MBMailingListSoap[0][0];
91          }
92  
93          for (int i = 0; i < models.length; i++) {
94              soapModels[i] = toSoapModels(models[i]);
95          }
96  
97          return soapModels;
98      }
99  
100     public static MBMailingListSoap[] toSoapModels(List<MBMailingList> models) {
101         List<MBMailingListSoap> soapModels = new ArrayList<MBMailingListSoap>(models.size());
102 
103         for (MBMailingList model : models) {
104             soapModels.add(toSoapModel(model));
105         }
106 
107         return soapModels.toArray(new MBMailingListSoap[soapModels.size()]);
108     }
109 
110     public MBMailingListSoap() {
111     }
112 
113     public long getPrimaryKey() {
114         return _mailingListId;
115     }
116 
117     public void setPrimaryKey(long pk) {
118         setMailingListId(pk);
119     }
120 
121     public String getUuid() {
122         return _uuid;
123     }
124 
125     public void setUuid(String uuid) {
126         _uuid = uuid;
127     }
128 
129     public long getMailingListId() {
130         return _mailingListId;
131     }
132 
133     public void setMailingListId(long mailingListId) {
134         _mailingListId = mailingListId;
135     }
136 
137     public long getGroupId() {
138         return _groupId;
139     }
140 
141     public void setGroupId(long groupId) {
142         _groupId = groupId;
143     }
144 
145     public long getCompanyId() {
146         return _companyId;
147     }
148 
149     public void setCompanyId(long companyId) {
150         _companyId = companyId;
151     }
152 
153     public long getUserId() {
154         return _userId;
155     }
156 
157     public void setUserId(long userId) {
158         _userId = userId;
159     }
160 
161     public String getUserName() {
162         return _userName;
163     }
164 
165     public void setUserName(String userName) {
166         _userName = userName;
167     }
168 
169     public Date getCreateDate() {
170         return _createDate;
171     }
172 
173     public void setCreateDate(Date createDate) {
174         _createDate = createDate;
175     }
176 
177     public Date getModifiedDate() {
178         return _modifiedDate;
179     }
180 
181     public void setModifiedDate(Date modifiedDate) {
182         _modifiedDate = modifiedDate;
183     }
184 
185     public long getCategoryId() {
186         return _categoryId;
187     }
188 
189     public void setCategoryId(long categoryId) {
190         _categoryId = categoryId;
191     }
192 
193     public String getEmailAddress() {
194         return _emailAddress;
195     }
196 
197     public void setEmailAddress(String emailAddress) {
198         _emailAddress = emailAddress;
199     }
200 
201     public String getInProtocol() {
202         return _inProtocol;
203     }
204 
205     public void setInProtocol(String inProtocol) {
206         _inProtocol = inProtocol;
207     }
208 
209     public String getInServerName() {
210         return _inServerName;
211     }
212 
213     public void setInServerName(String inServerName) {
214         _inServerName = inServerName;
215     }
216 
217     public int getInServerPort() {
218         return _inServerPort;
219     }
220 
221     public void setInServerPort(int inServerPort) {
222         _inServerPort = inServerPort;
223     }
224 
225     public boolean getInUseSSL() {
226         return _inUseSSL;
227     }
228 
229     public boolean isInUseSSL() {
230         return _inUseSSL;
231     }
232 
233     public void setInUseSSL(boolean inUseSSL) {
234         _inUseSSL = inUseSSL;
235     }
236 
237     public String getInUserName() {
238         return _inUserName;
239     }
240 
241     public void setInUserName(String inUserName) {
242         _inUserName = inUserName;
243     }
244 
245     public String getInPassword() {
246         return _inPassword;
247     }
248 
249     public void setInPassword(String inPassword) {
250         _inPassword = inPassword;
251     }
252 
253     public int getInReadInterval() {
254         return _inReadInterval;
255     }
256 
257     public void setInReadInterval(int inReadInterval) {
258         _inReadInterval = inReadInterval;
259     }
260 
261     public String getOutEmailAddress() {
262         return _outEmailAddress;
263     }
264 
265     public void setOutEmailAddress(String outEmailAddress) {
266         _outEmailAddress = outEmailAddress;
267     }
268 
269     public boolean getOutCustom() {
270         return _outCustom;
271     }
272 
273     public boolean isOutCustom() {
274         return _outCustom;
275     }
276 
277     public void setOutCustom(boolean outCustom) {
278         _outCustom = outCustom;
279     }
280 
281     public String getOutServerName() {
282         return _outServerName;
283     }
284 
285     public void setOutServerName(String outServerName) {
286         _outServerName = outServerName;
287     }
288 
289     public int getOutServerPort() {
290         return _outServerPort;
291     }
292 
293     public void setOutServerPort(int outServerPort) {
294         _outServerPort = outServerPort;
295     }
296 
297     public boolean getOutUseSSL() {
298         return _outUseSSL;
299     }
300 
301     public boolean isOutUseSSL() {
302         return _outUseSSL;
303     }
304 
305     public void setOutUseSSL(boolean outUseSSL) {
306         _outUseSSL = outUseSSL;
307     }
308 
309     public String getOutUserName() {
310         return _outUserName;
311     }
312 
313     public void setOutUserName(String outUserName) {
314         _outUserName = outUserName;
315     }
316 
317     public String getOutPassword() {
318         return _outPassword;
319     }
320 
321     public void setOutPassword(String outPassword) {
322         _outPassword = outPassword;
323     }
324 
325     public boolean getActive() {
326         return _active;
327     }
328 
329     public boolean isActive() {
330         return _active;
331     }
332 
333     public void setActive(boolean active) {
334         _active = active;
335     }
336 
337     private String _uuid;
338     private long _mailingListId;
339     private long _groupId;
340     private long _companyId;
341     private long _userId;
342     private String _userName;
343     private Date _createDate;
344     private Date _modifiedDate;
345     private long _categoryId;
346     private String _emailAddress;
347     private String _inProtocol;
348     private String _inServerName;
349     private int _inServerPort;
350     private boolean _inUseSSL;
351     private String _inUserName;
352     private String _inPassword;
353     private int _inReadInterval;
354     private String _outEmailAddress;
355     private boolean _outCustom;
356     private String _outServerName;
357     private int _outServerPort;
358     private boolean _outUseSSL;
359     private String _outUserName;
360     private String _outPassword;
361     private boolean _active;
362 }