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 MBCategoryWrapper implements MBCategory, ModelWrapper<MBCategory> {
033 public MBCategoryWrapper(MBCategory mbCategory) {
034 _mbCategory = mbCategory;
035 }
036
037 public Class<?> getModelClass() {
038 return MBCategory.class;
039 }
040
041 public String getModelClassName() {
042 return MBCategory.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("categoryId", getCategoryId());
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("parentCategoryId", getParentCategoryId());
057 attributes.put("name", getName());
058 attributes.put("description", getDescription());
059 attributes.put("displayStyle", getDisplayStyle());
060 attributes.put("threadCount", getThreadCount());
061 attributes.put("messageCount", getMessageCount());
062 attributes.put("lastPostDate", getLastPostDate());
063 attributes.put("status", getStatus());
064 attributes.put("statusByUserId", getStatusByUserId());
065 attributes.put("statusByUserName", getStatusByUserName());
066 attributes.put("statusDate", getStatusDate());
067
068 return attributes;
069 }
070
071 public void setModelAttributes(Map<String, Object> attributes) {
072 String uuid = (String)attributes.get("uuid");
073
074 if (uuid != null) {
075 setUuid(uuid);
076 }
077
078 Long categoryId = (Long)attributes.get("categoryId");
079
080 if (categoryId != null) {
081 setCategoryId(categoryId);
082 }
083
084 Long groupId = (Long)attributes.get("groupId");
085
086 if (groupId != null) {
087 setGroupId(groupId);
088 }
089
090 Long companyId = (Long)attributes.get("companyId");
091
092 if (companyId != null) {
093 setCompanyId(companyId);
094 }
095
096 Long userId = (Long)attributes.get("userId");
097
098 if (userId != null) {
099 setUserId(userId);
100 }
101
102 String userName = (String)attributes.get("userName");
103
104 if (userName != null) {
105 setUserName(userName);
106 }
107
108 Date createDate = (Date)attributes.get("createDate");
109
110 if (createDate != null) {
111 setCreateDate(createDate);
112 }
113
114 Date modifiedDate = (Date)attributes.get("modifiedDate");
115
116 if (modifiedDate != null) {
117 setModifiedDate(modifiedDate);
118 }
119
120 Long parentCategoryId = (Long)attributes.get("parentCategoryId");
121
122 if (parentCategoryId != null) {
123 setParentCategoryId(parentCategoryId);
124 }
125
126 String name = (String)attributes.get("name");
127
128 if (name != null) {
129 setName(name);
130 }
131
132 String description = (String)attributes.get("description");
133
134 if (description != null) {
135 setDescription(description);
136 }
137
138 String displayStyle = (String)attributes.get("displayStyle");
139
140 if (displayStyle != null) {
141 setDisplayStyle(displayStyle);
142 }
143
144 Integer threadCount = (Integer)attributes.get("threadCount");
145
146 if (threadCount != null) {
147 setThreadCount(threadCount);
148 }
149
150 Integer messageCount = (Integer)attributes.get("messageCount");
151
152 if (messageCount != null) {
153 setMessageCount(messageCount);
154 }
155
156 Date lastPostDate = (Date)attributes.get("lastPostDate");
157
158 if (lastPostDate != null) {
159 setLastPostDate(lastPostDate);
160 }
161
162 Integer status = (Integer)attributes.get("status");
163
164 if (status != null) {
165 setStatus(status);
166 }
167
168 Long statusByUserId = (Long)attributes.get("statusByUserId");
169
170 if (statusByUserId != null) {
171 setStatusByUserId(statusByUserId);
172 }
173
174 String statusByUserName = (String)attributes.get("statusByUserName");
175
176 if (statusByUserName != null) {
177 setStatusByUserName(statusByUserName);
178 }
179
180 Date statusDate = (Date)attributes.get("statusDate");
181
182 if (statusDate != null) {
183 setStatusDate(statusDate);
184 }
185 }
186
187
192 public long getPrimaryKey() {
193 return _mbCategory.getPrimaryKey();
194 }
195
196
201 public void setPrimaryKey(long primaryKey) {
202 _mbCategory.setPrimaryKey(primaryKey);
203 }
204
205
210 public java.lang.String getUuid() {
211 return _mbCategory.getUuid();
212 }
213
214
219 public void setUuid(java.lang.String uuid) {
220 _mbCategory.setUuid(uuid);
221 }
222
223
228 public long getCategoryId() {
229 return _mbCategory.getCategoryId();
230 }
231
232
237 public void setCategoryId(long categoryId) {
238 _mbCategory.setCategoryId(categoryId);
239 }
240
241
246 public long getGroupId() {
247 return _mbCategory.getGroupId();
248 }
249
250
255 public void setGroupId(long groupId) {
256 _mbCategory.setGroupId(groupId);
257 }
258
259
264 public long getCompanyId() {
265 return _mbCategory.getCompanyId();
266 }
267
268
273 public void setCompanyId(long companyId) {
274 _mbCategory.setCompanyId(companyId);
275 }
276
277
282 public long getUserId() {
283 return _mbCategory.getUserId();
284 }
285
286
291 public void setUserId(long userId) {
292 _mbCategory.setUserId(userId);
293 }
294
295
301 public java.lang.String getUserUuid()
302 throws com.liferay.portal.kernel.exception.SystemException {
303 return _mbCategory.getUserUuid();
304 }
305
306
311 public void setUserUuid(java.lang.String userUuid) {
312 _mbCategory.setUserUuid(userUuid);
313 }
314
315
320 public java.lang.String getUserName() {
321 return _mbCategory.getUserName();
322 }
323
324
329 public void setUserName(java.lang.String userName) {
330 _mbCategory.setUserName(userName);
331 }
332
333
338 public java.util.Date getCreateDate() {
339 return _mbCategory.getCreateDate();
340 }
341
342
347 public void setCreateDate(java.util.Date createDate) {
348 _mbCategory.setCreateDate(createDate);
349 }
350
351
356 public java.util.Date getModifiedDate() {
357 return _mbCategory.getModifiedDate();
358 }
359
360
365 public void setModifiedDate(java.util.Date modifiedDate) {
366 _mbCategory.setModifiedDate(modifiedDate);
367 }
368
369
374 public long getParentCategoryId() {
375 return _mbCategory.getParentCategoryId();
376 }
377
378
383 public void setParentCategoryId(long parentCategoryId) {
384 _mbCategory.setParentCategoryId(parentCategoryId);
385 }
386
387
392 public java.lang.String getName() {
393 return _mbCategory.getName();
394 }
395
396
401 public void setName(java.lang.String name) {
402 _mbCategory.setName(name);
403 }
404
405
410 public java.lang.String getDescription() {
411 return _mbCategory.getDescription();
412 }
413
414
419 public void setDescription(java.lang.String description) {
420 _mbCategory.setDescription(description);
421 }
422
423
428 public java.lang.String getDisplayStyle() {
429 return _mbCategory.getDisplayStyle();
430 }
431
432
437 public void setDisplayStyle(java.lang.String displayStyle) {
438 _mbCategory.setDisplayStyle(displayStyle);
439 }
440
441
446 public int getThreadCount() {
447 return _mbCategory.getThreadCount();
448 }
449
450
455 public void setThreadCount(int threadCount) {
456 _mbCategory.setThreadCount(threadCount);
457 }
458
459
464 public int getMessageCount() {
465 return _mbCategory.getMessageCount();
466 }
467
468
473 public void setMessageCount(int messageCount) {
474 _mbCategory.setMessageCount(messageCount);
475 }
476
477
482 public java.util.Date getLastPostDate() {
483 return _mbCategory.getLastPostDate();
484 }
485
486
491 public void setLastPostDate(java.util.Date lastPostDate) {
492 _mbCategory.setLastPostDate(lastPostDate);
493 }
494
495
500 public int getStatus() {
501 return _mbCategory.getStatus();
502 }
503
504
509 public void setStatus(int status) {
510 _mbCategory.setStatus(status);
511 }
512
513
518 public long getStatusByUserId() {
519 return _mbCategory.getStatusByUserId();
520 }
521
522
527 public void setStatusByUserId(long statusByUserId) {
528 _mbCategory.setStatusByUserId(statusByUserId);
529 }
530
531
537 public java.lang.String getStatusByUserUuid()
538 throws com.liferay.portal.kernel.exception.SystemException {
539 return _mbCategory.getStatusByUserUuid();
540 }
541
542
547 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
548 _mbCategory.setStatusByUserUuid(statusByUserUuid);
549 }
550
551
556 public java.lang.String getStatusByUserName() {
557 return _mbCategory.getStatusByUserName();
558 }
559
560
565 public void setStatusByUserName(java.lang.String statusByUserName) {
566 _mbCategory.setStatusByUserName(statusByUserName);
567 }
568
569
574 public java.util.Date getStatusDate() {
575 return _mbCategory.getStatusDate();
576 }
577
578
583 public void setStatusDate(java.util.Date statusDate) {
584 _mbCategory.setStatusDate(statusDate);
585 }
586
587
590 public boolean getApproved() {
591 return _mbCategory.getApproved();
592 }
593
594
599 public boolean isApproved() {
600 return _mbCategory.isApproved();
601 }
602
603
608 public boolean isDenied() {
609 return _mbCategory.isDenied();
610 }
611
612
617 public boolean isDraft() {
618 return _mbCategory.isDraft();
619 }
620
621
626 public boolean isExpired() {
627 return _mbCategory.isExpired();
628 }
629
630
635 public boolean isInactive() {
636 return _mbCategory.isInactive();
637 }
638
639
644 public boolean isIncomplete() {
645 return _mbCategory.isIncomplete();
646 }
647
648
653 public boolean isInTrash() {
654 return _mbCategory.isInTrash();
655 }
656
657
662 public boolean isPending() {
663 return _mbCategory.isPending();
664 }
665
666
671 public boolean isScheduled() {
672 return _mbCategory.isScheduled();
673 }
674
675
680 public long getContainerModelId() {
681 return _mbCategory.getContainerModelId();
682 }
683
684
689 public void setContainerModelId(long containerModelId) {
690 _mbCategory.setContainerModelId(containerModelId);
691 }
692
693
698 public java.lang.String getContainerModelName() {
699 return _mbCategory.getContainerModelName();
700 }
701
702
707 public long getParentContainerModelId() {
708 return _mbCategory.getParentContainerModelId();
709 }
710
711
716 public void setParentContainerModelId(long parentContainerModelId) {
717 _mbCategory.setParentContainerModelId(parentContainerModelId);
718 }
719
720 public boolean isNew() {
721 return _mbCategory.isNew();
722 }
723
724 public void setNew(boolean n) {
725 _mbCategory.setNew(n);
726 }
727
728 public boolean isCachedModel() {
729 return _mbCategory.isCachedModel();
730 }
731
732 public void setCachedModel(boolean cachedModel) {
733 _mbCategory.setCachedModel(cachedModel);
734 }
735
736 public boolean isEscapedModel() {
737 return _mbCategory.isEscapedModel();
738 }
739
740 public java.io.Serializable getPrimaryKeyObj() {
741 return _mbCategory.getPrimaryKeyObj();
742 }
743
744 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
745 _mbCategory.setPrimaryKeyObj(primaryKeyObj);
746 }
747
748 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
749 return _mbCategory.getExpandoBridge();
750 }
751
752 public void setExpandoBridgeAttributes(
753 com.liferay.portal.model.BaseModel<?> baseModel) {
754 _mbCategory.setExpandoBridgeAttributes(baseModel);
755 }
756
757 public void setExpandoBridgeAttributes(
758 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
759 _mbCategory.setExpandoBridgeAttributes(expandoBridge);
760 }
761
762 public void setExpandoBridgeAttributes(
763 com.liferay.portal.service.ServiceContext serviceContext) {
764 _mbCategory.setExpandoBridgeAttributes(serviceContext);
765 }
766
767 @Override
768 public java.lang.Object clone() {
769 return new MBCategoryWrapper((MBCategory)_mbCategory.clone());
770 }
771
772 public int compareTo(
773 com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
774 return _mbCategory.compareTo(mbCategory);
775 }
776
777 @Override
778 public int hashCode() {
779 return _mbCategory.hashCode();
780 }
781
782 public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBCategory> toCacheModel() {
783 return _mbCategory.toCacheModel();
784 }
785
786 public com.liferay.portlet.messageboards.model.MBCategory toEscapedModel() {
787 return new MBCategoryWrapper(_mbCategory.toEscapedModel());
788 }
789
790 public com.liferay.portlet.messageboards.model.MBCategory toUnescapedModel() {
791 return new MBCategoryWrapper(_mbCategory.toUnescapedModel());
792 }
793
794 @Override
795 public java.lang.String toString() {
796 return _mbCategory.toString();
797 }
798
799 public java.lang.String toXmlString() {
800 return _mbCategory.toXmlString();
801 }
802
803 public void persist()
804 throws com.liferay.portal.kernel.exception.SystemException {
805 _mbCategory.persist();
806 }
807
808 public java.util.List<java.lang.Long> getAncestorCategoryIds()
809 throws com.liferay.portal.kernel.exception.PortalException,
810 com.liferay.portal.kernel.exception.SystemException {
811 return _mbCategory.getAncestorCategoryIds();
812 }
813
814 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getAncestors()
815 throws com.liferay.portal.kernel.exception.PortalException,
816 com.liferay.portal.kernel.exception.SystemException {
817 return _mbCategory.getAncestors();
818 }
819
820 public com.liferay.portlet.messageboards.model.MBCategory getParentCategory()
821 throws com.liferay.portal.kernel.exception.PortalException,
822 com.liferay.portal.kernel.exception.SystemException {
823 return _mbCategory.getParentCategory();
824 }
825
826 public com.liferay.portlet.messageboards.model.MBCategory getTrashContainer() {
827 return _mbCategory.getTrashContainer();
828 }
829
830 public boolean isInTrashContainer() {
831 return _mbCategory.isInTrashContainer();
832 }
833
834 public boolean isRoot() {
835 return _mbCategory.isRoot();
836 }
837
838
841 public MBCategory getWrappedMBCategory() {
842 return _mbCategory;
843 }
844
845 public MBCategory getWrappedModel() {
846 return _mbCategory;
847 }
848
849 public void resetOriginalValues() {
850 _mbCategory.resetOriginalValues();
851 }
852
853 private MBCategory _mbCategory;
854 }