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