001
014
015 package com.liferay.message.boards.kernel.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.expando.kernel.model.ExpandoBridge;
020
021 import com.liferay.exportimport.kernel.lar.StagedModelType;
022
023 import com.liferay.portal.kernel.model.ModelWrapper;
024 import com.liferay.portal.kernel.service.ServiceContext;
025
026 import java.io.Serializable;
027
028 import java.util.Date;
029 import java.util.HashMap;
030 import java.util.Map;
031 import java.util.Objects;
032
033
042 @ProviderType
043 public class MBMailingListWrapper implements MBMailingList,
044 ModelWrapper<MBMailingList> {
045 public MBMailingListWrapper(MBMailingList mbMailingList) {
046 _mbMailingList = mbMailingList;
047 }
048
049 @Override
050 public Class<?> getModelClass() {
051 return MBMailingList.class;
052 }
053
054 @Override
055 public String getModelClassName() {
056 return MBMailingList.class.getName();
057 }
058
059 @Override
060 public Map<String, Object> getModelAttributes() {
061 Map<String, Object> attributes = new HashMap<String, Object>();
062
063 attributes.put("uuid", getUuid());
064 attributes.put("mailingListId", getMailingListId());
065 attributes.put("groupId", getGroupId());
066 attributes.put("companyId", getCompanyId());
067 attributes.put("userId", getUserId());
068 attributes.put("userName", getUserName());
069 attributes.put("createDate", getCreateDate());
070 attributes.put("modifiedDate", getModifiedDate());
071 attributes.put("categoryId", getCategoryId());
072 attributes.put("emailAddress", getEmailAddress());
073 attributes.put("inProtocol", getInProtocol());
074 attributes.put("inServerName", getInServerName());
075 attributes.put("inServerPort", getInServerPort());
076 attributes.put("inUseSSL", getInUseSSL());
077 attributes.put("inUserName", getInUserName());
078 attributes.put("inPassword", getInPassword());
079 attributes.put("inReadInterval", getInReadInterval());
080 attributes.put("outEmailAddress", getOutEmailAddress());
081 attributes.put("outCustom", getOutCustom());
082 attributes.put("outServerName", getOutServerName());
083 attributes.put("outServerPort", getOutServerPort());
084 attributes.put("outUseSSL", getOutUseSSL());
085 attributes.put("outUserName", getOutUserName());
086 attributes.put("outPassword", getOutPassword());
087 attributes.put("allowAnonymous", getAllowAnonymous());
088 attributes.put("active", getActive());
089
090 return attributes;
091 }
092
093 @Override
094 public void setModelAttributes(Map<String, Object> attributes) {
095 String uuid = (String)attributes.get("uuid");
096
097 if (uuid != null) {
098 setUuid(uuid);
099 }
100
101 Long mailingListId = (Long)attributes.get("mailingListId");
102
103 if (mailingListId != null) {
104 setMailingListId(mailingListId);
105 }
106
107 Long groupId = (Long)attributes.get("groupId");
108
109 if (groupId != null) {
110 setGroupId(groupId);
111 }
112
113 Long companyId = (Long)attributes.get("companyId");
114
115 if (companyId != null) {
116 setCompanyId(companyId);
117 }
118
119 Long userId = (Long)attributes.get("userId");
120
121 if (userId != null) {
122 setUserId(userId);
123 }
124
125 String userName = (String)attributes.get("userName");
126
127 if (userName != null) {
128 setUserName(userName);
129 }
130
131 Date createDate = (Date)attributes.get("createDate");
132
133 if (createDate != null) {
134 setCreateDate(createDate);
135 }
136
137 Date modifiedDate = (Date)attributes.get("modifiedDate");
138
139 if (modifiedDate != null) {
140 setModifiedDate(modifiedDate);
141 }
142
143 Long categoryId = (Long)attributes.get("categoryId");
144
145 if (categoryId != null) {
146 setCategoryId(categoryId);
147 }
148
149 String emailAddress = (String)attributes.get("emailAddress");
150
151 if (emailAddress != null) {
152 setEmailAddress(emailAddress);
153 }
154
155 String inProtocol = (String)attributes.get("inProtocol");
156
157 if (inProtocol != null) {
158 setInProtocol(inProtocol);
159 }
160
161 String inServerName = (String)attributes.get("inServerName");
162
163 if (inServerName != null) {
164 setInServerName(inServerName);
165 }
166
167 Integer inServerPort = (Integer)attributes.get("inServerPort");
168
169 if (inServerPort != null) {
170 setInServerPort(inServerPort);
171 }
172
173 Boolean inUseSSL = (Boolean)attributes.get("inUseSSL");
174
175 if (inUseSSL != null) {
176 setInUseSSL(inUseSSL);
177 }
178
179 String inUserName = (String)attributes.get("inUserName");
180
181 if (inUserName != null) {
182 setInUserName(inUserName);
183 }
184
185 String inPassword = (String)attributes.get("inPassword");
186
187 if (inPassword != null) {
188 setInPassword(inPassword);
189 }
190
191 Integer inReadInterval = (Integer)attributes.get("inReadInterval");
192
193 if (inReadInterval != null) {
194 setInReadInterval(inReadInterval);
195 }
196
197 String outEmailAddress = (String)attributes.get("outEmailAddress");
198
199 if (outEmailAddress != null) {
200 setOutEmailAddress(outEmailAddress);
201 }
202
203 Boolean outCustom = (Boolean)attributes.get("outCustom");
204
205 if (outCustom != null) {
206 setOutCustom(outCustom);
207 }
208
209 String outServerName = (String)attributes.get("outServerName");
210
211 if (outServerName != null) {
212 setOutServerName(outServerName);
213 }
214
215 Integer outServerPort = (Integer)attributes.get("outServerPort");
216
217 if (outServerPort != null) {
218 setOutServerPort(outServerPort);
219 }
220
221 Boolean outUseSSL = (Boolean)attributes.get("outUseSSL");
222
223 if (outUseSSL != null) {
224 setOutUseSSL(outUseSSL);
225 }
226
227 String outUserName = (String)attributes.get("outUserName");
228
229 if (outUserName != null) {
230 setOutUserName(outUserName);
231 }
232
233 String outPassword = (String)attributes.get("outPassword");
234
235 if (outPassword != null) {
236 setOutPassword(outPassword);
237 }
238
239 Boolean allowAnonymous = (Boolean)attributes.get("allowAnonymous");
240
241 if (allowAnonymous != null) {
242 setAllowAnonymous(allowAnonymous);
243 }
244
245 Boolean active = (Boolean)attributes.get("active");
246
247 if (active != null) {
248 setActive(active);
249 }
250 }
251
252 @Override
253 public MBMailingList toEscapedModel() {
254 return new MBMailingListWrapper(_mbMailingList.toEscapedModel());
255 }
256
257 @Override
258 public MBMailingList toUnescapedModel() {
259 return new MBMailingListWrapper(_mbMailingList.toUnescapedModel());
260 }
261
262
267 @Override
268 public boolean getActive() {
269 return _mbMailingList.getActive();
270 }
271
272
277 @Override
278 public boolean getAllowAnonymous() {
279 return _mbMailingList.getAllowAnonymous();
280 }
281
282
287 @Override
288 public boolean getInUseSSL() {
289 return _mbMailingList.getInUseSSL();
290 }
291
292
297 @Override
298 public boolean getOutCustom() {
299 return _mbMailingList.getOutCustom();
300 }
301
302
307 @Override
308 public boolean getOutUseSSL() {
309 return _mbMailingList.getOutUseSSL();
310 }
311
312
317 @Override
318 public boolean isActive() {
319 return _mbMailingList.isActive();
320 }
321
322
327 @Override
328 public boolean isAllowAnonymous() {
329 return _mbMailingList.isAllowAnonymous();
330 }
331
332 @Override
333 public boolean isCachedModel() {
334 return _mbMailingList.isCachedModel();
335 }
336
337 @Override
338 public boolean isEscapedModel() {
339 return _mbMailingList.isEscapedModel();
340 }
341
342
347 @Override
348 public boolean isInUseSSL() {
349 return _mbMailingList.isInUseSSL();
350 }
351
352 @Override
353 public boolean isNew() {
354 return _mbMailingList.isNew();
355 }
356
357
362 @Override
363 public boolean isOutCustom() {
364 return _mbMailingList.isOutCustom();
365 }
366
367
372 @Override
373 public boolean isOutUseSSL() {
374 return _mbMailingList.isOutUseSSL();
375 }
376
377 @Override
378 public ExpandoBridge getExpandoBridge() {
379 return _mbMailingList.getExpandoBridge();
380 }
381
382 @Override
383 public com.liferay.portal.kernel.model.CacheModel<MBMailingList> toCacheModel() {
384 return _mbMailingList.toCacheModel();
385 }
386
387 @Override
388 public int compareTo(MBMailingList mbMailingList) {
389 return _mbMailingList.compareTo(mbMailingList);
390 }
391
392
397 @Override
398 public int getInReadInterval() {
399 return _mbMailingList.getInReadInterval();
400 }
401
402
407 @Override
408 public int getInServerPort() {
409 return _mbMailingList.getInServerPort();
410 }
411
412
417 @Override
418 public int getOutServerPort() {
419 return _mbMailingList.getOutServerPort();
420 }
421
422 @Override
423 public int hashCode() {
424 return _mbMailingList.hashCode();
425 }
426
427 @Override
428 public Serializable getPrimaryKeyObj() {
429 return _mbMailingList.getPrimaryKeyObj();
430 }
431
432 @Override
433 public java.lang.Object clone() {
434 return new MBMailingListWrapper((MBMailingList)_mbMailingList.clone());
435 }
436
437
442 @Override
443 public java.lang.String getEmailAddress() {
444 return _mbMailingList.getEmailAddress();
445 }
446
447
452 @Override
453 public java.lang.String getInPassword() {
454 return _mbMailingList.getInPassword();
455 }
456
457
462 @Override
463 public java.lang.String getInProtocol() {
464 return _mbMailingList.getInProtocol();
465 }
466
467
472 @Override
473 public java.lang.String getInServerName() {
474 return _mbMailingList.getInServerName();
475 }
476
477
482 @Override
483 public java.lang.String getInUserName() {
484 return _mbMailingList.getInUserName();
485 }
486
487
492 @Override
493 public java.lang.String getOutEmailAddress() {
494 return _mbMailingList.getOutEmailAddress();
495 }
496
497
502 @Override
503 public java.lang.String getOutPassword() {
504 return _mbMailingList.getOutPassword();
505 }
506
507
512 @Override
513 public java.lang.String getOutServerName() {
514 return _mbMailingList.getOutServerName();
515 }
516
517
522 @Override
523 public java.lang.String getOutUserName() {
524 return _mbMailingList.getOutUserName();
525 }
526
527
532 @Override
533 public java.lang.String getUserName() {
534 return _mbMailingList.getUserName();
535 }
536
537
542 @Override
543 public java.lang.String getUserUuid() {
544 return _mbMailingList.getUserUuid();
545 }
546
547
552 @Override
553 public java.lang.String getUuid() {
554 return _mbMailingList.getUuid();
555 }
556
557 @Override
558 public java.lang.String toString() {
559 return _mbMailingList.toString();
560 }
561
562 @Override
563 public java.lang.String toXmlString() {
564 return _mbMailingList.toXmlString();
565 }
566
567
572 @Override
573 public Date getCreateDate() {
574 return _mbMailingList.getCreateDate();
575 }
576
577
582 @Override
583 public Date getModifiedDate() {
584 return _mbMailingList.getModifiedDate();
585 }
586
587
592 @Override
593 public long getCategoryId() {
594 return _mbMailingList.getCategoryId();
595 }
596
597
602 @Override
603 public long getCompanyId() {
604 return _mbMailingList.getCompanyId();
605 }
606
607
612 @Override
613 public long getGroupId() {
614 return _mbMailingList.getGroupId();
615 }
616
617
622 @Override
623 public long getMailingListId() {
624 return _mbMailingList.getMailingListId();
625 }
626
627
632 @Override
633 public long getPrimaryKey() {
634 return _mbMailingList.getPrimaryKey();
635 }
636
637
642 @Override
643 public long getUserId() {
644 return _mbMailingList.getUserId();
645 }
646
647 @Override
648 public void persist() {
649 _mbMailingList.persist();
650 }
651
652
657 @Override
658 public void setActive(boolean active) {
659 _mbMailingList.setActive(active);
660 }
661
662
667 @Override
668 public void setAllowAnonymous(boolean allowAnonymous) {
669 _mbMailingList.setAllowAnonymous(allowAnonymous);
670 }
671
672 @Override
673 public void setCachedModel(boolean cachedModel) {
674 _mbMailingList.setCachedModel(cachedModel);
675 }
676
677
682 @Override
683 public void setCategoryId(long categoryId) {
684 _mbMailingList.setCategoryId(categoryId);
685 }
686
687
692 @Override
693 public void setCompanyId(long companyId) {
694 _mbMailingList.setCompanyId(companyId);
695 }
696
697
702 @Override
703 public void setCreateDate(Date createDate) {
704 _mbMailingList.setCreateDate(createDate);
705 }
706
707
712 @Override
713 public void setEmailAddress(java.lang.String emailAddress) {
714 _mbMailingList.setEmailAddress(emailAddress);
715 }
716
717 @Override
718 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
719 _mbMailingList.setExpandoBridgeAttributes(expandoBridge);
720 }
721
722 @Override
723 public void setExpandoBridgeAttributes(
724 com.liferay.portal.kernel.model.BaseModel<?> baseModel) {
725 _mbMailingList.setExpandoBridgeAttributes(baseModel);
726 }
727
728 @Override
729 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
730 _mbMailingList.setExpandoBridgeAttributes(serviceContext);
731 }
732
733
738 @Override
739 public void setGroupId(long groupId) {
740 _mbMailingList.setGroupId(groupId);
741 }
742
743
748 @Override
749 public void setInPassword(java.lang.String inPassword) {
750 _mbMailingList.setInPassword(inPassword);
751 }
752
753
758 @Override
759 public void setInProtocol(java.lang.String inProtocol) {
760 _mbMailingList.setInProtocol(inProtocol);
761 }
762
763
768 @Override
769 public void setInReadInterval(int inReadInterval) {
770 _mbMailingList.setInReadInterval(inReadInterval);
771 }
772
773
778 @Override
779 public void setInServerName(java.lang.String inServerName) {
780 _mbMailingList.setInServerName(inServerName);
781 }
782
783
788 @Override
789 public void setInServerPort(int inServerPort) {
790 _mbMailingList.setInServerPort(inServerPort);
791 }
792
793
798 @Override
799 public void setInUseSSL(boolean inUseSSL) {
800 _mbMailingList.setInUseSSL(inUseSSL);
801 }
802
803
808 @Override
809 public void setInUserName(java.lang.String inUserName) {
810 _mbMailingList.setInUserName(inUserName);
811 }
812
813
818 @Override
819 public void setMailingListId(long mailingListId) {
820 _mbMailingList.setMailingListId(mailingListId);
821 }
822
823
828 @Override
829 public void setModifiedDate(Date modifiedDate) {
830 _mbMailingList.setModifiedDate(modifiedDate);
831 }
832
833 @Override
834 public void setNew(boolean n) {
835 _mbMailingList.setNew(n);
836 }
837
838
843 @Override
844 public void setOutCustom(boolean outCustom) {
845 _mbMailingList.setOutCustom(outCustom);
846 }
847
848
853 @Override
854 public void setOutEmailAddress(java.lang.String outEmailAddress) {
855 _mbMailingList.setOutEmailAddress(outEmailAddress);
856 }
857
858
863 @Override
864 public void setOutPassword(java.lang.String outPassword) {
865 _mbMailingList.setOutPassword(outPassword);
866 }
867
868
873 @Override
874 public void setOutServerName(java.lang.String outServerName) {
875 _mbMailingList.setOutServerName(outServerName);
876 }
877
878
883 @Override
884 public void setOutServerPort(int outServerPort) {
885 _mbMailingList.setOutServerPort(outServerPort);
886 }
887
888
893 @Override
894 public void setOutUseSSL(boolean outUseSSL) {
895 _mbMailingList.setOutUseSSL(outUseSSL);
896 }
897
898
903 @Override
904 public void setOutUserName(java.lang.String outUserName) {
905 _mbMailingList.setOutUserName(outUserName);
906 }
907
908
913 @Override
914 public void setPrimaryKey(long primaryKey) {
915 _mbMailingList.setPrimaryKey(primaryKey);
916 }
917
918 @Override
919 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
920 _mbMailingList.setPrimaryKeyObj(primaryKeyObj);
921 }
922
923
928 @Override
929 public void setUserId(long userId) {
930 _mbMailingList.setUserId(userId);
931 }
932
933
938 @Override
939 public void setUserName(java.lang.String userName) {
940 _mbMailingList.setUserName(userName);
941 }
942
943
948 @Override
949 public void setUserUuid(java.lang.String userUuid) {
950 _mbMailingList.setUserUuid(userUuid);
951 }
952
953
958 @Override
959 public void setUuid(java.lang.String uuid) {
960 _mbMailingList.setUuid(uuid);
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 (Objects.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 @Override
988 public MBMailingList getWrappedModel() {
989 return _mbMailingList;
990 }
991
992 @Override
993 public boolean isEntityCacheEnabled() {
994 return _mbMailingList.isEntityCacheEnabled();
995 }
996
997 @Override
998 public boolean isFinderCacheEnabled() {
999 return _mbMailingList.isFinderCacheEnabled();
1000 }
1001
1002 @Override
1003 public void resetOriginalValues() {
1004 _mbMailingList.resetOriginalValues();
1005 }
1006
1007 private final MBMailingList _mbMailingList;
1008 }