1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   * <code>com.liferay.portlet.messageboards.service.http.MBMailingListServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.messageboards.service.http.MBMailingListServiceSoap
47   *
48   */
49  public class MBMailingListSoap implements Serializable {
50      public static MBMailingListSoap toSoapModel(MBMailingList model) {
51          MBMailingListSoap soapModel = new MBMailingListSoap();
52  
53          soapModel.setUuid(model.getUuid());
54          soapModel.setMailingListId(model.getMailingListId());
55          soapModel.setGroupId(model.getGroupId());
56          soapModel.setCompanyId(model.getCompanyId());
57          soapModel.setUserId(model.getUserId());
58          soapModel.setUserName(model.getUserName());
59          soapModel.setCreateDate(model.getCreateDate());
60          soapModel.setModifiedDate(model.getModifiedDate());
61          soapModel.setCategoryId(model.getCategoryId());
62          soapModel.setEmailAddress(model.getEmailAddress());
63          soapModel.setInProtocol(model.getInProtocol());
64          soapModel.setInServerName(model.getInServerName());
65          soapModel.setInServerPort(model.getInServerPort());
66          soapModel.setInUseSSL(model.getInUseSSL());
67          soapModel.setInUserName(model.getInUserName());
68          soapModel.setInPassword(model.getInPassword());
69          soapModel.setInReadInterval(model.getInReadInterval());
70          soapModel.setOutEmailAddress(model.getOutEmailAddress());
71          soapModel.setOutCustom(model.getOutCustom());
72          soapModel.setOutServerName(model.getOutServerName());
73          soapModel.setOutServerPort(model.getOutServerPort());
74          soapModel.setOutUseSSL(model.getOutUseSSL());
75          soapModel.setOutUserName(model.getOutUserName());
76          soapModel.setOutPassword(model.getOutPassword());
77          soapModel.setActive(model.getActive());
78  
79          return soapModel;
80      }
81  
82      public static MBMailingListSoap[] toSoapModels(List<MBMailingList> models) {
83          List<MBMailingListSoap> soapModels = new ArrayList<MBMailingListSoap>(models.size());
84  
85          for (MBMailingList model : models) {
86              soapModels.add(toSoapModel(model));
87          }
88  
89          return soapModels.toArray(new MBMailingListSoap[soapModels.size()]);
90      }
91  
92      public MBMailingListSoap() {
93      }
94  
95      public long getPrimaryKey() {
96          return _mailingListId;
97      }
98  
99      public void setPrimaryKey(long pk) {
100         setMailingListId(pk);
101     }
102 
103     public String getUuid() {
104         return _uuid;
105     }
106 
107     public void setUuid(String uuid) {
108         _uuid = uuid;
109     }
110 
111     public long getMailingListId() {
112         return _mailingListId;
113     }
114 
115     public void setMailingListId(long mailingListId) {
116         _mailingListId = mailingListId;
117     }
118 
119     public long getGroupId() {
120         return _groupId;
121     }
122 
123     public void setGroupId(long groupId) {
124         _groupId = groupId;
125     }
126 
127     public long getCompanyId() {
128         return _companyId;
129     }
130 
131     public void setCompanyId(long companyId) {
132         _companyId = companyId;
133     }
134 
135     public long getUserId() {
136         return _userId;
137     }
138 
139     public void setUserId(long userId) {
140         _userId = userId;
141     }
142 
143     public String getUserName() {
144         return _userName;
145     }
146 
147     public void setUserName(String userName) {
148         _userName = userName;
149     }
150 
151     public Date getCreateDate() {
152         return _createDate;
153     }
154 
155     public void setCreateDate(Date createDate) {
156         _createDate = createDate;
157     }
158 
159     public Date getModifiedDate() {
160         return _modifiedDate;
161     }
162 
163     public void setModifiedDate(Date modifiedDate) {
164         _modifiedDate = modifiedDate;
165     }
166 
167     public long getCategoryId() {
168         return _categoryId;
169     }
170 
171     public void setCategoryId(long categoryId) {
172         _categoryId = categoryId;
173     }
174 
175     public String getEmailAddress() {
176         return _emailAddress;
177     }
178 
179     public void setEmailAddress(String emailAddress) {
180         _emailAddress = emailAddress;
181     }
182 
183     public String getInProtocol() {
184         return _inProtocol;
185     }
186 
187     public void setInProtocol(String inProtocol) {
188         _inProtocol = inProtocol;
189     }
190 
191     public String getInServerName() {
192         return _inServerName;
193     }
194 
195     public void setInServerName(String inServerName) {
196         _inServerName = inServerName;
197     }
198 
199     public int getInServerPort() {
200         return _inServerPort;
201     }
202 
203     public void setInServerPort(int inServerPort) {
204         _inServerPort = inServerPort;
205     }
206 
207     public boolean getInUseSSL() {
208         return _inUseSSL;
209     }
210 
211     public boolean isInUseSSL() {
212         return _inUseSSL;
213     }
214 
215     public void setInUseSSL(boolean inUseSSL) {
216         _inUseSSL = inUseSSL;
217     }
218 
219     public String getInUserName() {
220         return _inUserName;
221     }
222 
223     public void setInUserName(String inUserName) {
224         _inUserName = inUserName;
225     }
226 
227     public String getInPassword() {
228         return _inPassword;
229     }
230 
231     public void setInPassword(String inPassword) {
232         _inPassword = inPassword;
233     }
234 
235     public int getInReadInterval() {
236         return _inReadInterval;
237     }
238 
239     public void setInReadInterval(int inReadInterval) {
240         _inReadInterval = inReadInterval;
241     }
242 
243     public String getOutEmailAddress() {
244         return _outEmailAddress;
245     }
246 
247     public void setOutEmailAddress(String outEmailAddress) {
248         _outEmailAddress = outEmailAddress;
249     }
250 
251     public boolean getOutCustom() {
252         return _outCustom;
253     }
254 
255     public boolean isOutCustom() {
256         return _outCustom;
257     }
258 
259     public void setOutCustom(boolean outCustom) {
260         _outCustom = outCustom;
261     }
262 
263     public String getOutServerName() {
264         return _outServerName;
265     }
266 
267     public void setOutServerName(String outServerName) {
268         _outServerName = outServerName;
269     }
270 
271     public int getOutServerPort() {
272         return _outServerPort;
273     }
274 
275     public void setOutServerPort(int outServerPort) {
276         _outServerPort = outServerPort;
277     }
278 
279     public boolean getOutUseSSL() {
280         return _outUseSSL;
281     }
282 
283     public boolean isOutUseSSL() {
284         return _outUseSSL;
285     }
286 
287     public void setOutUseSSL(boolean outUseSSL) {
288         _outUseSSL = outUseSSL;
289     }
290 
291     public String getOutUserName() {
292         return _outUserName;
293     }
294 
295     public void setOutUserName(String outUserName) {
296         _outUserName = outUserName;
297     }
298 
299     public String getOutPassword() {
300         return _outPassword;
301     }
302 
303     public void setOutPassword(String outPassword) {
304         _outPassword = outPassword;
305     }
306 
307     public boolean getActive() {
308         return _active;
309     }
310 
311     public boolean isActive() {
312         return _active;
313     }
314 
315     public void setActive(boolean active) {
316         _active = active;
317     }
318 
319     private String _uuid;
320     private long _mailingListId;
321     private long _groupId;
322     private long _companyId;
323     private long _userId;
324     private String _userName;
325     private Date _createDate;
326     private Date _modifiedDate;
327     private long _categoryId;
328     private String _emailAddress;
329     private String _inProtocol;
330     private String _inServerName;
331     private int _inServerPort;
332     private boolean _inUseSSL;
333     private String _inUserName;
334     private String _inPassword;
335     private int _inReadInterval;
336     private String _outEmailAddress;
337     private boolean _outCustom;
338     private String _outServerName;
339     private int _outServerPort;
340     private boolean _outUseSSL;
341     private String _outUserName;
342     private String _outPassword;
343     private boolean _active;
344 }