001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.model;
016    
017    import com.liferay.portal.kernel.lar.StagedModelType;
018    import com.liferay.portal.kernel.util.Validator;
019    import com.liferay.portal.model.ModelWrapper;
020    
021    import java.util.Date;
022    import java.util.HashMap;
023    import java.util.Map;
024    
025    /**
026     * <p>
027     * This class is a wrapper for {@link MBCategory}.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see MBCategory
032     * @generated
033     */
034    public class MBCategoryWrapper implements MBCategory, ModelWrapper<MBCategory> {
035            public MBCategoryWrapper(MBCategory mbCategory) {
036                    _mbCategory = mbCategory;
037            }
038    
039            @Override
040            public Class<?> getModelClass() {
041                    return MBCategory.class;
042            }
043    
044            @Override
045            public String getModelClassName() {
046                    return MBCategory.class.getName();
047            }
048    
049            @Override
050            public Map<String, Object> getModelAttributes() {
051                    Map<String, Object> attributes = new HashMap<String, Object>();
052    
053                    attributes.put("uuid", getUuid());
054                    attributes.put("categoryId", getCategoryId());
055                    attributes.put("groupId", getGroupId());
056                    attributes.put("companyId", getCompanyId());
057                    attributes.put("userId", getUserId());
058                    attributes.put("userName", getUserName());
059                    attributes.put("createDate", getCreateDate());
060                    attributes.put("modifiedDate", getModifiedDate());
061                    attributes.put("parentCategoryId", getParentCategoryId());
062                    attributes.put("name", getName());
063                    attributes.put("description", getDescription());
064                    attributes.put("displayStyle", getDisplayStyle());
065                    attributes.put("threadCount", getThreadCount());
066                    attributes.put("messageCount", getMessageCount());
067                    attributes.put("lastPostDate", getLastPostDate());
068                    attributes.put("status", getStatus());
069                    attributes.put("statusByUserId", getStatusByUserId());
070                    attributes.put("statusByUserName", getStatusByUserName());
071                    attributes.put("statusDate", getStatusDate());
072    
073                    return attributes;
074            }
075    
076            @Override
077            public void setModelAttributes(Map<String, Object> attributes) {
078                    String uuid = (String)attributes.get("uuid");
079    
080                    if (uuid != null) {
081                            setUuid(uuid);
082                    }
083    
084                    Long categoryId = (Long)attributes.get("categoryId");
085    
086                    if (categoryId != null) {
087                            setCategoryId(categoryId);
088                    }
089    
090                    Long groupId = (Long)attributes.get("groupId");
091    
092                    if (groupId != null) {
093                            setGroupId(groupId);
094                    }
095    
096                    Long companyId = (Long)attributes.get("companyId");
097    
098                    if (companyId != null) {
099                            setCompanyId(companyId);
100                    }
101    
102                    Long userId = (Long)attributes.get("userId");
103    
104                    if (userId != null) {
105                            setUserId(userId);
106                    }
107    
108                    String userName = (String)attributes.get("userName");
109    
110                    if (userName != null) {
111                            setUserName(userName);
112                    }
113    
114                    Date createDate = (Date)attributes.get("createDate");
115    
116                    if (createDate != null) {
117                            setCreateDate(createDate);
118                    }
119    
120                    Date modifiedDate = (Date)attributes.get("modifiedDate");
121    
122                    if (modifiedDate != null) {
123                            setModifiedDate(modifiedDate);
124                    }
125    
126                    Long parentCategoryId = (Long)attributes.get("parentCategoryId");
127    
128                    if (parentCategoryId != null) {
129                            setParentCategoryId(parentCategoryId);
130                    }
131    
132                    String name = (String)attributes.get("name");
133    
134                    if (name != null) {
135                            setName(name);
136                    }
137    
138                    String description = (String)attributes.get("description");
139    
140                    if (description != null) {
141                            setDescription(description);
142                    }
143    
144                    String displayStyle = (String)attributes.get("displayStyle");
145    
146                    if (displayStyle != null) {
147                            setDisplayStyle(displayStyle);
148                    }
149    
150                    Integer threadCount = (Integer)attributes.get("threadCount");
151    
152                    if (threadCount != null) {
153                            setThreadCount(threadCount);
154                    }
155    
156                    Integer messageCount = (Integer)attributes.get("messageCount");
157    
158                    if (messageCount != null) {
159                            setMessageCount(messageCount);
160                    }
161    
162                    Date lastPostDate = (Date)attributes.get("lastPostDate");
163    
164                    if (lastPostDate != null) {
165                            setLastPostDate(lastPostDate);
166                    }
167    
168                    Integer status = (Integer)attributes.get("status");
169    
170                    if (status != null) {
171                            setStatus(status);
172                    }
173    
174                    Long statusByUserId = (Long)attributes.get("statusByUserId");
175    
176                    if (statusByUserId != null) {
177                            setStatusByUserId(statusByUserId);
178                    }
179    
180                    String statusByUserName = (String)attributes.get("statusByUserName");
181    
182                    if (statusByUserName != null) {
183                            setStatusByUserName(statusByUserName);
184                    }
185    
186                    Date statusDate = (Date)attributes.get("statusDate");
187    
188                    if (statusDate != null) {
189                            setStatusDate(statusDate);
190                    }
191            }
192    
193            /**
194            * Returns the primary key of this message boards category.
195            *
196            * @return the primary key of this message boards category
197            */
198            @Override
199            public long getPrimaryKey() {
200                    return _mbCategory.getPrimaryKey();
201            }
202    
203            /**
204            * Sets the primary key of this message boards category.
205            *
206            * @param primaryKey the primary key of this message boards category
207            */
208            @Override
209            public void setPrimaryKey(long primaryKey) {
210                    _mbCategory.setPrimaryKey(primaryKey);
211            }
212    
213            /**
214            * Returns the uuid of this message boards category.
215            *
216            * @return the uuid of this message boards category
217            */
218            @Override
219            public java.lang.String getUuid() {
220                    return _mbCategory.getUuid();
221            }
222    
223            /**
224            * Sets the uuid of this message boards category.
225            *
226            * @param uuid the uuid of this message boards category
227            */
228            @Override
229            public void setUuid(java.lang.String uuid) {
230                    _mbCategory.setUuid(uuid);
231            }
232    
233            /**
234            * Returns the category ID of this message boards category.
235            *
236            * @return the category ID of this message boards category
237            */
238            @Override
239            public long getCategoryId() {
240                    return _mbCategory.getCategoryId();
241            }
242    
243            /**
244            * Sets the category ID of this message boards category.
245            *
246            * @param categoryId the category ID of this message boards category
247            */
248            @Override
249            public void setCategoryId(long categoryId) {
250                    _mbCategory.setCategoryId(categoryId);
251            }
252    
253            /**
254            * Returns the group ID of this message boards category.
255            *
256            * @return the group ID of this message boards category
257            */
258            @Override
259            public long getGroupId() {
260                    return _mbCategory.getGroupId();
261            }
262    
263            /**
264            * Sets the group ID of this message boards category.
265            *
266            * @param groupId the group ID of this message boards category
267            */
268            @Override
269            public void setGroupId(long groupId) {
270                    _mbCategory.setGroupId(groupId);
271            }
272    
273            /**
274            * Returns the company ID of this message boards category.
275            *
276            * @return the company ID of this message boards category
277            */
278            @Override
279            public long getCompanyId() {
280                    return _mbCategory.getCompanyId();
281            }
282    
283            /**
284            * Sets the company ID of this message boards category.
285            *
286            * @param companyId the company ID of this message boards category
287            */
288            @Override
289            public void setCompanyId(long companyId) {
290                    _mbCategory.setCompanyId(companyId);
291            }
292    
293            /**
294            * Returns the user ID of this message boards category.
295            *
296            * @return the user ID of this message boards category
297            */
298            @Override
299            public long getUserId() {
300                    return _mbCategory.getUserId();
301            }
302    
303            /**
304            * Sets the user ID of this message boards category.
305            *
306            * @param userId the user ID of this message boards category
307            */
308            @Override
309            public void setUserId(long userId) {
310                    _mbCategory.setUserId(userId);
311            }
312    
313            /**
314            * Returns the user uuid of this message boards category.
315            *
316            * @return the user uuid of this message boards category
317            * @throws SystemException if a system exception occurred
318            */
319            @Override
320            public java.lang.String getUserUuid()
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    return _mbCategory.getUserUuid();
323            }
324    
325            /**
326            * Sets the user uuid of this message boards category.
327            *
328            * @param userUuid the user uuid of this message boards category
329            */
330            @Override
331            public void setUserUuid(java.lang.String userUuid) {
332                    _mbCategory.setUserUuid(userUuid);
333            }
334    
335            /**
336            * Returns the user name of this message boards category.
337            *
338            * @return the user name of this message boards category
339            */
340            @Override
341            public java.lang.String getUserName() {
342                    return _mbCategory.getUserName();
343            }
344    
345            /**
346            * Sets the user name of this message boards category.
347            *
348            * @param userName the user name of this message boards category
349            */
350            @Override
351            public void setUserName(java.lang.String userName) {
352                    _mbCategory.setUserName(userName);
353            }
354    
355            /**
356            * Returns the create date of this message boards category.
357            *
358            * @return the create date of this message boards category
359            */
360            @Override
361            public java.util.Date getCreateDate() {
362                    return _mbCategory.getCreateDate();
363            }
364    
365            /**
366            * Sets the create date of this message boards category.
367            *
368            * @param createDate the create date of this message boards category
369            */
370            @Override
371            public void setCreateDate(java.util.Date createDate) {
372                    _mbCategory.setCreateDate(createDate);
373            }
374    
375            /**
376            * Returns the modified date of this message boards category.
377            *
378            * @return the modified date of this message boards category
379            */
380            @Override
381            public java.util.Date getModifiedDate() {
382                    return _mbCategory.getModifiedDate();
383            }
384    
385            /**
386            * Sets the modified date of this message boards category.
387            *
388            * @param modifiedDate the modified date of this message boards category
389            */
390            @Override
391            public void setModifiedDate(java.util.Date modifiedDate) {
392                    _mbCategory.setModifiedDate(modifiedDate);
393            }
394    
395            /**
396            * Returns the parent category ID of this message boards category.
397            *
398            * @return the parent category ID of this message boards category
399            */
400            @Override
401            public long getParentCategoryId() {
402                    return _mbCategory.getParentCategoryId();
403            }
404    
405            /**
406            * Sets the parent category ID of this message boards category.
407            *
408            * @param parentCategoryId the parent category ID of this message boards category
409            */
410            @Override
411            public void setParentCategoryId(long parentCategoryId) {
412                    _mbCategory.setParentCategoryId(parentCategoryId);
413            }
414    
415            /**
416            * Returns the name of this message boards category.
417            *
418            * @return the name of this message boards category
419            */
420            @Override
421            public java.lang.String getName() {
422                    return _mbCategory.getName();
423            }
424    
425            /**
426            * Sets the name of this message boards category.
427            *
428            * @param name the name of this message boards category
429            */
430            @Override
431            public void setName(java.lang.String name) {
432                    _mbCategory.setName(name);
433            }
434    
435            /**
436            * Returns the description of this message boards category.
437            *
438            * @return the description of this message boards category
439            */
440            @Override
441            public java.lang.String getDescription() {
442                    return _mbCategory.getDescription();
443            }
444    
445            /**
446            * Sets the description of this message boards category.
447            *
448            * @param description the description of this message boards category
449            */
450            @Override
451            public void setDescription(java.lang.String description) {
452                    _mbCategory.setDescription(description);
453            }
454    
455            /**
456            * Returns the display style of this message boards category.
457            *
458            * @return the display style of this message boards category
459            */
460            @Override
461            public java.lang.String getDisplayStyle() {
462                    return _mbCategory.getDisplayStyle();
463            }
464    
465            /**
466            * Sets the display style of this message boards category.
467            *
468            * @param displayStyle the display style of this message boards category
469            */
470            @Override
471            public void setDisplayStyle(java.lang.String displayStyle) {
472                    _mbCategory.setDisplayStyle(displayStyle);
473            }
474    
475            /**
476            * Returns the thread count of this message boards category.
477            *
478            * @return the thread count of this message boards category
479            */
480            @Override
481            public int getThreadCount() {
482                    return _mbCategory.getThreadCount();
483            }
484    
485            /**
486            * Sets the thread count of this message boards category.
487            *
488            * @param threadCount the thread count of this message boards category
489            */
490            @Override
491            public void setThreadCount(int threadCount) {
492                    _mbCategory.setThreadCount(threadCount);
493            }
494    
495            /**
496            * Returns the message count of this message boards category.
497            *
498            * @return the message count of this message boards category
499            */
500            @Override
501            public int getMessageCount() {
502                    return _mbCategory.getMessageCount();
503            }
504    
505            /**
506            * Sets the message count of this message boards category.
507            *
508            * @param messageCount the message count of this message boards category
509            */
510            @Override
511            public void setMessageCount(int messageCount) {
512                    _mbCategory.setMessageCount(messageCount);
513            }
514    
515            /**
516            * Returns the last post date of this message boards category.
517            *
518            * @return the last post date of this message boards category
519            */
520            @Override
521            public java.util.Date getLastPostDate() {
522                    return _mbCategory.getLastPostDate();
523            }
524    
525            /**
526            * Sets the last post date of this message boards category.
527            *
528            * @param lastPostDate the last post date of this message boards category
529            */
530            @Override
531            public void setLastPostDate(java.util.Date lastPostDate) {
532                    _mbCategory.setLastPostDate(lastPostDate);
533            }
534    
535            /**
536            * Returns the status of this message boards category.
537            *
538            * @return the status of this message boards category
539            */
540            @Override
541            public int getStatus() {
542                    return _mbCategory.getStatus();
543            }
544    
545            /**
546            * Sets the status of this message boards category.
547            *
548            * @param status the status of this message boards category
549            */
550            @Override
551            public void setStatus(int status) {
552                    _mbCategory.setStatus(status);
553            }
554    
555            /**
556            * Returns the status by user ID of this message boards category.
557            *
558            * @return the status by user ID of this message boards category
559            */
560            @Override
561            public long getStatusByUserId() {
562                    return _mbCategory.getStatusByUserId();
563            }
564    
565            /**
566            * Sets the status by user ID of this message boards category.
567            *
568            * @param statusByUserId the status by user ID of this message boards category
569            */
570            @Override
571            public void setStatusByUserId(long statusByUserId) {
572                    _mbCategory.setStatusByUserId(statusByUserId);
573            }
574    
575            /**
576            * Returns the status by user uuid of this message boards category.
577            *
578            * @return the status by user uuid of this message boards category
579            * @throws SystemException if a system exception occurred
580            */
581            @Override
582            public java.lang.String getStatusByUserUuid()
583                    throws com.liferay.portal.kernel.exception.SystemException {
584                    return _mbCategory.getStatusByUserUuid();
585            }
586    
587            /**
588            * Sets the status by user uuid of this message boards category.
589            *
590            * @param statusByUserUuid the status by user uuid of this message boards category
591            */
592            @Override
593            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
594                    _mbCategory.setStatusByUserUuid(statusByUserUuid);
595            }
596    
597            /**
598            * Returns the status by user name of this message boards category.
599            *
600            * @return the status by user name of this message boards category
601            */
602            @Override
603            public java.lang.String getStatusByUserName() {
604                    return _mbCategory.getStatusByUserName();
605            }
606    
607            /**
608            * Sets the status by user name of this message boards category.
609            *
610            * @param statusByUserName the status by user name of this message boards category
611            */
612            @Override
613            public void setStatusByUserName(java.lang.String statusByUserName) {
614                    _mbCategory.setStatusByUserName(statusByUserName);
615            }
616    
617            /**
618            * Returns the status date of this message boards category.
619            *
620            * @return the status date of this message boards category
621            */
622            @Override
623            public java.util.Date getStatusDate() {
624                    return _mbCategory.getStatusDate();
625            }
626    
627            /**
628            * Sets the status date of this message boards category.
629            *
630            * @param statusDate the status date of this message boards category
631            */
632            @Override
633            public void setStatusDate(java.util.Date statusDate) {
634                    _mbCategory.setStatusDate(statusDate);
635            }
636    
637            /**
638            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
639            */
640            @Override
641            public boolean getApproved() {
642                    return _mbCategory.getApproved();
643            }
644    
645            /**
646            * Returns <code>true</code> if this message boards category is approved.
647            *
648            * @return <code>true</code> if this message boards category is approved; <code>false</code> otherwise
649            */
650            @Override
651            public boolean isApproved() {
652                    return _mbCategory.isApproved();
653            }
654    
655            /**
656            * Returns <code>true</code> if this message boards category is denied.
657            *
658            * @return <code>true</code> if this message boards category is denied; <code>false</code> otherwise
659            */
660            @Override
661            public boolean isDenied() {
662                    return _mbCategory.isDenied();
663            }
664    
665            /**
666            * Returns <code>true</code> if this message boards category is a draft.
667            *
668            * @return <code>true</code> if this message boards category is a draft; <code>false</code> otherwise
669            */
670            @Override
671            public boolean isDraft() {
672                    return _mbCategory.isDraft();
673            }
674    
675            /**
676            * Returns <code>true</code> if this message boards category is expired.
677            *
678            * @return <code>true</code> if this message boards category is expired; <code>false</code> otherwise
679            */
680            @Override
681            public boolean isExpired() {
682                    return _mbCategory.isExpired();
683            }
684    
685            /**
686            * Returns <code>true</code> if this message boards category is inactive.
687            *
688            * @return <code>true</code> if this message boards category is inactive; <code>false</code> otherwise
689            */
690            @Override
691            public boolean isInactive() {
692                    return _mbCategory.isInactive();
693            }
694    
695            /**
696            * Returns <code>true</code> if this message boards category is incomplete.
697            *
698            * @return <code>true</code> if this message boards category is incomplete; <code>false</code> otherwise
699            */
700            @Override
701            public boolean isIncomplete() {
702                    return _mbCategory.isIncomplete();
703            }
704    
705            /**
706            * Returns <code>true</code> if this message boards category is in the Recycle Bin.
707            *
708            * @return <code>true</code> if this message boards category is in the Recycle Bin; <code>false</code> otherwise
709            */
710            @Override
711            public boolean isInTrash() {
712                    return _mbCategory.isInTrash();
713            }
714    
715            /**
716            * Returns <code>true</code> if this message boards category is pending.
717            *
718            * @return <code>true</code> if this message boards category is pending; <code>false</code> otherwise
719            */
720            @Override
721            public boolean isPending() {
722                    return _mbCategory.isPending();
723            }
724    
725            /**
726            * Returns <code>true</code> if this message boards category is scheduled.
727            *
728            * @return <code>true</code> if this message boards category is scheduled; <code>false</code> otherwise
729            */
730            @Override
731            public boolean isScheduled() {
732                    return _mbCategory.isScheduled();
733            }
734    
735            /**
736            * Returns the container model ID of this message boards category.
737            *
738            * @return the container model ID of this message boards category
739            */
740            @Override
741            public long getContainerModelId() {
742                    return _mbCategory.getContainerModelId();
743            }
744    
745            /**
746            * Sets the container model ID of this message boards category.
747            *
748            * @param container model ID of this message boards category
749            */
750            @Override
751            public void setContainerModelId(long containerModelId) {
752                    _mbCategory.setContainerModelId(containerModelId);
753            }
754    
755            /**
756            * Returns the container name of this message boards category.
757            *
758            * @return the container name of this message boards category
759            */
760            @Override
761            public java.lang.String getContainerModelName() {
762                    return _mbCategory.getContainerModelName();
763            }
764    
765            /**
766            * Returns the parent container model ID of this message boards category.
767            *
768            * @return the parent container model ID of this message boards category
769            */
770            @Override
771            public long getParentContainerModelId() {
772                    return _mbCategory.getParentContainerModelId();
773            }
774    
775            /**
776            * Sets the parent container model ID of this message boards category.
777            *
778            * @param parent container model ID of this message boards category
779            */
780            @Override
781            public void setParentContainerModelId(long parentContainerModelId) {
782                    _mbCategory.setParentContainerModelId(parentContainerModelId);
783            }
784    
785            @Override
786            public boolean isNew() {
787                    return _mbCategory.isNew();
788            }
789    
790            @Override
791            public void setNew(boolean n) {
792                    _mbCategory.setNew(n);
793            }
794    
795            @Override
796            public boolean isCachedModel() {
797                    return _mbCategory.isCachedModel();
798            }
799    
800            @Override
801            public void setCachedModel(boolean cachedModel) {
802                    _mbCategory.setCachedModel(cachedModel);
803            }
804    
805            @Override
806            public boolean isEscapedModel() {
807                    return _mbCategory.isEscapedModel();
808            }
809    
810            @Override
811            public java.io.Serializable getPrimaryKeyObj() {
812                    return _mbCategory.getPrimaryKeyObj();
813            }
814    
815            @Override
816            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
817                    _mbCategory.setPrimaryKeyObj(primaryKeyObj);
818            }
819    
820            @Override
821            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
822                    return _mbCategory.getExpandoBridge();
823            }
824    
825            @Override
826            public void setExpandoBridgeAttributes(
827                    com.liferay.portal.model.BaseModel<?> baseModel) {
828                    _mbCategory.setExpandoBridgeAttributes(baseModel);
829            }
830    
831            @Override
832            public void setExpandoBridgeAttributes(
833                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
834                    _mbCategory.setExpandoBridgeAttributes(expandoBridge);
835            }
836    
837            @Override
838            public void setExpandoBridgeAttributes(
839                    com.liferay.portal.service.ServiceContext serviceContext) {
840                    _mbCategory.setExpandoBridgeAttributes(serviceContext);
841            }
842    
843            @Override
844            public java.lang.Object clone() {
845                    return new MBCategoryWrapper((MBCategory)_mbCategory.clone());
846            }
847    
848            @Override
849            public int compareTo(
850                    com.liferay.portlet.messageboards.model.MBCategory mbCategory) {
851                    return _mbCategory.compareTo(mbCategory);
852            }
853    
854            @Override
855            public int hashCode() {
856                    return _mbCategory.hashCode();
857            }
858    
859            @Override
860            public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBCategory> toCacheModel() {
861                    return _mbCategory.toCacheModel();
862            }
863    
864            @Override
865            public com.liferay.portlet.messageboards.model.MBCategory toEscapedModel() {
866                    return new MBCategoryWrapper(_mbCategory.toEscapedModel());
867            }
868    
869            @Override
870            public com.liferay.portlet.messageboards.model.MBCategory toUnescapedModel() {
871                    return new MBCategoryWrapper(_mbCategory.toUnescapedModel());
872            }
873    
874            @Override
875            public java.lang.String toString() {
876                    return _mbCategory.toString();
877            }
878    
879            @Override
880            public java.lang.String toXmlString() {
881                    return _mbCategory.toXmlString();
882            }
883    
884            @Override
885            public void persist()
886                    throws com.liferay.portal.kernel.exception.SystemException {
887                    _mbCategory.persist();
888            }
889    
890            @Override
891            public java.util.List<java.lang.Long> getAncestorCategoryIds()
892                    throws com.liferay.portal.kernel.exception.PortalException,
893                            com.liferay.portal.kernel.exception.SystemException {
894                    return _mbCategory.getAncestorCategoryIds();
895            }
896    
897            @Override
898            public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getAncestors()
899                    throws com.liferay.portal.kernel.exception.PortalException,
900                            com.liferay.portal.kernel.exception.SystemException {
901                    return _mbCategory.getAncestors();
902            }
903    
904            @Override
905            public com.liferay.portlet.messageboards.model.MBCategory getParentCategory()
906                    throws com.liferay.portal.kernel.exception.PortalException,
907                            com.liferay.portal.kernel.exception.SystemException {
908                    return _mbCategory.getParentCategory();
909            }
910    
911            @Override
912            public com.liferay.portlet.messageboards.model.MBCategory getTrashContainer() {
913                    return _mbCategory.getTrashContainer();
914            }
915    
916            @Override
917            public boolean isInTrashContainer() {
918                    return _mbCategory.isInTrashContainer();
919            }
920    
921            @Override
922            public boolean isRoot() {
923                    return _mbCategory.isRoot();
924            }
925    
926            @Override
927            public boolean equals(Object obj) {
928                    if (this == obj) {
929                            return true;
930                    }
931    
932                    if (!(obj instanceof MBCategoryWrapper)) {
933                            return false;
934                    }
935    
936                    MBCategoryWrapper mbCategoryWrapper = (MBCategoryWrapper)obj;
937    
938                    if (Validator.equals(_mbCategory, mbCategoryWrapper._mbCategory)) {
939                            return true;
940                    }
941    
942                    return false;
943            }
944    
945            @Override
946            public StagedModelType getStagedModelType() {
947                    return _mbCategory.getStagedModelType();
948            }
949    
950            /**
951             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
952             */
953            public MBCategory getWrappedMBCategory() {
954                    return _mbCategory;
955            }
956    
957            @Override
958            public MBCategory getWrappedModel() {
959                    return _mbCategory;
960            }
961    
962            @Override
963            public void resetOriginalValues() {
964                    _mbCategory.resetOriginalValues();
965            }
966    
967            private MBCategory _mbCategory;
968    }