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 MBThreadWrapper implements MBThread, ModelWrapper<MBThread> {
033 public MBThreadWrapper(MBThread mbThread) {
034 _mbThread = mbThread;
035 }
036
037 public Class<?> getModelClass() {
038 return MBThread.class;
039 }
040
041 public String getModelClassName() {
042 return MBThread.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("uuid", getUuid());
049 attributes.put("threadId", getThreadId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("userId", getUserId());
053 attributes.put("userName", getUserName());
054 attributes.put("createDate", getCreateDate());
055 attributes.put("modifiedDate", getModifiedDate());
056 attributes.put("categoryId", getCategoryId());
057 attributes.put("rootMessageId", getRootMessageId());
058 attributes.put("rootMessageUserId", getRootMessageUserId());
059 attributes.put("messageCount", getMessageCount());
060 attributes.put("viewCount", getViewCount());
061 attributes.put("lastPostByUserId", getLastPostByUserId());
062 attributes.put("lastPostDate", getLastPostDate());
063 attributes.put("priority", getPriority());
064 attributes.put("question", getQuestion());
065 attributes.put("status", getStatus());
066 attributes.put("statusByUserId", getStatusByUserId());
067 attributes.put("statusByUserName", getStatusByUserName());
068 attributes.put("statusDate", getStatusDate());
069
070 return attributes;
071 }
072
073 public void setModelAttributes(Map<String, Object> attributes) {
074 String uuid = (String)attributes.get("uuid");
075
076 if (uuid != null) {
077 setUuid(uuid);
078 }
079
080 Long threadId = (Long)attributes.get("threadId");
081
082 if (threadId != null) {
083 setThreadId(threadId);
084 }
085
086 Long groupId = (Long)attributes.get("groupId");
087
088 if (groupId != null) {
089 setGroupId(groupId);
090 }
091
092 Long companyId = (Long)attributes.get("companyId");
093
094 if (companyId != null) {
095 setCompanyId(companyId);
096 }
097
098 Long userId = (Long)attributes.get("userId");
099
100 if (userId != null) {
101 setUserId(userId);
102 }
103
104 String userName = (String)attributes.get("userName");
105
106 if (userName != null) {
107 setUserName(userName);
108 }
109
110 Date createDate = (Date)attributes.get("createDate");
111
112 if (createDate != null) {
113 setCreateDate(createDate);
114 }
115
116 Date modifiedDate = (Date)attributes.get("modifiedDate");
117
118 if (modifiedDate != null) {
119 setModifiedDate(modifiedDate);
120 }
121
122 Long categoryId = (Long)attributes.get("categoryId");
123
124 if (categoryId != null) {
125 setCategoryId(categoryId);
126 }
127
128 Long rootMessageId = (Long)attributes.get("rootMessageId");
129
130 if (rootMessageId != null) {
131 setRootMessageId(rootMessageId);
132 }
133
134 Long rootMessageUserId = (Long)attributes.get("rootMessageUserId");
135
136 if (rootMessageUserId != null) {
137 setRootMessageUserId(rootMessageUserId);
138 }
139
140 Integer messageCount = (Integer)attributes.get("messageCount");
141
142 if (messageCount != null) {
143 setMessageCount(messageCount);
144 }
145
146 Integer viewCount = (Integer)attributes.get("viewCount");
147
148 if (viewCount != null) {
149 setViewCount(viewCount);
150 }
151
152 Long lastPostByUserId = (Long)attributes.get("lastPostByUserId");
153
154 if (lastPostByUserId != null) {
155 setLastPostByUserId(lastPostByUserId);
156 }
157
158 Date lastPostDate = (Date)attributes.get("lastPostDate");
159
160 if (lastPostDate != null) {
161 setLastPostDate(lastPostDate);
162 }
163
164 Double priority = (Double)attributes.get("priority");
165
166 if (priority != null) {
167 setPriority(priority);
168 }
169
170 Boolean question = (Boolean)attributes.get("question");
171
172 if (question != null) {
173 setQuestion(question);
174 }
175
176 Integer status = (Integer)attributes.get("status");
177
178 if (status != null) {
179 setStatus(status);
180 }
181
182 Long statusByUserId = (Long)attributes.get("statusByUserId");
183
184 if (statusByUserId != null) {
185 setStatusByUserId(statusByUserId);
186 }
187
188 String statusByUserName = (String)attributes.get("statusByUserName");
189
190 if (statusByUserName != null) {
191 setStatusByUserName(statusByUserName);
192 }
193
194 Date statusDate = (Date)attributes.get("statusDate");
195
196 if (statusDate != null) {
197 setStatusDate(statusDate);
198 }
199 }
200
201
206 public long getPrimaryKey() {
207 return _mbThread.getPrimaryKey();
208 }
209
210
215 public void setPrimaryKey(long primaryKey) {
216 _mbThread.setPrimaryKey(primaryKey);
217 }
218
219
224 public java.lang.String getUuid() {
225 return _mbThread.getUuid();
226 }
227
228
233 public void setUuid(java.lang.String uuid) {
234 _mbThread.setUuid(uuid);
235 }
236
237
242 public long getThreadId() {
243 return _mbThread.getThreadId();
244 }
245
246
251 public void setThreadId(long threadId) {
252 _mbThread.setThreadId(threadId);
253 }
254
255
260 public long getGroupId() {
261 return _mbThread.getGroupId();
262 }
263
264
269 public void setGroupId(long groupId) {
270 _mbThread.setGroupId(groupId);
271 }
272
273
278 public long getCompanyId() {
279 return _mbThread.getCompanyId();
280 }
281
282
287 public void setCompanyId(long companyId) {
288 _mbThread.setCompanyId(companyId);
289 }
290
291
296 public long getUserId() {
297 return _mbThread.getUserId();
298 }
299
300
305 public void setUserId(long userId) {
306 _mbThread.setUserId(userId);
307 }
308
309
315 public java.lang.String getUserUuid()
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return _mbThread.getUserUuid();
318 }
319
320
325 public void setUserUuid(java.lang.String userUuid) {
326 _mbThread.setUserUuid(userUuid);
327 }
328
329
334 public java.lang.String getUserName() {
335 return _mbThread.getUserName();
336 }
337
338
343 public void setUserName(java.lang.String userName) {
344 _mbThread.setUserName(userName);
345 }
346
347
352 public java.util.Date getCreateDate() {
353 return _mbThread.getCreateDate();
354 }
355
356
361 public void setCreateDate(java.util.Date createDate) {
362 _mbThread.setCreateDate(createDate);
363 }
364
365
370 public java.util.Date getModifiedDate() {
371 return _mbThread.getModifiedDate();
372 }
373
374
379 public void setModifiedDate(java.util.Date modifiedDate) {
380 _mbThread.setModifiedDate(modifiedDate);
381 }
382
383
388 public long getCategoryId() {
389 return _mbThread.getCategoryId();
390 }
391
392
397 public void setCategoryId(long categoryId) {
398 _mbThread.setCategoryId(categoryId);
399 }
400
401
406 public long getRootMessageId() {
407 return _mbThread.getRootMessageId();
408 }
409
410
415 public void setRootMessageId(long rootMessageId) {
416 _mbThread.setRootMessageId(rootMessageId);
417 }
418
419
424 public long getRootMessageUserId() {
425 return _mbThread.getRootMessageUserId();
426 }
427
428
433 public void setRootMessageUserId(long rootMessageUserId) {
434 _mbThread.setRootMessageUserId(rootMessageUserId);
435 }
436
437
443 public java.lang.String getRootMessageUserUuid()
444 throws com.liferay.portal.kernel.exception.SystemException {
445 return _mbThread.getRootMessageUserUuid();
446 }
447
448
453 public void setRootMessageUserUuid(java.lang.String rootMessageUserUuid) {
454 _mbThread.setRootMessageUserUuid(rootMessageUserUuid);
455 }
456
457
462 public int getMessageCount() {
463 return _mbThread.getMessageCount();
464 }
465
466
471 public void setMessageCount(int messageCount) {
472 _mbThread.setMessageCount(messageCount);
473 }
474
475
480 public int getViewCount() {
481 return _mbThread.getViewCount();
482 }
483
484
489 public void setViewCount(int viewCount) {
490 _mbThread.setViewCount(viewCount);
491 }
492
493
498 public long getLastPostByUserId() {
499 return _mbThread.getLastPostByUserId();
500 }
501
502
507 public void setLastPostByUserId(long lastPostByUserId) {
508 _mbThread.setLastPostByUserId(lastPostByUserId);
509 }
510
511
517 public java.lang.String getLastPostByUserUuid()
518 throws com.liferay.portal.kernel.exception.SystemException {
519 return _mbThread.getLastPostByUserUuid();
520 }
521
522
527 public void setLastPostByUserUuid(java.lang.String lastPostByUserUuid) {
528 _mbThread.setLastPostByUserUuid(lastPostByUserUuid);
529 }
530
531
536 public java.util.Date getLastPostDate() {
537 return _mbThread.getLastPostDate();
538 }
539
540
545 public void setLastPostDate(java.util.Date lastPostDate) {
546 _mbThread.setLastPostDate(lastPostDate);
547 }
548
549
554 public double getPriority() {
555 return _mbThread.getPriority();
556 }
557
558
563 public void setPriority(double priority) {
564 _mbThread.setPriority(priority);
565 }
566
567
572 public boolean getQuestion() {
573 return _mbThread.getQuestion();
574 }
575
576
581 public boolean isQuestion() {
582 return _mbThread.isQuestion();
583 }
584
585
590 public void setQuestion(boolean question) {
591 _mbThread.setQuestion(question);
592 }
593
594
599 public int getStatus() {
600 return _mbThread.getStatus();
601 }
602
603
608 public void setStatus(int status) {
609 _mbThread.setStatus(status);
610 }
611
612
617 public long getStatusByUserId() {
618 return _mbThread.getStatusByUserId();
619 }
620
621
626 public void setStatusByUserId(long statusByUserId) {
627 _mbThread.setStatusByUserId(statusByUserId);
628 }
629
630
636 public java.lang.String getStatusByUserUuid()
637 throws com.liferay.portal.kernel.exception.SystemException {
638 return _mbThread.getStatusByUserUuid();
639 }
640
641
646 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
647 _mbThread.setStatusByUserUuid(statusByUserUuid);
648 }
649
650
655 public java.lang.String getStatusByUserName() {
656 return _mbThread.getStatusByUserName();
657 }
658
659
664 public void setStatusByUserName(java.lang.String statusByUserName) {
665 _mbThread.setStatusByUserName(statusByUserName);
666 }
667
668
673 public java.util.Date getStatusDate() {
674 return _mbThread.getStatusDate();
675 }
676
677
682 public void setStatusDate(java.util.Date statusDate) {
683 _mbThread.setStatusDate(statusDate);
684 }
685
686
689 public boolean getApproved() {
690 return _mbThread.getApproved();
691 }
692
693
698 public boolean isApproved() {
699 return _mbThread.isApproved();
700 }
701
702
707 public boolean isDenied() {
708 return _mbThread.isDenied();
709 }
710
711
716 public boolean isDraft() {
717 return _mbThread.isDraft();
718 }
719
720
725 public boolean isExpired() {
726 return _mbThread.isExpired();
727 }
728
729
734 public boolean isInactive() {
735 return _mbThread.isInactive();
736 }
737
738
743 public boolean isIncomplete() {
744 return _mbThread.isIncomplete();
745 }
746
747
752 public boolean isInTrash() {
753 return _mbThread.isInTrash();
754 }
755
756
761 public boolean isPending() {
762 return _mbThread.isPending();
763 }
764
765
770 public boolean isScheduled() {
771 return _mbThread.isScheduled();
772 }
773
774
779 public long getContainerModelId() {
780 return _mbThread.getContainerModelId();
781 }
782
783
788 public void setContainerModelId(long containerModelId) {
789 _mbThread.setContainerModelId(containerModelId);
790 }
791
792
797 public java.lang.String getContainerModelName() {
798 return _mbThread.getContainerModelName();
799 }
800
801
806 public long getParentContainerModelId() {
807 return _mbThread.getParentContainerModelId();
808 }
809
810
815 public void setParentContainerModelId(long parentContainerModelId) {
816 _mbThread.setParentContainerModelId(parentContainerModelId);
817 }
818
819 public boolean isNew() {
820 return _mbThread.isNew();
821 }
822
823 public void setNew(boolean n) {
824 _mbThread.setNew(n);
825 }
826
827 public boolean isCachedModel() {
828 return _mbThread.isCachedModel();
829 }
830
831 public void setCachedModel(boolean cachedModel) {
832 _mbThread.setCachedModel(cachedModel);
833 }
834
835 public boolean isEscapedModel() {
836 return _mbThread.isEscapedModel();
837 }
838
839 public java.io.Serializable getPrimaryKeyObj() {
840 return _mbThread.getPrimaryKeyObj();
841 }
842
843 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
844 _mbThread.setPrimaryKeyObj(primaryKeyObj);
845 }
846
847 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
848 return _mbThread.getExpandoBridge();
849 }
850
851 public void setExpandoBridgeAttributes(
852 com.liferay.portal.model.BaseModel<?> baseModel) {
853 _mbThread.setExpandoBridgeAttributes(baseModel);
854 }
855
856 public void setExpandoBridgeAttributes(
857 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
858 _mbThread.setExpandoBridgeAttributes(expandoBridge);
859 }
860
861 public void setExpandoBridgeAttributes(
862 com.liferay.portal.service.ServiceContext serviceContext) {
863 _mbThread.setExpandoBridgeAttributes(serviceContext);
864 }
865
866 @Override
867 public java.lang.Object clone() {
868 return new MBThreadWrapper((MBThread)_mbThread.clone());
869 }
870
871 public int compareTo(
872 com.liferay.portlet.messageboards.model.MBThread mbThread) {
873 return _mbThread.compareTo(mbThread);
874 }
875
876 @Override
877 public int hashCode() {
878 return _mbThread.hashCode();
879 }
880
881 public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBThread> toCacheModel() {
882 return _mbThread.toCacheModel();
883 }
884
885 public com.liferay.portlet.messageboards.model.MBThread toEscapedModel() {
886 return new MBThreadWrapper(_mbThread.toEscapedModel());
887 }
888
889 public com.liferay.portlet.messageboards.model.MBThread toUnescapedModel() {
890 return new MBThreadWrapper(_mbThread.toUnescapedModel());
891 }
892
893 @Override
894 public java.lang.String toString() {
895 return _mbThread.toString();
896 }
897
898 public java.lang.String toXmlString() {
899 return _mbThread.toXmlString();
900 }
901
902 public void persist()
903 throws com.liferay.portal.kernel.exception.SystemException {
904 _mbThread.persist();
905 }
906
907 public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder()
908 throws com.liferay.portal.kernel.exception.PortalException,
909 com.liferay.portal.kernel.exception.SystemException {
910 return _mbThread.addAttachmentsFolder();
911 }
912
913 public long getAttachmentsFolderId()
914 throws com.liferay.portal.kernel.exception.SystemException {
915 return _mbThread.getAttachmentsFolderId();
916 }
917
918 public com.liferay.portal.model.Lock getLock() {
919 return _mbThread.getLock();
920 }
921
922 public com.liferay.portlet.messageboards.model.MBCategory getTrashContainer() {
923 return _mbThread.getTrashContainer();
924 }
925
926 public boolean hasLock(long userId) {
927 return _mbThread.hasLock(userId);
928 }
929
930 public boolean isInTrashContainer() {
931 return _mbThread.isInTrashContainer();
932 }
933
934 public boolean isLocked() {
935 return _mbThread.isLocked();
936 }
937
938
941 public MBThread getWrappedMBThread() {
942 return _mbThread;
943 }
944
945 public MBThread getWrappedModel() {
946 return _mbThread;
947 }
948
949 public void resetOriginalValues() {
950 _mbThread.resetOriginalValues();
951 }
952
953 private MBThread _mbThread;
954 }