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