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