1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.messageboards.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="MBMailingListSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * {@link com.liferay.portlet.messageboards.service.http.MBMailingListServiceSoap}.
42   * </p>
43   *
44   * @author    Brian Wing Shun Chan
45   * @see       com.liferay.portlet.messageboards.service.http.MBMailingListServiceSoap
46   * @generated
47   */
48  public class MBMailingListSoap implements Serializable {
49      public static MBMailingListSoap toSoapModel(MBMailingList model) {
50          MBMailingListSoap soapModel = new MBMailingListSoap();
51  
52          soapModel.setUuid(model.getUuid());
53          soapModel.setMailingListId(model.getMailingListId());
54          soapModel.setGroupId(model.getGroupId());
55          soapModel.setCompanyId(model.getCompanyId());
56          soapModel.setUserId(model.getUserId());
57          soapModel.setUserName(model.getUserName());
58          soapModel.setCreateDate(model.getCreateDate());
59          soapModel.setModifiedDate(model.getModifiedDate());
60          soapModel.setCategoryId(model.getCategoryId());
61          soapModel.setEmailAddress(model.getEmailAddress());
62          soapModel.setInProtocol(model.getInProtocol());
63          soapModel.setInServerName(model.getInServerName());
64          soapModel.setInServerPort(model.getInServerPort());
65          soapModel.setInUseSSL(model.getInUseSSL());
66          soapModel.setInUserName(model.getInUserName());
67          soapModel.setInPassword(model.getInPassword());
68          soapModel.setInReadInterval(model.getInReadInterval());
69          soapModel.setOutEmailAddress(model.getOutEmailAddress());
70          soapModel.setOutCustom(model.getOutCustom());
71          soapModel.setOutServerName(model.getOutServerName());
72          soapModel.setOutServerPort(model.getOutServerPort());
73          soapModel.setOutUseSSL(model.getOutUseSSL());
74          soapModel.setOutUserName(model.getOutUserName());
75          soapModel.setOutPassword(model.getOutPassword());
76          soapModel.setActive(model.getActive());
77  
78          return soapModel;
79      }
80  
81      public static MBMailingListSoap[] toSoapModels(MBMailingList[] models) {
82          MBMailingListSoap[] soapModels = new MBMailingListSoap[models.length];
83  
84          for (int i = 0; i < models.length; i++) {
85              soapModels[i] = toSoapModel(models[i]);
86          }
87  
88          return soapModels;
89      }
90  
91      public static MBMailingListSoap[][] toSoapModels(MBMailingList[][] models) {
92          MBMailingListSoap[][] soapModels = null;
93  
94          if (models.length > 0) {
95              soapModels = new MBMailingListSoap[models.length][models[0].length];
96          }
97          else {
98              soapModels = new MBMailingListSoap[0][0];
99          }
100 
101         for (int i = 0; i < models.length; i++) {
102             soapModels[i] = toSoapModels(models[i]);
103         }
104 
105         return soapModels;
106     }
107 
108     public static MBMailingListSoap[] toSoapModels(List<MBMailingList> models) {
109         List<MBMailingListSoap> soapModels = new ArrayList<MBMailingListSoap>(models.size());
110 
111         for (MBMailingList model : models) {
112             soapModels.add(toSoapModel(model));
113         }
114 
115         return soapModels.toArray(new MBMailingListSoap[soapModels.size()]);
116     }
117 
118     public MBMailingListSoap() {
119     }
120 
121     public long getPrimaryKey() {
122         return _mailingListId;
123     }
124 
125     public void setPrimaryKey(long pk) {
126         setMailingListId(pk);
127     }
128 
129     public String getUuid() {
130         return _uuid;
131     }
132 
133     public void setUuid(String uuid) {
134         _uuid = uuid;
135     }
136 
137     public long getMailingListId() {
138         return _mailingListId;
139     }
140 
141     public void setMailingListId(long mailingListId) {
142         _mailingListId = mailingListId;
143     }
144 
145     public long getGroupId() {
146         return _groupId;
147     }
148 
149     public void setGroupId(long groupId) {
150         _groupId = groupId;
151     }
152 
153     public long getCompanyId() {
154         return _companyId;
155     }
156 
157     public void setCompanyId(long companyId) {
158         _companyId = companyId;
159     }
160 
161     public long getUserId() {
162         return _userId;
163     }
164 
165     public void setUserId(long userId) {
166         _userId = userId;
167     }
168 
169     public String getUserName() {
170         return _userName;
171     }
172 
173     public void setUserName(String userName) {
174         _userName = userName;
175     }
176 
177     public Date getCreateDate() {
178         return _createDate;
179     }
180 
181     public void setCreateDate(Date createDate) {
182         _createDate = createDate;
183     }
184 
185     public Date getModifiedDate() {
186         return _modifiedDate;
187     }
188 
189     public void setModifiedDate(Date modifiedDate) {
190         _modifiedDate = modifiedDate;
191     }
192 
193     public long getCategoryId() {
194         return _categoryId;
195     }
196 
197     public void setCategoryId(long categoryId) {
198         _categoryId = categoryId;
199     }
200 
201     public String getEmailAddress() {
202         return _emailAddress;
203     }
204 
205     public void setEmailAddress(String emailAddress) {
206         _emailAddress = emailAddress;
207     }
208 
209     public String getInProtocol() {
210         return _inProtocol;
211     }
212 
213     public void setInProtocol(String inProtocol) {
214         _inProtocol = inProtocol;
215     }
216 
217     public String getInServerName() {
218         return _inServerName;
219     }
220 
221     public void setInServerName(String inServerName) {
222         _inServerName = inServerName;
223     }
224 
225     public int getInServerPort() {
226         return _inServerPort;
227     }
228 
229     public void setInServerPort(int inServerPort) {
230         _inServerPort = inServerPort;
231     }
232 
233     public boolean getInUseSSL() {
234         return _inUseSSL;
235     }
236 
237     public boolean isInUseSSL() {
238         return _inUseSSL;
239     }
240 
241     public void setInUseSSL(boolean inUseSSL) {
242         _inUseSSL = inUseSSL;
243     }
244 
245     public String getInUserName() {
246         return _inUserName;
247     }
248 
249     public void setInUserName(String inUserName) {
250         _inUserName = inUserName;
251     }
252 
253     public String getInPassword() {
254         return _inPassword;
255     }
256 
257     public void setInPassword(String inPassword) {
258         _inPassword = inPassword;
259     }
260 
261     public int getInReadInterval() {
262         return _inReadInterval;
263     }
264 
265     public void setInReadInterval(int inReadInterval) {
266         _inReadInterval = inReadInterval;
267     }
268 
269     public String getOutEmailAddress() {
270         return _outEmailAddress;
271     }
272 
273     public void setOutEmailAddress(String outEmailAddress) {
274         _outEmailAddress = outEmailAddress;
275     }
276 
277     public boolean getOutCustom() {
278         return _outCustom;
279     }
280 
281     public boolean isOutCustom() {
282         return _outCustom;
283     }
284 
285     public void setOutCustom(boolean outCustom) {
286         _outCustom = outCustom;
287     }
288 
289     public String getOutServerName() {
290         return _outServerName;
291     }
292 
293     public void setOutServerName(String outServerName) {
294         _outServerName = outServerName;
295     }
296 
297     public int getOutServerPort() {
298         return _outServerPort;
299     }
300 
301     public void setOutServerPort(int outServerPort) {
302         _outServerPort = outServerPort;
303     }
304 
305     public boolean getOutUseSSL() {
306         return _outUseSSL;
307     }
308 
309     public boolean isOutUseSSL() {
310         return _outUseSSL;
311     }
312 
313     public void setOutUseSSL(boolean outUseSSL) {
314         _outUseSSL = outUseSSL;
315     }
316 
317     public String getOutUserName() {
318         return _outUserName;
319     }
320 
321     public void setOutUserName(String outUserName) {
322         _outUserName = outUserName;
323     }
324 
325     public String getOutPassword() {
326         return _outPassword;
327     }
328 
329     public void setOutPassword(String outPassword) {
330         _outPassword = outPassword;
331     }
332 
333     public boolean getActive() {
334         return _active;
335     }
336 
337     public boolean isActive() {
338         return _active;
339     }
340 
341     public void setActive(boolean active) {
342         _active = active;
343     }
344 
345     private String _uuid;
346     private long _mailingListId;
347     private long _groupId;
348     private long _companyId;
349     private long _userId;
350     private String _userName;
351     private Date _createDate;
352     private Date _modifiedDate;
353     private long _categoryId;
354     private String _emailAddress;
355     private String _inProtocol;
356     private String _inServerName;
357     private int _inServerPort;
358     private boolean _inUseSSL;
359     private String _inUserName;
360     private String _inPassword;
361     private int _inReadInterval;
362     private String _outEmailAddress;
363     private boolean _outCustom;
364     private String _outServerName;
365     private int _outServerPort;
366     private boolean _outUseSSL;
367     private String _outUserName;
368     private String _outPassword;
369     private boolean _active;
370 }