001
014
015 package com.liferay.portlet.messageboards.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.lar.StagedModelType;
020 import com.liferay.portal.kernel.util.Validator;
021 import com.liferay.portal.model.ModelWrapper;
022
023 import java.util.Date;
024 import java.util.HashMap;
025 import java.util.Map;
026
027
036 @ProviderType
037 public class MBMailingListWrapper implements MBMailingList,
038 ModelWrapper<MBMailingList> {
039 public MBMailingListWrapper(MBMailingList mbMailingList) {
040 _mbMailingList = mbMailingList;
041 }
042
043 @Override
044 public Class<?> getModelClass() {
045 return MBMailingList.class;
046 }
047
048 @Override
049 public String getModelClassName() {
050 return MBMailingList.class.getName();
051 }
052
053 @Override
054 public Map<String, Object> getModelAttributes() {
055 Map<String, Object> attributes = new HashMap<String, Object>();
056
057 attributes.put("uuid", getUuid());
058 attributes.put("mailingListId", getMailingListId());
059 attributes.put("groupId", getGroupId());
060 attributes.put("companyId", getCompanyId());
061 attributes.put("userId", getUserId());
062 attributes.put("userName", getUserName());
063 attributes.put("createDate", getCreateDate());
064 attributes.put("modifiedDate", getModifiedDate());
065 attributes.put("categoryId", getCategoryId());
066 attributes.put("emailAddress", getEmailAddress());
067 attributes.put("inProtocol", getInProtocol());
068 attributes.put("inServerName", getInServerName());
069 attributes.put("inServerPort", getInServerPort());
070 attributes.put("inUseSSL", getInUseSSL());
071 attributes.put("inUserName", getInUserName());
072 attributes.put("inPassword", getInPassword());
073 attributes.put("inReadInterval", getInReadInterval());
074 attributes.put("outEmailAddress", getOutEmailAddress());
075 attributes.put("outCustom", getOutCustom());
076 attributes.put("outServerName", getOutServerName());
077 attributes.put("outServerPort", getOutServerPort());
078 attributes.put("outUseSSL", getOutUseSSL());
079 attributes.put("outUserName", getOutUserName());
080 attributes.put("outPassword", getOutPassword());
081 attributes.put("allowAnonymous", getAllowAnonymous());
082 attributes.put("active", getActive());
083
084 return attributes;
085 }
086
087 @Override
088 public void setModelAttributes(Map<String, Object> attributes) {
089 String uuid = (String)attributes.get("uuid");
090
091 if (uuid != null) {
092 setUuid(uuid);
093 }
094
095 Long mailingListId = (Long)attributes.get("mailingListId");
096
097 if (mailingListId != null) {
098 setMailingListId(mailingListId);
099 }
100
101 Long groupId = (Long)attributes.get("groupId");
102
103 if (groupId != null) {
104 setGroupId(groupId);
105 }
106
107 Long companyId = (Long)attributes.get("companyId");
108
109 if (companyId != null) {
110 setCompanyId(companyId);
111 }
112
113 Long userId = (Long)attributes.get("userId");
114
115 if (userId != null) {
116 setUserId(userId);
117 }
118
119 String userName = (String)attributes.get("userName");
120
121 if (userName != null) {
122 setUserName(userName);
123 }
124
125 Date createDate = (Date)attributes.get("createDate");
126
127 if (createDate != null) {
128 setCreateDate(createDate);
129 }
130
131 Date modifiedDate = (Date)attributes.get("modifiedDate");
132
133 if (modifiedDate != null) {
134 setModifiedDate(modifiedDate);
135 }
136
137 Long categoryId = (Long)attributes.get("categoryId");
138
139 if (categoryId != null) {
140 setCategoryId(categoryId);
141 }
142
143 String emailAddress = (String)attributes.get("emailAddress");
144
145 if (emailAddress != null) {
146 setEmailAddress(emailAddress);
147 }
148
149 String inProtocol = (String)attributes.get("inProtocol");
150
151 if (inProtocol != null) {
152 setInProtocol(inProtocol);
153 }
154
155 String inServerName = (String)attributes.get("inServerName");
156
157 if (inServerName != null) {
158 setInServerName(inServerName);
159 }
160
161 Integer inServerPort = (Integer)attributes.get("inServerPort");
162
163 if (inServerPort != null) {
164 setInServerPort(inServerPort);
165 }
166
167 Boolean inUseSSL = (Boolean)attributes.get("inUseSSL");
168
169 if (inUseSSL != null) {
170 setInUseSSL(inUseSSL);
171 }
172
173 String inUserName = (String)attributes.get("inUserName");
174
175 if (inUserName != null) {
176 setInUserName(inUserName);
177 }
178
179 String inPassword = (String)attributes.get("inPassword");
180
181 if (inPassword != null) {
182 setInPassword(inPassword);
183 }
184
185 Integer inReadInterval = (Integer)attributes.get("inReadInterval");
186
187 if (inReadInterval != null) {
188 setInReadInterval(inReadInterval);
189 }
190
191 String outEmailAddress = (String)attributes.get("outEmailAddress");
192
193 if (outEmailAddress != null) {
194 setOutEmailAddress(outEmailAddress);
195 }
196
197 Boolean outCustom = (Boolean)attributes.get("outCustom");
198
199 if (outCustom != null) {
200 setOutCustom(outCustom);
201 }
202
203 String outServerName = (String)attributes.get("outServerName");
204
205 if (outServerName != null) {
206 setOutServerName(outServerName);
207 }
208
209 Integer outServerPort = (Integer)attributes.get("outServerPort");
210
211 if (outServerPort != null) {
212 setOutServerPort(outServerPort);
213 }
214
215 Boolean outUseSSL = (Boolean)attributes.get("outUseSSL");
216
217 if (outUseSSL != null) {
218 setOutUseSSL(outUseSSL);
219 }
220
221 String outUserName = (String)attributes.get("outUserName");
222
223 if (outUserName != null) {
224 setOutUserName(outUserName);
225 }
226
227 String outPassword = (String)attributes.get("outPassword");
228
229 if (outPassword != null) {
230 setOutPassword(outPassword);
231 }
232
233 Boolean allowAnonymous = (Boolean)attributes.get("allowAnonymous");
234
235 if (allowAnonymous != null) {
236 setAllowAnonymous(allowAnonymous);
237 }
238
239 Boolean active = (Boolean)attributes.get("active");
240
241 if (active != null) {
242 setActive(active);
243 }
244 }
245
246
251 @Override
252 public long getPrimaryKey() {
253 return _mbMailingList.getPrimaryKey();
254 }
255
256
261 @Override
262 public void setPrimaryKey(long primaryKey) {
263 _mbMailingList.setPrimaryKey(primaryKey);
264 }
265
266
271 @Override
272 public java.lang.String getUuid() {
273 return _mbMailingList.getUuid();
274 }
275
276
281 @Override
282 public void setUuid(java.lang.String uuid) {
283 _mbMailingList.setUuid(uuid);
284 }
285
286
291 @Override
292 public long getMailingListId() {
293 return _mbMailingList.getMailingListId();
294 }
295
296
301 @Override
302 public void setMailingListId(long mailingListId) {
303 _mbMailingList.setMailingListId(mailingListId);
304 }
305
306
311 @Override
312 public long getGroupId() {
313 return _mbMailingList.getGroupId();
314 }
315
316
321 @Override
322 public void setGroupId(long groupId) {
323 _mbMailingList.setGroupId(groupId);
324 }
325
326
331 @Override
332 public long getCompanyId() {
333 return _mbMailingList.getCompanyId();
334 }
335
336
341 @Override
342 public void setCompanyId(long companyId) {
343 _mbMailingList.setCompanyId(companyId);
344 }
345
346
351 @Override
352 public long getUserId() {
353 return _mbMailingList.getUserId();
354 }
355
356
361 @Override
362 public void setUserId(long userId) {
363 _mbMailingList.setUserId(userId);
364 }
365
366
372 @Override
373 public java.lang.String getUserUuid()
374 throws com.liferay.portal.kernel.exception.SystemException {
375 return _mbMailingList.getUserUuid();
376 }
377
378
383 @Override
384 public void setUserUuid(java.lang.String userUuid) {
385 _mbMailingList.setUserUuid(userUuid);
386 }
387
388
393 @Override
394 public java.lang.String getUserName() {
395 return _mbMailingList.getUserName();
396 }
397
398
403 @Override
404 public void setUserName(java.lang.String userName) {
405 _mbMailingList.setUserName(userName);
406 }
407
408
413 @Override
414 public java.util.Date getCreateDate() {
415 return _mbMailingList.getCreateDate();
416 }
417
418
423 @Override
424 public void setCreateDate(java.util.Date createDate) {
425 _mbMailingList.setCreateDate(createDate);
426 }
427
428
433 @Override
434 public java.util.Date getModifiedDate() {
435 return _mbMailingList.getModifiedDate();
436 }
437
438
443 @Override
444 public void setModifiedDate(java.util.Date modifiedDate) {
445 _mbMailingList.setModifiedDate(modifiedDate);
446 }
447
448
453 @Override
454 public long getCategoryId() {
455 return _mbMailingList.getCategoryId();
456 }
457
458
463 @Override
464 public void setCategoryId(long categoryId) {
465 _mbMailingList.setCategoryId(categoryId);
466 }
467
468
473 @Override
474 public java.lang.String getEmailAddress() {
475 return _mbMailingList.getEmailAddress();
476 }
477
478
483 @Override
484 public void setEmailAddress(java.lang.String emailAddress) {
485 _mbMailingList.setEmailAddress(emailAddress);
486 }
487
488
493 @Override
494 public java.lang.String getInProtocol() {
495 return _mbMailingList.getInProtocol();
496 }
497
498
503 @Override
504 public void setInProtocol(java.lang.String inProtocol) {
505 _mbMailingList.setInProtocol(inProtocol);
506 }
507
508
513 @Override
514 public java.lang.String getInServerName() {
515 return _mbMailingList.getInServerName();
516 }
517
518
523 @Override
524 public void setInServerName(java.lang.String inServerName) {
525 _mbMailingList.setInServerName(inServerName);
526 }
527
528
533 @Override
534 public int getInServerPort() {
535 return _mbMailingList.getInServerPort();
536 }
537
538
543 @Override
544 public void setInServerPort(int inServerPort) {
545 _mbMailingList.setInServerPort(inServerPort);
546 }
547
548
553 @Override
554 public boolean getInUseSSL() {
555 return _mbMailingList.getInUseSSL();
556 }
557
558
563 @Override
564 public boolean isInUseSSL() {
565 return _mbMailingList.isInUseSSL();
566 }
567
568
573 @Override
574 public void setInUseSSL(boolean inUseSSL) {
575 _mbMailingList.setInUseSSL(inUseSSL);
576 }
577
578
583 @Override
584 public java.lang.String getInUserName() {
585 return _mbMailingList.getInUserName();
586 }
587
588
593 @Override
594 public void setInUserName(java.lang.String inUserName) {
595 _mbMailingList.setInUserName(inUserName);
596 }
597
598
603 @Override
604 public java.lang.String getInPassword() {
605 return _mbMailingList.getInPassword();
606 }
607
608
613 @Override
614 public void setInPassword(java.lang.String inPassword) {
615 _mbMailingList.setInPassword(inPassword);
616 }
617
618
623 @Override
624 public int getInReadInterval() {
625 return _mbMailingList.getInReadInterval();
626 }
627
628
633 @Override
634 public void setInReadInterval(int inReadInterval) {
635 _mbMailingList.setInReadInterval(inReadInterval);
636 }
637
638
643 @Override
644 public java.lang.String getOutEmailAddress() {
645 return _mbMailingList.getOutEmailAddress();
646 }
647
648
653 @Override
654 public void setOutEmailAddress(java.lang.String outEmailAddress) {
655 _mbMailingList.setOutEmailAddress(outEmailAddress);
656 }
657
658
663 @Override
664 public boolean getOutCustom() {
665 return _mbMailingList.getOutCustom();
666 }
667
668
673 @Override
674 public boolean isOutCustom() {
675 return _mbMailingList.isOutCustom();
676 }
677
678
683 @Override
684 public void setOutCustom(boolean outCustom) {
685 _mbMailingList.setOutCustom(outCustom);
686 }
687
688
693 @Override
694 public java.lang.String getOutServerName() {
695 return _mbMailingList.getOutServerName();
696 }
697
698
703 @Override
704 public void setOutServerName(java.lang.String outServerName) {
705 _mbMailingList.setOutServerName(outServerName);
706 }
707
708
713 @Override
714 public int getOutServerPort() {
715 return _mbMailingList.getOutServerPort();
716 }
717
718
723 @Override
724 public void setOutServerPort(int outServerPort) {
725 _mbMailingList.setOutServerPort(outServerPort);
726 }
727
728
733 @Override
734 public boolean getOutUseSSL() {
735 return _mbMailingList.getOutUseSSL();
736 }
737
738
743 @Override
744 public boolean isOutUseSSL() {
745 return _mbMailingList.isOutUseSSL();
746 }
747
748
753 @Override
754 public void setOutUseSSL(boolean outUseSSL) {
755 _mbMailingList.setOutUseSSL(outUseSSL);
756 }
757
758
763 @Override
764 public java.lang.String getOutUserName() {
765 return _mbMailingList.getOutUserName();
766 }
767
768
773 @Override
774 public void setOutUserName(java.lang.String outUserName) {
775 _mbMailingList.setOutUserName(outUserName);
776 }
777
778
783 @Override
784 public java.lang.String getOutPassword() {
785 return _mbMailingList.getOutPassword();
786 }
787
788
793 @Override
794 public void setOutPassword(java.lang.String outPassword) {
795 _mbMailingList.setOutPassword(outPassword);
796 }
797
798
803 @Override
804 public boolean getAllowAnonymous() {
805 return _mbMailingList.getAllowAnonymous();
806 }
807
808
813 @Override
814 public boolean isAllowAnonymous() {
815 return _mbMailingList.isAllowAnonymous();
816 }
817
818
823 @Override
824 public void setAllowAnonymous(boolean allowAnonymous) {
825 _mbMailingList.setAllowAnonymous(allowAnonymous);
826 }
827
828
833 @Override
834 public boolean getActive() {
835 return _mbMailingList.getActive();
836 }
837
838
843 @Override
844 public boolean isActive() {
845 return _mbMailingList.isActive();
846 }
847
848
853 @Override
854 public void setActive(boolean active) {
855 _mbMailingList.setActive(active);
856 }
857
858 @Override
859 public boolean isNew() {
860 return _mbMailingList.isNew();
861 }
862
863 @Override
864 public void setNew(boolean n) {
865 _mbMailingList.setNew(n);
866 }
867
868 @Override
869 public boolean isCachedModel() {
870 return _mbMailingList.isCachedModel();
871 }
872
873 @Override
874 public void setCachedModel(boolean cachedModel) {
875 _mbMailingList.setCachedModel(cachedModel);
876 }
877
878 @Override
879 public boolean isEscapedModel() {
880 return _mbMailingList.isEscapedModel();
881 }
882
883 @Override
884 public java.io.Serializable getPrimaryKeyObj() {
885 return _mbMailingList.getPrimaryKeyObj();
886 }
887
888 @Override
889 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
890 _mbMailingList.setPrimaryKeyObj(primaryKeyObj);
891 }
892
893 @Override
894 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
895 return _mbMailingList.getExpandoBridge();
896 }
897
898 @Override
899 public void setExpandoBridgeAttributes(
900 com.liferay.portal.model.BaseModel<?> baseModel) {
901 _mbMailingList.setExpandoBridgeAttributes(baseModel);
902 }
903
904 @Override
905 public void setExpandoBridgeAttributes(
906 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
907 _mbMailingList.setExpandoBridgeAttributes(expandoBridge);
908 }
909
910 @Override
911 public void setExpandoBridgeAttributes(
912 com.liferay.portal.service.ServiceContext serviceContext) {
913 _mbMailingList.setExpandoBridgeAttributes(serviceContext);
914 }
915
916 @Override
917 public java.lang.Object clone() {
918 return new MBMailingListWrapper((MBMailingList)_mbMailingList.clone());
919 }
920
921 @Override
922 public int compareTo(
923 com.liferay.portlet.messageboards.model.MBMailingList mbMailingList) {
924 return _mbMailingList.compareTo(mbMailingList);
925 }
926
927 @Override
928 public int hashCode() {
929 return _mbMailingList.hashCode();
930 }
931
932 @Override
933 public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBMailingList> toCacheModel() {
934 return _mbMailingList.toCacheModel();
935 }
936
937 @Override
938 public com.liferay.portlet.messageboards.model.MBMailingList toEscapedModel() {
939 return new MBMailingListWrapper(_mbMailingList.toEscapedModel());
940 }
941
942 @Override
943 public com.liferay.portlet.messageboards.model.MBMailingList toUnescapedModel() {
944 return new MBMailingListWrapper(_mbMailingList.toUnescapedModel());
945 }
946
947 @Override
948 public java.lang.String toString() {
949 return _mbMailingList.toString();
950 }
951
952 @Override
953 public java.lang.String toXmlString() {
954 return _mbMailingList.toXmlString();
955 }
956
957 @Override
958 public void persist()
959 throws com.liferay.portal.kernel.exception.SystemException {
960 _mbMailingList.persist();
961 }
962
963 @Override
964 public boolean equals(Object obj) {
965 if (this == obj) {
966 return true;
967 }
968
969 if (!(obj instanceof MBMailingListWrapper)) {
970 return false;
971 }
972
973 MBMailingListWrapper mbMailingListWrapper = (MBMailingListWrapper)obj;
974
975 if (Validator.equals(_mbMailingList, mbMailingListWrapper._mbMailingList)) {
976 return true;
977 }
978
979 return false;
980 }
981
982 @Override
983 public StagedModelType getStagedModelType() {
984 return _mbMailingList.getStagedModelType();
985 }
986
987
990 public MBMailingList getWrappedMBMailingList() {
991 return _mbMailingList;
992 }
993
994 @Override
995 public MBMailingList getWrappedModel() {
996 return _mbMailingList;
997 }
998
999 @Override
1000 public void resetOriginalValues() {
1001 _mbMailingList.resetOriginalValues();
1002 }
1003
1004 private MBMailingList _mbMailingList;
1005 }