001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services.
025     *
026     * @author Brian Wing Shun Chan
027     * @generated
028     */
029    public class MBMailingListSoap implements Serializable {
030            public static MBMailingListSoap toSoapModel(MBMailingList model) {
031                    MBMailingListSoap soapModel = new MBMailingListSoap();
032    
033                    soapModel.setUuid(model.getUuid());
034                    soapModel.setMailingListId(model.getMailingListId());
035                    soapModel.setGroupId(model.getGroupId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setCategoryId(model.getCategoryId());
042                    soapModel.setEmailAddress(model.getEmailAddress());
043                    soapModel.setInProtocol(model.getInProtocol());
044                    soapModel.setInServerName(model.getInServerName());
045                    soapModel.setInServerPort(model.getInServerPort());
046                    soapModel.setInUseSSL(model.getInUseSSL());
047                    soapModel.setInUserName(model.getInUserName());
048                    soapModel.setInPassword(model.getInPassword());
049                    soapModel.setInReadInterval(model.getInReadInterval());
050                    soapModel.setOutEmailAddress(model.getOutEmailAddress());
051                    soapModel.setOutCustom(model.getOutCustom());
052                    soapModel.setOutServerName(model.getOutServerName());
053                    soapModel.setOutServerPort(model.getOutServerPort());
054                    soapModel.setOutUseSSL(model.getOutUseSSL());
055                    soapModel.setOutUserName(model.getOutUserName());
056                    soapModel.setOutPassword(model.getOutPassword());
057                    soapModel.setAllowAnonymous(model.getAllowAnonymous());
058                    soapModel.setActive(model.getActive());
059    
060                    return soapModel;
061            }
062    
063            public static MBMailingListSoap[] toSoapModels(MBMailingList[] models) {
064                    MBMailingListSoap[] soapModels = new MBMailingListSoap[models.length];
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModel(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static MBMailingListSoap[][] toSoapModels(MBMailingList[][] models) {
074                    MBMailingListSoap[][] soapModels = null;
075    
076                    if (models.length > 0) {
077                            soapModels = new MBMailingListSoap[models.length][models[0].length];
078                    }
079                    else {
080                            soapModels = new MBMailingListSoap[0][0];
081                    }
082    
083                    for (int i = 0; i < models.length; i++) {
084                            soapModels[i] = toSoapModels(models[i]);
085                    }
086    
087                    return soapModels;
088            }
089    
090            public static MBMailingListSoap[] toSoapModels(List<MBMailingList> models) {
091                    List<MBMailingListSoap> soapModels = new ArrayList<MBMailingListSoap>(models.size());
092    
093                    for (MBMailingList model : models) {
094                            soapModels.add(toSoapModel(model));
095                    }
096    
097                    return soapModels.toArray(new MBMailingListSoap[soapModels.size()]);
098            }
099    
100            public MBMailingListSoap() {
101            }
102    
103            public long getPrimaryKey() {
104                    return _mailingListId;
105            }
106    
107            public void setPrimaryKey(long pk) {
108                    setMailingListId(pk);
109            }
110    
111            public String getUuid() {
112                    return _uuid;
113            }
114    
115            public void setUuid(String uuid) {
116                    _uuid = uuid;
117            }
118    
119            public long getMailingListId() {
120                    return _mailingListId;
121            }
122    
123            public void setMailingListId(long mailingListId) {
124                    _mailingListId = mailingListId;
125            }
126    
127            public long getGroupId() {
128                    return _groupId;
129            }
130    
131            public void setGroupId(long groupId) {
132                    _groupId = groupId;
133            }
134    
135            public long getCompanyId() {
136                    return _companyId;
137            }
138    
139            public void setCompanyId(long companyId) {
140                    _companyId = companyId;
141            }
142    
143            public long getUserId() {
144                    return _userId;
145            }
146    
147            public void setUserId(long userId) {
148                    _userId = userId;
149            }
150    
151            public String getUserName() {
152                    return _userName;
153            }
154    
155            public void setUserName(String userName) {
156                    _userName = userName;
157            }
158    
159            public Date getCreateDate() {
160                    return _createDate;
161            }
162    
163            public void setCreateDate(Date createDate) {
164                    _createDate = createDate;
165            }
166    
167            public Date getModifiedDate() {
168                    return _modifiedDate;
169            }
170    
171            public void setModifiedDate(Date modifiedDate) {
172                    _modifiedDate = modifiedDate;
173            }
174    
175            public long getCategoryId() {
176                    return _categoryId;
177            }
178    
179            public void setCategoryId(long categoryId) {
180                    _categoryId = categoryId;
181            }
182    
183            public String getEmailAddress() {
184                    return _emailAddress;
185            }
186    
187            public void setEmailAddress(String emailAddress) {
188                    _emailAddress = emailAddress;
189            }
190    
191            public String getInProtocol() {
192                    return _inProtocol;
193            }
194    
195            public void setInProtocol(String inProtocol) {
196                    _inProtocol = inProtocol;
197            }
198    
199            public String getInServerName() {
200                    return _inServerName;
201            }
202    
203            public void setInServerName(String inServerName) {
204                    _inServerName = inServerName;
205            }
206    
207            public int getInServerPort() {
208                    return _inServerPort;
209            }
210    
211            public void setInServerPort(int inServerPort) {
212                    _inServerPort = inServerPort;
213            }
214    
215            public boolean getInUseSSL() {
216                    return _inUseSSL;
217            }
218    
219            public boolean isInUseSSL() {
220                    return _inUseSSL;
221            }
222    
223            public void setInUseSSL(boolean inUseSSL) {
224                    _inUseSSL = inUseSSL;
225            }
226    
227            public String getInUserName() {
228                    return _inUserName;
229            }
230    
231            public void setInUserName(String inUserName) {
232                    _inUserName = inUserName;
233            }
234    
235            public String getInPassword() {
236                    return _inPassword;
237            }
238    
239            public void setInPassword(String inPassword) {
240                    _inPassword = inPassword;
241            }
242    
243            public int getInReadInterval() {
244                    return _inReadInterval;
245            }
246    
247            public void setInReadInterval(int inReadInterval) {
248                    _inReadInterval = inReadInterval;
249            }
250    
251            public String getOutEmailAddress() {
252                    return _outEmailAddress;
253            }
254    
255            public void setOutEmailAddress(String outEmailAddress) {
256                    _outEmailAddress = outEmailAddress;
257            }
258    
259            public boolean getOutCustom() {
260                    return _outCustom;
261            }
262    
263            public boolean isOutCustom() {
264                    return _outCustom;
265            }
266    
267            public void setOutCustom(boolean outCustom) {
268                    _outCustom = outCustom;
269            }
270    
271            public String getOutServerName() {
272                    return _outServerName;
273            }
274    
275            public void setOutServerName(String outServerName) {
276                    _outServerName = outServerName;
277            }
278    
279            public int getOutServerPort() {
280                    return _outServerPort;
281            }
282    
283            public void setOutServerPort(int outServerPort) {
284                    _outServerPort = outServerPort;
285            }
286    
287            public boolean getOutUseSSL() {
288                    return _outUseSSL;
289            }
290    
291            public boolean isOutUseSSL() {
292                    return _outUseSSL;
293            }
294    
295            public void setOutUseSSL(boolean outUseSSL) {
296                    _outUseSSL = outUseSSL;
297            }
298    
299            public String getOutUserName() {
300                    return _outUserName;
301            }
302    
303            public void setOutUserName(String outUserName) {
304                    _outUserName = outUserName;
305            }
306    
307            public String getOutPassword() {
308                    return _outPassword;
309            }
310    
311            public void setOutPassword(String outPassword) {
312                    _outPassword = outPassword;
313            }
314    
315            public boolean getAllowAnonymous() {
316                    return _allowAnonymous;
317            }
318    
319            public boolean isAllowAnonymous() {
320                    return _allowAnonymous;
321            }
322    
323            public void setAllowAnonymous(boolean allowAnonymous) {
324                    _allowAnonymous = allowAnonymous;
325            }
326    
327            public boolean getActive() {
328                    return _active;
329            }
330    
331            public boolean isActive() {
332                    return _active;
333            }
334    
335            public void setActive(boolean active) {
336                    _active = active;
337            }
338    
339            private String _uuid;
340            private long _mailingListId;
341            private long _groupId;
342            private long _companyId;
343            private long _userId;
344            private String _userName;
345            private Date _createDate;
346            private Date _modifiedDate;
347            private long _categoryId;
348            private String _emailAddress;
349            private String _inProtocol;
350            private String _inServerName;
351            private int _inServerPort;
352            private boolean _inUseSSL;
353            private String _inUserName;
354            private String _inPassword;
355            private int _inReadInterval;
356            private String _outEmailAddress;
357            private boolean _outCustom;
358            private String _outServerName;
359            private int _outServerPort;
360            private boolean _outUseSSL;
361            private String _outUserName;
362            private String _outPassword;
363            private boolean _allowAnonymous;
364            private boolean _active;
365    }