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