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 import com.liferay.portal.kernel.util.Validator;
026
027 import java.io.Serializable;
028
029 import java.util.Date;
030 import java.util.HashMap;
031 import java.util.Map;
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 java.lang.Object clone() {
254 return new MBMailingListWrapper((MBMailingList)_mbMailingList.clone());
255 }
256
257 @Override
258 public int compareTo(
259 com.liferay.message.boards.kernel.model.MBMailingList mbMailingList) {
260 return _mbMailingList.compareTo(mbMailingList);
261 }
262
263
268 @Override
269 public boolean getActive() {
270 return _mbMailingList.getActive();
271 }
272
273
278 @Override
279 public boolean getAllowAnonymous() {
280 return _mbMailingList.getAllowAnonymous();
281 }
282
283
288 @Override
289 public long getCategoryId() {
290 return _mbMailingList.getCategoryId();
291 }
292
293
298 @Override
299 public long getCompanyId() {
300 return _mbMailingList.getCompanyId();
301 }
302
303
308 @Override
309 public Date getCreateDate() {
310 return _mbMailingList.getCreateDate();
311 }
312
313
318 @Override
319 public java.lang.String getEmailAddress() {
320 return _mbMailingList.getEmailAddress();
321 }
322
323 @Override
324 public ExpandoBridge getExpandoBridge() {
325 return _mbMailingList.getExpandoBridge();
326 }
327
328
333 @Override
334 public long getGroupId() {
335 return _mbMailingList.getGroupId();
336 }
337
338
343 @Override
344 public java.lang.String getInPassword() {
345 return _mbMailingList.getInPassword();
346 }
347
348
353 @Override
354 public java.lang.String getInProtocol() {
355 return _mbMailingList.getInProtocol();
356 }
357
358
363 @Override
364 public int getInReadInterval() {
365 return _mbMailingList.getInReadInterval();
366 }
367
368
373 @Override
374 public java.lang.String getInServerName() {
375 return _mbMailingList.getInServerName();
376 }
377
378
383 @Override
384 public int getInServerPort() {
385 return _mbMailingList.getInServerPort();
386 }
387
388
393 @Override
394 public boolean getInUseSSL() {
395 return _mbMailingList.getInUseSSL();
396 }
397
398
403 @Override
404 public java.lang.String getInUserName() {
405 return _mbMailingList.getInUserName();
406 }
407
408
413 @Override
414 public long getMailingListId() {
415 return _mbMailingList.getMailingListId();
416 }
417
418
423 @Override
424 public Date getModifiedDate() {
425 return _mbMailingList.getModifiedDate();
426 }
427
428
433 @Override
434 public boolean getOutCustom() {
435 return _mbMailingList.getOutCustom();
436 }
437
438
443 @Override
444 public java.lang.String getOutEmailAddress() {
445 return _mbMailingList.getOutEmailAddress();
446 }
447
448
453 @Override
454 public java.lang.String getOutPassword() {
455 return _mbMailingList.getOutPassword();
456 }
457
458
463 @Override
464 public java.lang.String getOutServerName() {
465 return _mbMailingList.getOutServerName();
466 }
467
468
473 @Override
474 public int getOutServerPort() {
475 return _mbMailingList.getOutServerPort();
476 }
477
478
483 @Override
484 public boolean getOutUseSSL() {
485 return _mbMailingList.getOutUseSSL();
486 }
487
488
493 @Override
494 public java.lang.String getOutUserName() {
495 return _mbMailingList.getOutUserName();
496 }
497
498
503 @Override
504 public long getPrimaryKey() {
505 return _mbMailingList.getPrimaryKey();
506 }
507
508 @Override
509 public Serializable getPrimaryKeyObj() {
510 return _mbMailingList.getPrimaryKeyObj();
511 }
512
513
518 @Override
519 public long getUserId() {
520 return _mbMailingList.getUserId();
521 }
522
523
528 @Override
529 public java.lang.String getUserName() {
530 return _mbMailingList.getUserName();
531 }
532
533
538 @Override
539 public java.lang.String getUserUuid() {
540 return _mbMailingList.getUserUuid();
541 }
542
543
548 @Override
549 public java.lang.String getUuid() {
550 return _mbMailingList.getUuid();
551 }
552
553 @Override
554 public int hashCode() {
555 return _mbMailingList.hashCode();
556 }
557
558
563 @Override
564 public boolean isActive() {
565 return _mbMailingList.isActive();
566 }
567
568
573 @Override
574 public boolean isAllowAnonymous() {
575 return _mbMailingList.isAllowAnonymous();
576 }
577
578 @Override
579 public boolean isCachedModel() {
580 return _mbMailingList.isCachedModel();
581 }
582
583 @Override
584 public boolean isEscapedModel() {
585 return _mbMailingList.isEscapedModel();
586 }
587
588
593 @Override
594 public boolean isInUseSSL() {
595 return _mbMailingList.isInUseSSL();
596 }
597
598 @Override
599 public boolean isNew() {
600 return _mbMailingList.isNew();
601 }
602
603
608 @Override
609 public boolean isOutCustom() {
610 return _mbMailingList.isOutCustom();
611 }
612
613
618 @Override
619 public boolean isOutUseSSL() {
620 return _mbMailingList.isOutUseSSL();
621 }
622
623 @Override
624 public void persist() {
625 _mbMailingList.persist();
626 }
627
628
633 @Override
634 public void setActive(boolean active) {
635 _mbMailingList.setActive(active);
636 }
637
638
643 @Override
644 public void setAllowAnonymous(boolean allowAnonymous) {
645 _mbMailingList.setAllowAnonymous(allowAnonymous);
646 }
647
648 @Override
649 public void setCachedModel(boolean cachedModel) {
650 _mbMailingList.setCachedModel(cachedModel);
651 }
652
653
658 @Override
659 public void setCategoryId(long categoryId) {
660 _mbMailingList.setCategoryId(categoryId);
661 }
662
663
668 @Override
669 public void setCompanyId(long companyId) {
670 _mbMailingList.setCompanyId(companyId);
671 }
672
673
678 @Override
679 public void setCreateDate(Date createDate) {
680 _mbMailingList.setCreateDate(createDate);
681 }
682
683
688 @Override
689 public void setEmailAddress(java.lang.String emailAddress) {
690 _mbMailingList.setEmailAddress(emailAddress);
691 }
692
693 @Override
694 public void setExpandoBridgeAttributes(
695 com.liferay.portal.kernel.model.BaseModel<?> baseModel) {
696 _mbMailingList.setExpandoBridgeAttributes(baseModel);
697 }
698
699 @Override
700 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
701 _mbMailingList.setExpandoBridgeAttributes(expandoBridge);
702 }
703
704 @Override
705 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
706 _mbMailingList.setExpandoBridgeAttributes(serviceContext);
707 }
708
709
714 @Override
715 public void setGroupId(long groupId) {
716 _mbMailingList.setGroupId(groupId);
717 }
718
719
724 @Override
725 public void setInPassword(java.lang.String inPassword) {
726 _mbMailingList.setInPassword(inPassword);
727 }
728
729
734 @Override
735 public void setInProtocol(java.lang.String inProtocol) {
736 _mbMailingList.setInProtocol(inProtocol);
737 }
738
739
744 @Override
745 public void setInReadInterval(int inReadInterval) {
746 _mbMailingList.setInReadInterval(inReadInterval);
747 }
748
749
754 @Override
755 public void setInServerName(java.lang.String inServerName) {
756 _mbMailingList.setInServerName(inServerName);
757 }
758
759
764 @Override
765 public void setInServerPort(int inServerPort) {
766 _mbMailingList.setInServerPort(inServerPort);
767 }
768
769
774 @Override
775 public void setInUseSSL(boolean inUseSSL) {
776 _mbMailingList.setInUseSSL(inUseSSL);
777 }
778
779
784 @Override
785 public void setInUserName(java.lang.String inUserName) {
786 _mbMailingList.setInUserName(inUserName);
787 }
788
789
794 @Override
795 public void setMailingListId(long mailingListId) {
796 _mbMailingList.setMailingListId(mailingListId);
797 }
798
799
804 @Override
805 public void setModifiedDate(Date modifiedDate) {
806 _mbMailingList.setModifiedDate(modifiedDate);
807 }
808
809 @Override
810 public void setNew(boolean n) {
811 _mbMailingList.setNew(n);
812 }
813
814
819 @Override
820 public void setOutCustom(boolean outCustom) {
821 _mbMailingList.setOutCustom(outCustom);
822 }
823
824
829 @Override
830 public void setOutEmailAddress(java.lang.String outEmailAddress) {
831 _mbMailingList.setOutEmailAddress(outEmailAddress);
832 }
833
834
839 @Override
840 public void setOutPassword(java.lang.String outPassword) {
841 _mbMailingList.setOutPassword(outPassword);
842 }
843
844
849 @Override
850 public void setOutServerName(java.lang.String outServerName) {
851 _mbMailingList.setOutServerName(outServerName);
852 }
853
854
859 @Override
860 public void setOutServerPort(int outServerPort) {
861 _mbMailingList.setOutServerPort(outServerPort);
862 }
863
864
869 @Override
870 public void setOutUseSSL(boolean outUseSSL) {
871 _mbMailingList.setOutUseSSL(outUseSSL);
872 }
873
874
879 @Override
880 public void setOutUserName(java.lang.String outUserName) {
881 _mbMailingList.setOutUserName(outUserName);
882 }
883
884
889 @Override
890 public void setPrimaryKey(long primaryKey) {
891 _mbMailingList.setPrimaryKey(primaryKey);
892 }
893
894 @Override
895 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
896 _mbMailingList.setPrimaryKeyObj(primaryKeyObj);
897 }
898
899
904 @Override
905 public void setUserId(long userId) {
906 _mbMailingList.setUserId(userId);
907 }
908
909
914 @Override
915 public void setUserName(java.lang.String userName) {
916 _mbMailingList.setUserName(userName);
917 }
918
919
924 @Override
925 public void setUserUuid(java.lang.String userUuid) {
926 _mbMailingList.setUserUuid(userUuid);
927 }
928
929
934 @Override
935 public void setUuid(java.lang.String uuid) {
936 _mbMailingList.setUuid(uuid);
937 }
938
939 @Override
940 public com.liferay.portal.kernel.model.CacheModel<com.liferay.message.boards.kernel.model.MBMailingList> toCacheModel() {
941 return _mbMailingList.toCacheModel();
942 }
943
944 @Override
945 public com.liferay.message.boards.kernel.model.MBMailingList toEscapedModel() {
946 return new MBMailingListWrapper(_mbMailingList.toEscapedModel());
947 }
948
949 @Override
950 public java.lang.String toString() {
951 return _mbMailingList.toString();
952 }
953
954 @Override
955 public com.liferay.message.boards.kernel.model.MBMailingList toUnescapedModel() {
956 return new MBMailingListWrapper(_mbMailingList.toUnescapedModel());
957 }
958
959 @Override
960 public java.lang.String toXmlString() {
961 return _mbMailingList.toXmlString();
962 }
963
964 @Override
965 public boolean equals(Object obj) {
966 if (this == obj) {
967 return true;
968 }
969
970 if (!(obj instanceof MBMailingListWrapper)) {
971 return false;
972 }
973
974 MBMailingListWrapper mbMailingListWrapper = (MBMailingListWrapper)obj;
975
976 if (Validator.equals(_mbMailingList, mbMailingListWrapper._mbMailingList)) {
977 return true;
978 }
979
980 return false;
981 }
982
983 @Override
984 public StagedModelType getStagedModelType() {
985 return _mbMailingList.getStagedModelType();
986 }
987
988 @Override
989 public MBMailingList getWrappedModel() {
990 return _mbMailingList;
991 }
992
993 @Override
994 public boolean isEntityCacheEnabled() {
995 return _mbMailingList.isEntityCacheEnabled();
996 }
997
998 @Override
999 public boolean isFinderCacheEnabled() {
1000 return _mbMailingList.isFinderCacheEnabled();
1001 }
1002
1003 @Override
1004 public void resetOriginalValues() {
1005 _mbMailingList.resetOriginalValues();
1006 }
1007
1008 private final MBMailingList _mbMailingList;
1009 }