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("threadId", getThreadId());
049 attributes.put("groupId", getGroupId());
050 attributes.put("companyId", getCompanyId());
051 attributes.put("categoryId", getCategoryId());
052 attributes.put("rootMessageId", getRootMessageId());
053 attributes.put("rootMessageUserId", getRootMessageUserId());
054 attributes.put("messageCount", getMessageCount());
055 attributes.put("viewCount", getViewCount());
056 attributes.put("lastPostByUserId", getLastPostByUserId());
057 attributes.put("lastPostDate", getLastPostDate());
058 attributes.put("priority", getPriority());
059 attributes.put("question", getQuestion());
060 attributes.put("status", getStatus());
061 attributes.put("statusByUserId", getStatusByUserId());
062 attributes.put("statusByUserName", getStatusByUserName());
063 attributes.put("statusDate", getStatusDate());
064
065 return attributes;
066 }
067
068 public void setModelAttributes(Map<String, Object> attributes) {
069 Long threadId = (Long)attributes.get("threadId");
070
071 if (threadId != null) {
072 setThreadId(threadId);
073 }
074
075 Long groupId = (Long)attributes.get("groupId");
076
077 if (groupId != null) {
078 setGroupId(groupId);
079 }
080
081 Long companyId = (Long)attributes.get("companyId");
082
083 if (companyId != null) {
084 setCompanyId(companyId);
085 }
086
087 Long categoryId = (Long)attributes.get("categoryId");
088
089 if (categoryId != null) {
090 setCategoryId(categoryId);
091 }
092
093 Long rootMessageId = (Long)attributes.get("rootMessageId");
094
095 if (rootMessageId != null) {
096 setRootMessageId(rootMessageId);
097 }
098
099 Long rootMessageUserId = (Long)attributes.get("rootMessageUserId");
100
101 if (rootMessageUserId != null) {
102 setRootMessageUserId(rootMessageUserId);
103 }
104
105 Integer messageCount = (Integer)attributes.get("messageCount");
106
107 if (messageCount != null) {
108 setMessageCount(messageCount);
109 }
110
111 Integer viewCount = (Integer)attributes.get("viewCount");
112
113 if (viewCount != null) {
114 setViewCount(viewCount);
115 }
116
117 Long lastPostByUserId = (Long)attributes.get("lastPostByUserId");
118
119 if (lastPostByUserId != null) {
120 setLastPostByUserId(lastPostByUserId);
121 }
122
123 Date lastPostDate = (Date)attributes.get("lastPostDate");
124
125 if (lastPostDate != null) {
126 setLastPostDate(lastPostDate);
127 }
128
129 Double priority = (Double)attributes.get("priority");
130
131 if (priority != null) {
132 setPriority(priority);
133 }
134
135 Boolean question = (Boolean)attributes.get("question");
136
137 if (question != null) {
138 setQuestion(question);
139 }
140
141 Integer status = (Integer)attributes.get("status");
142
143 if (status != null) {
144 setStatus(status);
145 }
146
147 Long statusByUserId = (Long)attributes.get("statusByUserId");
148
149 if (statusByUserId != null) {
150 setStatusByUserId(statusByUserId);
151 }
152
153 String statusByUserName = (String)attributes.get("statusByUserName");
154
155 if (statusByUserName != null) {
156 setStatusByUserName(statusByUserName);
157 }
158
159 Date statusDate = (Date)attributes.get("statusDate");
160
161 if (statusDate != null) {
162 setStatusDate(statusDate);
163 }
164 }
165
166
171 public long getPrimaryKey() {
172 return _mbThread.getPrimaryKey();
173 }
174
175
180 public void setPrimaryKey(long primaryKey) {
181 _mbThread.setPrimaryKey(primaryKey);
182 }
183
184
189 public long getThreadId() {
190 return _mbThread.getThreadId();
191 }
192
193
198 public void setThreadId(long threadId) {
199 _mbThread.setThreadId(threadId);
200 }
201
202
207 public long getGroupId() {
208 return _mbThread.getGroupId();
209 }
210
211
216 public void setGroupId(long groupId) {
217 _mbThread.setGroupId(groupId);
218 }
219
220
225 public long getCompanyId() {
226 return _mbThread.getCompanyId();
227 }
228
229
234 public void setCompanyId(long companyId) {
235 _mbThread.setCompanyId(companyId);
236 }
237
238
243 public long getCategoryId() {
244 return _mbThread.getCategoryId();
245 }
246
247
252 public void setCategoryId(long categoryId) {
253 _mbThread.setCategoryId(categoryId);
254 }
255
256
261 public long getRootMessageId() {
262 return _mbThread.getRootMessageId();
263 }
264
265
270 public void setRootMessageId(long rootMessageId) {
271 _mbThread.setRootMessageId(rootMessageId);
272 }
273
274
279 public long getRootMessageUserId() {
280 return _mbThread.getRootMessageUserId();
281 }
282
283
288 public void setRootMessageUserId(long rootMessageUserId) {
289 _mbThread.setRootMessageUserId(rootMessageUserId);
290 }
291
292
298 public java.lang.String getRootMessageUserUuid()
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return _mbThread.getRootMessageUserUuid();
301 }
302
303
308 public void setRootMessageUserUuid(java.lang.String rootMessageUserUuid) {
309 _mbThread.setRootMessageUserUuid(rootMessageUserUuid);
310 }
311
312
317 public int getMessageCount() {
318 return _mbThread.getMessageCount();
319 }
320
321
326 public void setMessageCount(int messageCount) {
327 _mbThread.setMessageCount(messageCount);
328 }
329
330
335 public int getViewCount() {
336 return _mbThread.getViewCount();
337 }
338
339
344 public void setViewCount(int viewCount) {
345 _mbThread.setViewCount(viewCount);
346 }
347
348
353 public long getLastPostByUserId() {
354 return _mbThread.getLastPostByUserId();
355 }
356
357
362 public void setLastPostByUserId(long lastPostByUserId) {
363 _mbThread.setLastPostByUserId(lastPostByUserId);
364 }
365
366
372 public java.lang.String getLastPostByUserUuid()
373 throws com.liferay.portal.kernel.exception.SystemException {
374 return _mbThread.getLastPostByUserUuid();
375 }
376
377
382 public void setLastPostByUserUuid(java.lang.String lastPostByUserUuid) {
383 _mbThread.setLastPostByUserUuid(lastPostByUserUuid);
384 }
385
386
391 public java.util.Date getLastPostDate() {
392 return _mbThread.getLastPostDate();
393 }
394
395
400 public void setLastPostDate(java.util.Date lastPostDate) {
401 _mbThread.setLastPostDate(lastPostDate);
402 }
403
404
409 public double getPriority() {
410 return _mbThread.getPriority();
411 }
412
413
418 public void setPriority(double priority) {
419 _mbThread.setPriority(priority);
420 }
421
422
427 public boolean getQuestion() {
428 return _mbThread.getQuestion();
429 }
430
431
436 public boolean isQuestion() {
437 return _mbThread.isQuestion();
438 }
439
440
445 public void setQuestion(boolean question) {
446 _mbThread.setQuestion(question);
447 }
448
449
454 public int getStatus() {
455 return _mbThread.getStatus();
456 }
457
458
463 public void setStatus(int status) {
464 _mbThread.setStatus(status);
465 }
466
467
472 public long getStatusByUserId() {
473 return _mbThread.getStatusByUserId();
474 }
475
476
481 public void setStatusByUserId(long statusByUserId) {
482 _mbThread.setStatusByUserId(statusByUserId);
483 }
484
485
491 public java.lang.String getStatusByUserUuid()
492 throws com.liferay.portal.kernel.exception.SystemException {
493 return _mbThread.getStatusByUserUuid();
494 }
495
496
501 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
502 _mbThread.setStatusByUserUuid(statusByUserUuid);
503 }
504
505
510 public java.lang.String getStatusByUserName() {
511 return _mbThread.getStatusByUserName();
512 }
513
514
519 public void setStatusByUserName(java.lang.String statusByUserName) {
520 _mbThread.setStatusByUserName(statusByUserName);
521 }
522
523
528 public java.util.Date getStatusDate() {
529 return _mbThread.getStatusDate();
530 }
531
532
537 public void setStatusDate(java.util.Date statusDate) {
538 _mbThread.setStatusDate(statusDate);
539 }
540
541
544 public boolean getApproved() {
545 return _mbThread.getApproved();
546 }
547
548
553 public boolean isApproved() {
554 return _mbThread.isApproved();
555 }
556
557
562 public boolean isDenied() {
563 return _mbThread.isDenied();
564 }
565
566
571 public boolean isDraft() {
572 return _mbThread.isDraft();
573 }
574
575
580 public boolean isExpired() {
581 return _mbThread.isExpired();
582 }
583
584
589 public boolean isInactive() {
590 return _mbThread.isInactive();
591 }
592
593
598 public boolean isIncomplete() {
599 return _mbThread.isIncomplete();
600 }
601
602
607 public boolean isInTrash() {
608 return _mbThread.isInTrash();
609 }
610
611
616 public boolean isPending() {
617 return _mbThread.isPending();
618 }
619
620
625 public boolean isScheduled() {
626 return _mbThread.isScheduled();
627 }
628
629 public boolean isNew() {
630 return _mbThread.isNew();
631 }
632
633 public void setNew(boolean n) {
634 _mbThread.setNew(n);
635 }
636
637 public boolean isCachedModel() {
638 return _mbThread.isCachedModel();
639 }
640
641 public void setCachedModel(boolean cachedModel) {
642 _mbThread.setCachedModel(cachedModel);
643 }
644
645 public boolean isEscapedModel() {
646 return _mbThread.isEscapedModel();
647 }
648
649 public java.io.Serializable getPrimaryKeyObj() {
650 return _mbThread.getPrimaryKeyObj();
651 }
652
653 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
654 _mbThread.setPrimaryKeyObj(primaryKeyObj);
655 }
656
657 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
658 return _mbThread.getExpandoBridge();
659 }
660
661 public void setExpandoBridgeAttributes(
662 com.liferay.portal.service.ServiceContext serviceContext) {
663 _mbThread.setExpandoBridgeAttributes(serviceContext);
664 }
665
666 @Override
667 public java.lang.Object clone() {
668 return new MBThreadWrapper((MBThread)_mbThread.clone());
669 }
670
671 public int compareTo(
672 com.liferay.portlet.messageboards.model.MBThread mbThread) {
673 return _mbThread.compareTo(mbThread);
674 }
675
676 @Override
677 public int hashCode() {
678 return _mbThread.hashCode();
679 }
680
681 public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBThread> toCacheModel() {
682 return _mbThread.toCacheModel();
683 }
684
685 public com.liferay.portlet.messageboards.model.MBThread toEscapedModel() {
686 return new MBThreadWrapper(_mbThread.toEscapedModel());
687 }
688
689 public com.liferay.portlet.messageboards.model.MBThread toUnescapedModel() {
690 return new MBThreadWrapper(_mbThread.toUnescapedModel());
691 }
692
693 @Override
694 public java.lang.String toString() {
695 return _mbThread.toString();
696 }
697
698 public java.lang.String toXmlString() {
699 return _mbThread.toXmlString();
700 }
701
702 public void persist()
703 throws com.liferay.portal.kernel.exception.SystemException {
704 _mbThread.persist();
705 }
706
707 public long getAttachmentsFolderId()
708 throws com.liferay.portal.kernel.exception.PortalException,
709 com.liferay.portal.kernel.exception.SystemException {
710 return _mbThread.getAttachmentsFolderId();
711 }
712
713 public com.liferay.portal.model.Lock getLock() {
714 return _mbThread.getLock();
715 }
716
717 public com.liferay.portlet.messageboards.model.MBCategory getTrashContainer() {
718 return _mbThread.getTrashContainer();
719 }
720
721 public boolean hasLock(long userId) {
722 return _mbThread.hasLock(userId);
723 }
724
725 public boolean isInTrashContainer() {
726 return _mbThread.isInTrashContainer();
727 }
728
729 public boolean isLocked() {
730 return _mbThread.isLocked();
731 }
732
733
736 public MBThread getWrappedMBThread() {
737 return _mbThread;
738 }
739
740 public MBThread getWrappedModel() {
741 return _mbThread;
742 }
743
744 public void resetOriginalValues() {
745 _mbThread.resetOriginalValues();
746 }
747
748 private MBThread _mbThread;
749 }