001
014
015 package com.liferay.portlet.messageboards.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class MBMailingListWrapper implements MBMailingList,
033 ModelWrapper<MBMailingList> {
034 public MBMailingListWrapper(MBMailingList mbMailingList) {
035 _mbMailingList = mbMailingList;
036 }
037
038 public Class<?> getModelClass() {
039 return MBMailingList.class;
040 }
041
042 public String getModelClassName() {
043 return MBMailingList.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("uuid", getUuid());
050 attributes.put("mailingListId", getMailingListId());
051 attributes.put("groupId", getGroupId());
052 attributes.put("companyId", getCompanyId());
053 attributes.put("userId", getUserId());
054 attributes.put("userName", getUserName());
055 attributes.put("createDate", getCreateDate());
056 attributes.put("modifiedDate", getModifiedDate());
057 attributes.put("categoryId", getCategoryId());
058 attributes.put("emailAddress", getEmailAddress());
059 attributes.put("inProtocol", getInProtocol());
060 attributes.put("inServerName", getInServerName());
061 attributes.put("inServerPort", getInServerPort());
062 attributes.put("inUseSSL", getInUseSSL());
063 attributes.put("inUserName", getInUserName());
064 attributes.put("inPassword", getInPassword());
065 attributes.put("inReadInterval", getInReadInterval());
066 attributes.put("outEmailAddress", getOutEmailAddress());
067 attributes.put("outCustom", getOutCustom());
068 attributes.put("outServerName", getOutServerName());
069 attributes.put("outServerPort", getOutServerPort());
070 attributes.put("outUseSSL", getOutUseSSL());
071 attributes.put("outUserName", getOutUserName());
072 attributes.put("outPassword", getOutPassword());
073 attributes.put("allowAnonymous", getAllowAnonymous());
074 attributes.put("active", getActive());
075
076 return attributes;
077 }
078
079 public void setModelAttributes(Map<String, Object> attributes) {
080 String uuid = (String)attributes.get("uuid");
081
082 if (uuid != null) {
083 setUuid(uuid);
084 }
085
086 Long mailingListId = (Long)attributes.get("mailingListId");
087
088 if (mailingListId != null) {
089 setMailingListId(mailingListId);
090 }
091
092 Long groupId = (Long)attributes.get("groupId");
093
094 if (groupId != null) {
095 setGroupId(groupId);
096 }
097
098 Long companyId = (Long)attributes.get("companyId");
099
100 if (companyId != null) {
101 setCompanyId(companyId);
102 }
103
104 Long userId = (Long)attributes.get("userId");
105
106 if (userId != null) {
107 setUserId(userId);
108 }
109
110 String userName = (String)attributes.get("userName");
111
112 if (userName != null) {
113 setUserName(userName);
114 }
115
116 Date createDate = (Date)attributes.get("createDate");
117
118 if (createDate != null) {
119 setCreateDate(createDate);
120 }
121
122 Date modifiedDate = (Date)attributes.get("modifiedDate");
123
124 if (modifiedDate != null) {
125 setModifiedDate(modifiedDate);
126 }
127
128 Long categoryId = (Long)attributes.get("categoryId");
129
130 if (categoryId != null) {
131 setCategoryId(categoryId);
132 }
133
134 String emailAddress = (String)attributes.get("emailAddress");
135
136 if (emailAddress != null) {
137 setEmailAddress(emailAddress);
138 }
139
140 String inProtocol = (String)attributes.get("inProtocol");
141
142 if (inProtocol != null) {
143 setInProtocol(inProtocol);
144 }
145
146 String inServerName = (String)attributes.get("inServerName");
147
148 if (inServerName != null) {
149 setInServerName(inServerName);
150 }
151
152 Integer inServerPort = (Integer)attributes.get("inServerPort");
153
154 if (inServerPort != null) {
155 setInServerPort(inServerPort);
156 }
157
158 Boolean inUseSSL = (Boolean)attributes.get("inUseSSL");
159
160 if (inUseSSL != null) {
161 setInUseSSL(inUseSSL);
162 }
163
164 String inUserName = (String)attributes.get("inUserName");
165
166 if (inUserName != null) {
167 setInUserName(inUserName);
168 }
169
170 String inPassword = (String)attributes.get("inPassword");
171
172 if (inPassword != null) {
173 setInPassword(inPassword);
174 }
175
176 Integer inReadInterval = (Integer)attributes.get("inReadInterval");
177
178 if (inReadInterval != null) {
179 setInReadInterval(inReadInterval);
180 }
181
182 String outEmailAddress = (String)attributes.get("outEmailAddress");
183
184 if (outEmailAddress != null) {
185 setOutEmailAddress(outEmailAddress);
186 }
187
188 Boolean outCustom = (Boolean)attributes.get("outCustom");
189
190 if (outCustom != null) {
191 setOutCustom(outCustom);
192 }
193
194 String outServerName = (String)attributes.get("outServerName");
195
196 if (outServerName != null) {
197 setOutServerName(outServerName);
198 }
199
200 Integer outServerPort = (Integer)attributes.get("outServerPort");
201
202 if (outServerPort != null) {
203 setOutServerPort(outServerPort);
204 }
205
206 Boolean outUseSSL = (Boolean)attributes.get("outUseSSL");
207
208 if (outUseSSL != null) {
209 setOutUseSSL(outUseSSL);
210 }
211
212 String outUserName = (String)attributes.get("outUserName");
213
214 if (outUserName != null) {
215 setOutUserName(outUserName);
216 }
217
218 String outPassword = (String)attributes.get("outPassword");
219
220 if (outPassword != null) {
221 setOutPassword(outPassword);
222 }
223
224 Boolean allowAnonymous = (Boolean)attributes.get("allowAnonymous");
225
226 if (allowAnonymous != null) {
227 setAllowAnonymous(allowAnonymous);
228 }
229
230 Boolean active = (Boolean)attributes.get("active");
231
232 if (active != null) {
233 setActive(active);
234 }
235 }
236
237
242 public long getPrimaryKey() {
243 return _mbMailingList.getPrimaryKey();
244 }
245
246
251 public void setPrimaryKey(long primaryKey) {
252 _mbMailingList.setPrimaryKey(primaryKey);
253 }
254
255
260 public java.lang.String getUuid() {
261 return _mbMailingList.getUuid();
262 }
263
264
269 public void setUuid(java.lang.String uuid) {
270 _mbMailingList.setUuid(uuid);
271 }
272
273
278 public long getMailingListId() {
279 return _mbMailingList.getMailingListId();
280 }
281
282
287 public void setMailingListId(long mailingListId) {
288 _mbMailingList.setMailingListId(mailingListId);
289 }
290
291
296 public long getGroupId() {
297 return _mbMailingList.getGroupId();
298 }
299
300
305 public void setGroupId(long groupId) {
306 _mbMailingList.setGroupId(groupId);
307 }
308
309
314 public long getCompanyId() {
315 return _mbMailingList.getCompanyId();
316 }
317
318
323 public void setCompanyId(long companyId) {
324 _mbMailingList.setCompanyId(companyId);
325 }
326
327
332 public long getUserId() {
333 return _mbMailingList.getUserId();
334 }
335
336
341 public void setUserId(long userId) {
342 _mbMailingList.setUserId(userId);
343 }
344
345
351 public java.lang.String getUserUuid()
352 throws com.liferay.portal.kernel.exception.SystemException {
353 return _mbMailingList.getUserUuid();
354 }
355
356
361 public void setUserUuid(java.lang.String userUuid) {
362 _mbMailingList.setUserUuid(userUuid);
363 }
364
365
370 public java.lang.String getUserName() {
371 return _mbMailingList.getUserName();
372 }
373
374
379 public void setUserName(java.lang.String userName) {
380 _mbMailingList.setUserName(userName);
381 }
382
383
388 public java.util.Date getCreateDate() {
389 return _mbMailingList.getCreateDate();
390 }
391
392
397 public void setCreateDate(java.util.Date createDate) {
398 _mbMailingList.setCreateDate(createDate);
399 }
400
401
406 public java.util.Date getModifiedDate() {
407 return _mbMailingList.getModifiedDate();
408 }
409
410
415 public void setModifiedDate(java.util.Date modifiedDate) {
416 _mbMailingList.setModifiedDate(modifiedDate);
417 }
418
419
424 public long getCategoryId() {
425 return _mbMailingList.getCategoryId();
426 }
427
428
433 public void setCategoryId(long categoryId) {
434 _mbMailingList.setCategoryId(categoryId);
435 }
436
437
442 public java.lang.String getEmailAddress() {
443 return _mbMailingList.getEmailAddress();
444 }
445
446
451 public void setEmailAddress(java.lang.String emailAddress) {
452 _mbMailingList.setEmailAddress(emailAddress);
453 }
454
455
460 public java.lang.String getInProtocol() {
461 return _mbMailingList.getInProtocol();
462 }
463
464
469 public void setInProtocol(java.lang.String inProtocol) {
470 _mbMailingList.setInProtocol(inProtocol);
471 }
472
473
478 public java.lang.String getInServerName() {
479 return _mbMailingList.getInServerName();
480 }
481
482
487 public void setInServerName(java.lang.String inServerName) {
488 _mbMailingList.setInServerName(inServerName);
489 }
490
491
496 public int getInServerPort() {
497 return _mbMailingList.getInServerPort();
498 }
499
500
505 public void setInServerPort(int inServerPort) {
506 _mbMailingList.setInServerPort(inServerPort);
507 }
508
509
514 public boolean getInUseSSL() {
515 return _mbMailingList.getInUseSSL();
516 }
517
518
523 public boolean isInUseSSL() {
524 return _mbMailingList.isInUseSSL();
525 }
526
527
532 public void setInUseSSL(boolean inUseSSL) {
533 _mbMailingList.setInUseSSL(inUseSSL);
534 }
535
536
541 public java.lang.String getInUserName() {
542 return _mbMailingList.getInUserName();
543 }
544
545
550 public void setInUserName(java.lang.String inUserName) {
551 _mbMailingList.setInUserName(inUserName);
552 }
553
554
559 public java.lang.String getInPassword() {
560 return _mbMailingList.getInPassword();
561 }
562
563
568 public void setInPassword(java.lang.String inPassword) {
569 _mbMailingList.setInPassword(inPassword);
570 }
571
572
577 public int getInReadInterval() {
578 return _mbMailingList.getInReadInterval();
579 }
580
581
586 public void setInReadInterval(int inReadInterval) {
587 _mbMailingList.setInReadInterval(inReadInterval);
588 }
589
590
595 public java.lang.String getOutEmailAddress() {
596 return _mbMailingList.getOutEmailAddress();
597 }
598
599
604 public void setOutEmailAddress(java.lang.String outEmailAddress) {
605 _mbMailingList.setOutEmailAddress(outEmailAddress);
606 }
607
608
613 public boolean getOutCustom() {
614 return _mbMailingList.getOutCustom();
615 }
616
617
622 public boolean isOutCustom() {
623 return _mbMailingList.isOutCustom();
624 }
625
626
631 public void setOutCustom(boolean outCustom) {
632 _mbMailingList.setOutCustom(outCustom);
633 }
634
635
640 public java.lang.String getOutServerName() {
641 return _mbMailingList.getOutServerName();
642 }
643
644
649 public void setOutServerName(java.lang.String outServerName) {
650 _mbMailingList.setOutServerName(outServerName);
651 }
652
653
658 public int getOutServerPort() {
659 return _mbMailingList.getOutServerPort();
660 }
661
662
667 public void setOutServerPort(int outServerPort) {
668 _mbMailingList.setOutServerPort(outServerPort);
669 }
670
671
676 public boolean getOutUseSSL() {
677 return _mbMailingList.getOutUseSSL();
678 }
679
680
685 public boolean isOutUseSSL() {
686 return _mbMailingList.isOutUseSSL();
687 }
688
689
694 public void setOutUseSSL(boolean outUseSSL) {
695 _mbMailingList.setOutUseSSL(outUseSSL);
696 }
697
698
703 public java.lang.String getOutUserName() {
704 return _mbMailingList.getOutUserName();
705 }
706
707
712 public void setOutUserName(java.lang.String outUserName) {
713 _mbMailingList.setOutUserName(outUserName);
714 }
715
716
721 public java.lang.String getOutPassword() {
722 return _mbMailingList.getOutPassword();
723 }
724
725
730 public void setOutPassword(java.lang.String outPassword) {
731 _mbMailingList.setOutPassword(outPassword);
732 }
733
734
739 public boolean getAllowAnonymous() {
740 return _mbMailingList.getAllowAnonymous();
741 }
742
743
748 public boolean isAllowAnonymous() {
749 return _mbMailingList.isAllowAnonymous();
750 }
751
752
757 public void setAllowAnonymous(boolean allowAnonymous) {
758 _mbMailingList.setAllowAnonymous(allowAnonymous);
759 }
760
761
766 public boolean getActive() {
767 return _mbMailingList.getActive();
768 }
769
770
775 public boolean isActive() {
776 return _mbMailingList.isActive();
777 }
778
779
784 public void setActive(boolean active) {
785 _mbMailingList.setActive(active);
786 }
787
788 public boolean isNew() {
789 return _mbMailingList.isNew();
790 }
791
792 public void setNew(boolean n) {
793 _mbMailingList.setNew(n);
794 }
795
796 public boolean isCachedModel() {
797 return _mbMailingList.isCachedModel();
798 }
799
800 public void setCachedModel(boolean cachedModel) {
801 _mbMailingList.setCachedModel(cachedModel);
802 }
803
804 public boolean isEscapedModel() {
805 return _mbMailingList.isEscapedModel();
806 }
807
808 public java.io.Serializable getPrimaryKeyObj() {
809 return _mbMailingList.getPrimaryKeyObj();
810 }
811
812 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
813 _mbMailingList.setPrimaryKeyObj(primaryKeyObj);
814 }
815
816 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
817 return _mbMailingList.getExpandoBridge();
818 }
819
820 public void setExpandoBridgeAttributes(
821 com.liferay.portal.model.BaseModel<?> baseModel) {
822 _mbMailingList.setExpandoBridgeAttributes(baseModel);
823 }
824
825 public void setExpandoBridgeAttributes(
826 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
827 _mbMailingList.setExpandoBridgeAttributes(expandoBridge);
828 }
829
830 public void setExpandoBridgeAttributes(
831 com.liferay.portal.service.ServiceContext serviceContext) {
832 _mbMailingList.setExpandoBridgeAttributes(serviceContext);
833 }
834
835 @Override
836 public java.lang.Object clone() {
837 return new MBMailingListWrapper((MBMailingList)_mbMailingList.clone());
838 }
839
840 public int compareTo(
841 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList) {
842 return _mbMailingList.compareTo(mbMailingList);
843 }
844
845 @Override
846 public int hashCode() {
847 return _mbMailingList.hashCode();
848 }
849
850 public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBMailingList> toCacheModel() {
851 return _mbMailingList.toCacheModel();
852 }
853
854 public com.liferay.portlet.messageboards.model.MBMailingList toEscapedModel() {
855 return new MBMailingListWrapper(_mbMailingList.toEscapedModel());
856 }
857
858 public com.liferay.portlet.messageboards.model.MBMailingList toUnescapedModel() {
859 return new MBMailingListWrapper(_mbMailingList.toUnescapedModel());
860 }
861
862 @Override
863 public java.lang.String toString() {
864 return _mbMailingList.toString();
865 }
866
867 public java.lang.String toXmlString() {
868 return _mbMailingList.toXmlString();
869 }
870
871 public void persist()
872 throws com.liferay.portal.kernel.exception.SystemException {
873 _mbMailingList.persist();
874 }
875
876
879 public MBMailingList getWrappedMBMailingList() {
880 return _mbMailingList;
881 }
882
883 public MBMailingList getWrappedModel() {
884 return _mbMailingList;
885 }
886
887 public void resetOriginalValues() {
888 _mbMailingList.resetOriginalValues();
889 }
890
891 private MBMailingList _mbMailingList;
892 }