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 MBMessage}.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see MBMessage
032     * @generated
033     */
034    public class MBMessageWrapper implements MBMessage, ModelWrapper<MBMessage> {
035            public MBMessageWrapper(MBMessage mbMessage) {
036                    _mbMessage = mbMessage;
037            }
038    
039            @Override
040            public Class<?> getModelClass() {
041                    return MBMessage.class;
042            }
043    
044            @Override
045            public String getModelClassName() {
046                    return MBMessage.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("messageId", getMessageId());
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("classNameId", getClassNameId());
062                    attributes.put("classPK", getClassPK());
063                    attributes.put("categoryId", getCategoryId());
064                    attributes.put("threadId", getThreadId());
065                    attributes.put("rootMessageId", getRootMessageId());
066                    attributes.put("parentMessageId", getParentMessageId());
067                    attributes.put("subject", getSubject());
068                    attributes.put("body", getBody());
069                    attributes.put("format", getFormat());
070                    attributes.put("anonymous", getAnonymous());
071                    attributes.put("priority", getPriority());
072                    attributes.put("allowPingbacks", getAllowPingbacks());
073                    attributes.put("answer", getAnswer());
074                    attributes.put("status", getStatus());
075                    attributes.put("statusByUserId", getStatusByUserId());
076                    attributes.put("statusByUserName", getStatusByUserName());
077                    attributes.put("statusDate", getStatusDate());
078    
079                    return attributes;
080            }
081    
082            @Override
083            public void setModelAttributes(Map<String, Object> attributes) {
084                    String uuid = (String)attributes.get("uuid");
085    
086                    if (uuid != null) {
087                            setUuid(uuid);
088                    }
089    
090                    Long messageId = (Long)attributes.get("messageId");
091    
092                    if (messageId != null) {
093                            setMessageId(messageId);
094                    }
095    
096                    Long groupId = (Long)attributes.get("groupId");
097    
098                    if (groupId != null) {
099                            setGroupId(groupId);
100                    }
101    
102                    Long companyId = (Long)attributes.get("companyId");
103    
104                    if (companyId != null) {
105                            setCompanyId(companyId);
106                    }
107    
108                    Long userId = (Long)attributes.get("userId");
109    
110                    if (userId != null) {
111                            setUserId(userId);
112                    }
113    
114                    String userName = (String)attributes.get("userName");
115    
116                    if (userName != null) {
117                            setUserName(userName);
118                    }
119    
120                    Date createDate = (Date)attributes.get("createDate");
121    
122                    if (createDate != null) {
123                            setCreateDate(createDate);
124                    }
125    
126                    Date modifiedDate = (Date)attributes.get("modifiedDate");
127    
128                    if (modifiedDate != null) {
129                            setModifiedDate(modifiedDate);
130                    }
131    
132                    Long classNameId = (Long)attributes.get("classNameId");
133    
134                    if (classNameId != null) {
135                            setClassNameId(classNameId);
136                    }
137    
138                    Long classPK = (Long)attributes.get("classPK");
139    
140                    if (classPK != null) {
141                            setClassPK(classPK);
142                    }
143    
144                    Long categoryId = (Long)attributes.get("categoryId");
145    
146                    if (categoryId != null) {
147                            setCategoryId(categoryId);
148                    }
149    
150                    Long threadId = (Long)attributes.get("threadId");
151    
152                    if (threadId != null) {
153                            setThreadId(threadId);
154                    }
155    
156                    Long rootMessageId = (Long)attributes.get("rootMessageId");
157    
158                    if (rootMessageId != null) {
159                            setRootMessageId(rootMessageId);
160                    }
161    
162                    Long parentMessageId = (Long)attributes.get("parentMessageId");
163    
164                    if (parentMessageId != null) {
165                            setParentMessageId(parentMessageId);
166                    }
167    
168                    String subject = (String)attributes.get("subject");
169    
170                    if (subject != null) {
171                            setSubject(subject);
172                    }
173    
174                    String body = (String)attributes.get("body");
175    
176                    if (body != null) {
177                            setBody(body);
178                    }
179    
180                    String format = (String)attributes.get("format");
181    
182                    if (format != null) {
183                            setFormat(format);
184                    }
185    
186                    Boolean anonymous = (Boolean)attributes.get("anonymous");
187    
188                    if (anonymous != null) {
189                            setAnonymous(anonymous);
190                    }
191    
192                    Double priority = (Double)attributes.get("priority");
193    
194                    if (priority != null) {
195                            setPriority(priority);
196                    }
197    
198                    Boolean allowPingbacks = (Boolean)attributes.get("allowPingbacks");
199    
200                    if (allowPingbacks != null) {
201                            setAllowPingbacks(allowPingbacks);
202                    }
203    
204                    Boolean answer = (Boolean)attributes.get("answer");
205    
206                    if (answer != null) {
207                            setAnswer(answer);
208                    }
209    
210                    Integer status = (Integer)attributes.get("status");
211    
212                    if (status != null) {
213                            setStatus(status);
214                    }
215    
216                    Long statusByUserId = (Long)attributes.get("statusByUserId");
217    
218                    if (statusByUserId != null) {
219                            setStatusByUserId(statusByUserId);
220                    }
221    
222                    String statusByUserName = (String)attributes.get("statusByUserName");
223    
224                    if (statusByUserName != null) {
225                            setStatusByUserName(statusByUserName);
226                    }
227    
228                    Date statusDate = (Date)attributes.get("statusDate");
229    
230                    if (statusDate != null) {
231                            setStatusDate(statusDate);
232                    }
233            }
234    
235            /**
236            * Returns the primary key of this message-boards message.
237            *
238            * @return the primary key of this message-boards message
239            */
240            @Override
241            public long getPrimaryKey() {
242                    return _mbMessage.getPrimaryKey();
243            }
244    
245            /**
246            * Sets the primary key of this message-boards message.
247            *
248            * @param primaryKey the primary key of this message-boards message
249            */
250            @Override
251            public void setPrimaryKey(long primaryKey) {
252                    _mbMessage.setPrimaryKey(primaryKey);
253            }
254    
255            /**
256            * Returns the uuid of this message-boards message.
257            *
258            * @return the uuid of this message-boards message
259            */
260            @Override
261            public java.lang.String getUuid() {
262                    return _mbMessage.getUuid();
263            }
264    
265            /**
266            * Sets the uuid of this message-boards message.
267            *
268            * @param uuid the uuid of this message-boards message
269            */
270            @Override
271            public void setUuid(java.lang.String uuid) {
272                    _mbMessage.setUuid(uuid);
273            }
274    
275            /**
276            * Returns the message ID of this message-boards message.
277            *
278            * @return the message ID of this message-boards message
279            */
280            @Override
281            public long getMessageId() {
282                    return _mbMessage.getMessageId();
283            }
284    
285            /**
286            * Sets the message ID of this message-boards message.
287            *
288            * @param messageId the message ID of this message-boards message
289            */
290            @Override
291            public void setMessageId(long messageId) {
292                    _mbMessage.setMessageId(messageId);
293            }
294    
295            /**
296            * Returns the group ID of this message-boards message.
297            *
298            * @return the group ID of this message-boards message
299            */
300            @Override
301            public long getGroupId() {
302                    return _mbMessage.getGroupId();
303            }
304    
305            /**
306            * Sets the group ID of this message-boards message.
307            *
308            * @param groupId the group ID of this message-boards message
309            */
310            @Override
311            public void setGroupId(long groupId) {
312                    _mbMessage.setGroupId(groupId);
313            }
314    
315            /**
316            * Returns the company ID of this message-boards message.
317            *
318            * @return the company ID of this message-boards message
319            */
320            @Override
321            public long getCompanyId() {
322                    return _mbMessage.getCompanyId();
323            }
324    
325            /**
326            * Sets the company ID of this message-boards message.
327            *
328            * @param companyId the company ID of this message-boards message
329            */
330            @Override
331            public void setCompanyId(long companyId) {
332                    _mbMessage.setCompanyId(companyId);
333            }
334    
335            /**
336            * Returns the user ID of this message-boards message.
337            *
338            * @return the user ID of this message-boards message
339            */
340            @Override
341            public long getUserId() {
342                    return _mbMessage.getUserId();
343            }
344    
345            /**
346            * Sets the user ID of this message-boards message.
347            *
348            * @param userId the user ID of this message-boards message
349            */
350            @Override
351            public void setUserId(long userId) {
352                    _mbMessage.setUserId(userId);
353            }
354    
355            /**
356            * Returns the user uuid of this message-boards message.
357            *
358            * @return the user uuid of this message-boards message
359            * @throws SystemException if a system exception occurred
360            */
361            @Override
362            public java.lang.String getUserUuid()
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _mbMessage.getUserUuid();
365            }
366    
367            /**
368            * Sets the user uuid of this message-boards message.
369            *
370            * @param userUuid the user uuid of this message-boards message
371            */
372            @Override
373            public void setUserUuid(java.lang.String userUuid) {
374                    _mbMessage.setUserUuid(userUuid);
375            }
376    
377            /**
378            * Returns the user name of this message-boards message.
379            *
380            * @return the user name of this message-boards message
381            */
382            @Override
383            public java.lang.String getUserName() {
384                    return _mbMessage.getUserName();
385            }
386    
387            /**
388            * Sets the user name of this message-boards message.
389            *
390            * @param userName the user name of this message-boards message
391            */
392            @Override
393            public void setUserName(java.lang.String userName) {
394                    _mbMessage.setUserName(userName);
395            }
396    
397            /**
398            * Returns the create date of this message-boards message.
399            *
400            * @return the create date of this message-boards message
401            */
402            @Override
403            public java.util.Date getCreateDate() {
404                    return _mbMessage.getCreateDate();
405            }
406    
407            /**
408            * Sets the create date of this message-boards message.
409            *
410            * @param createDate the create date of this message-boards message
411            */
412            @Override
413            public void setCreateDate(java.util.Date createDate) {
414                    _mbMessage.setCreateDate(createDate);
415            }
416    
417            /**
418            * Returns the modified date of this message-boards message.
419            *
420            * @return the modified date of this message-boards message
421            */
422            @Override
423            public java.util.Date getModifiedDate() {
424                    return _mbMessage.getModifiedDate();
425            }
426    
427            /**
428            * Sets the modified date of this message-boards message.
429            *
430            * @param modifiedDate the modified date of this message-boards message
431            */
432            @Override
433            public void setModifiedDate(java.util.Date modifiedDate) {
434                    _mbMessage.setModifiedDate(modifiedDate);
435            }
436    
437            /**
438            * Returns the fully qualified class name of this message-boards message.
439            *
440            * @return the fully qualified class name of this message-boards message
441            */
442            @Override
443            public java.lang.String getClassName() {
444                    return _mbMessage.getClassName();
445            }
446    
447            @Override
448            public void setClassName(java.lang.String className) {
449                    _mbMessage.setClassName(className);
450            }
451    
452            /**
453            * Returns the class name ID of this message-boards message.
454            *
455            * @return the class name ID of this message-boards message
456            */
457            @Override
458            public long getClassNameId() {
459                    return _mbMessage.getClassNameId();
460            }
461    
462            /**
463            * Sets the class name ID of this message-boards message.
464            *
465            * @param classNameId the class name ID of this message-boards message
466            */
467            @Override
468            public void setClassNameId(long classNameId) {
469                    _mbMessage.setClassNameId(classNameId);
470            }
471    
472            /**
473            * Returns the class p k of this message-boards message.
474            *
475            * @return the class p k of this message-boards message
476            */
477            @Override
478            public long getClassPK() {
479                    return _mbMessage.getClassPK();
480            }
481    
482            /**
483            * Sets the class p k of this message-boards message.
484            *
485            * @param classPK the class p k of this message-boards message
486            */
487            @Override
488            public void setClassPK(long classPK) {
489                    _mbMessage.setClassPK(classPK);
490            }
491    
492            /**
493            * Returns the category ID of this message-boards message.
494            *
495            * @return the category ID of this message-boards message
496            */
497            @Override
498            public long getCategoryId() {
499                    return _mbMessage.getCategoryId();
500            }
501    
502            /**
503            * Sets the category ID of this message-boards message.
504            *
505            * @param categoryId the category ID of this message-boards message
506            */
507            @Override
508            public void setCategoryId(long categoryId) {
509                    _mbMessage.setCategoryId(categoryId);
510            }
511    
512            /**
513            * Returns the thread ID of this message-boards message.
514            *
515            * @return the thread ID of this message-boards message
516            */
517            @Override
518            public long getThreadId() {
519                    return _mbMessage.getThreadId();
520            }
521    
522            /**
523            * Sets the thread ID of this message-boards message.
524            *
525            * @param threadId the thread ID of this message-boards message
526            */
527            @Override
528            public void setThreadId(long threadId) {
529                    _mbMessage.setThreadId(threadId);
530            }
531    
532            /**
533            * Returns the root message ID of this message-boards message.
534            *
535            * @return the root message ID of this message-boards message
536            */
537            @Override
538            public long getRootMessageId() {
539                    return _mbMessage.getRootMessageId();
540            }
541    
542            /**
543            * Sets the root message ID of this message-boards message.
544            *
545            * @param rootMessageId the root message ID of this message-boards message
546            */
547            @Override
548            public void setRootMessageId(long rootMessageId) {
549                    _mbMessage.setRootMessageId(rootMessageId);
550            }
551    
552            /**
553            * Returns the parent message ID of this message-boards message.
554            *
555            * @return the parent message ID of this message-boards message
556            */
557            @Override
558            public long getParentMessageId() {
559                    return _mbMessage.getParentMessageId();
560            }
561    
562            /**
563            * Sets the parent message ID of this message-boards message.
564            *
565            * @param parentMessageId the parent message ID of this message-boards message
566            */
567            @Override
568            public void setParentMessageId(long parentMessageId) {
569                    _mbMessage.setParentMessageId(parentMessageId);
570            }
571    
572            /**
573            * Returns the subject of this message-boards message.
574            *
575            * @return the subject of this message-boards message
576            */
577            @Override
578            public java.lang.String getSubject() {
579                    return _mbMessage.getSubject();
580            }
581    
582            /**
583            * Sets the subject of this message-boards message.
584            *
585            * @param subject the subject of this message-boards message
586            */
587            @Override
588            public void setSubject(java.lang.String subject) {
589                    _mbMessage.setSubject(subject);
590            }
591    
592            /**
593            * Returns the body of this message-boards message.
594            *
595            * @return the body of this message-boards message
596            */
597            @Override
598            public java.lang.String getBody() {
599                    return _mbMessage.getBody();
600            }
601    
602            /**
603            * Sets the body of this message-boards message.
604            *
605            * @param body the body of this message-boards message
606            */
607            @Override
608            public void setBody(java.lang.String body) {
609                    _mbMessage.setBody(body);
610            }
611    
612            /**
613            * Returns the format of this message-boards message.
614            *
615            * @return the format of this message-boards message
616            */
617            @Override
618            public java.lang.String getFormat() {
619                    return _mbMessage.getFormat();
620            }
621    
622            /**
623            * Sets the format of this message-boards message.
624            *
625            * @param format the format of this message-boards message
626            */
627            @Override
628            public void setFormat(java.lang.String format) {
629                    _mbMessage.setFormat(format);
630            }
631    
632            /**
633            * Returns the anonymous of this message-boards message.
634            *
635            * @return the anonymous of this message-boards message
636            */
637            @Override
638            public boolean getAnonymous() {
639                    return _mbMessage.getAnonymous();
640            }
641    
642            /**
643            * Returns <code>true</code> if this message-boards message is anonymous.
644            *
645            * @return <code>true</code> if this message-boards message is anonymous; <code>false</code> otherwise
646            */
647            @Override
648            public boolean isAnonymous() {
649                    return _mbMessage.isAnonymous();
650            }
651    
652            /**
653            * Sets whether this message-boards message is anonymous.
654            *
655            * @param anonymous the anonymous of this message-boards message
656            */
657            @Override
658            public void setAnonymous(boolean anonymous) {
659                    _mbMessage.setAnonymous(anonymous);
660            }
661    
662            /**
663            * Returns the priority of this message-boards message.
664            *
665            * @return the priority of this message-boards message
666            */
667            @Override
668            public double getPriority() {
669                    return _mbMessage.getPriority();
670            }
671    
672            /**
673            * Sets the priority of this message-boards message.
674            *
675            * @param priority the priority of this message-boards message
676            */
677            @Override
678            public void setPriority(double priority) {
679                    _mbMessage.setPriority(priority);
680            }
681    
682            /**
683            * Returns the allow pingbacks of this message-boards message.
684            *
685            * @return the allow pingbacks of this message-boards message
686            */
687            @Override
688            public boolean getAllowPingbacks() {
689                    return _mbMessage.getAllowPingbacks();
690            }
691    
692            /**
693            * Returns <code>true</code> if this message-boards message is allow pingbacks.
694            *
695            * @return <code>true</code> if this message-boards message is allow pingbacks; <code>false</code> otherwise
696            */
697            @Override
698            public boolean isAllowPingbacks() {
699                    return _mbMessage.isAllowPingbacks();
700            }
701    
702            /**
703            * Sets whether this message-boards message is allow pingbacks.
704            *
705            * @param allowPingbacks the allow pingbacks of this message-boards message
706            */
707            @Override
708            public void setAllowPingbacks(boolean allowPingbacks) {
709                    _mbMessage.setAllowPingbacks(allowPingbacks);
710            }
711    
712            /**
713            * Returns the answer of this message-boards message.
714            *
715            * @return the answer of this message-boards message
716            */
717            @Override
718            public boolean getAnswer() {
719                    return _mbMessage.getAnswer();
720            }
721    
722            /**
723            * Returns <code>true</code> if this message-boards message is answer.
724            *
725            * @return <code>true</code> if this message-boards message is answer; <code>false</code> otherwise
726            */
727            @Override
728            public boolean isAnswer() {
729                    return _mbMessage.isAnswer();
730            }
731    
732            /**
733            * Sets whether this message-boards message is answer.
734            *
735            * @param answer the answer of this message-boards message
736            */
737            @Override
738            public void setAnswer(boolean answer) {
739                    _mbMessage.setAnswer(answer);
740            }
741    
742            /**
743            * Returns the status of this message-boards message.
744            *
745            * @return the status of this message-boards message
746            */
747            @Override
748            public int getStatus() {
749                    return _mbMessage.getStatus();
750            }
751    
752            /**
753            * Sets the status of this message-boards message.
754            *
755            * @param status the status of this message-boards message
756            */
757            @Override
758            public void setStatus(int status) {
759                    _mbMessage.setStatus(status);
760            }
761    
762            /**
763            * Returns the status by user ID of this message-boards message.
764            *
765            * @return the status by user ID of this message-boards message
766            */
767            @Override
768            public long getStatusByUserId() {
769                    return _mbMessage.getStatusByUserId();
770            }
771    
772            /**
773            * Sets the status by user ID of this message-boards message.
774            *
775            * @param statusByUserId the status by user ID of this message-boards message
776            */
777            @Override
778            public void setStatusByUserId(long statusByUserId) {
779                    _mbMessage.setStatusByUserId(statusByUserId);
780            }
781    
782            /**
783            * Returns the status by user uuid of this message-boards message.
784            *
785            * @return the status by user uuid of this message-boards message
786            * @throws SystemException if a system exception occurred
787            */
788            @Override
789            public java.lang.String getStatusByUserUuid()
790                    throws com.liferay.portal.kernel.exception.SystemException {
791                    return _mbMessage.getStatusByUserUuid();
792            }
793    
794            /**
795            * Sets the status by user uuid of this message-boards message.
796            *
797            * @param statusByUserUuid the status by user uuid of this message-boards message
798            */
799            @Override
800            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
801                    _mbMessage.setStatusByUserUuid(statusByUserUuid);
802            }
803    
804            /**
805            * Returns the status by user name of this message-boards message.
806            *
807            * @return the status by user name of this message-boards message
808            */
809            @Override
810            public java.lang.String getStatusByUserName() {
811                    return _mbMessage.getStatusByUserName();
812            }
813    
814            /**
815            * Sets the status by user name of this message-boards message.
816            *
817            * @param statusByUserName the status by user name of this message-boards message
818            */
819            @Override
820            public void setStatusByUserName(java.lang.String statusByUserName) {
821                    _mbMessage.setStatusByUserName(statusByUserName);
822            }
823    
824            /**
825            * Returns the status date of this message-boards message.
826            *
827            * @return the status date of this message-boards message
828            */
829            @Override
830            public java.util.Date getStatusDate() {
831                    return _mbMessage.getStatusDate();
832            }
833    
834            /**
835            * Sets the status date of this message-boards message.
836            *
837            * @param statusDate the status date of this message-boards message
838            */
839            @Override
840            public void setStatusDate(java.util.Date statusDate) {
841                    _mbMessage.setStatusDate(statusDate);
842            }
843    
844            /**
845            * Returns the trash entry created when this message-boards message was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this message-boards message.
846            *
847            * @return the trash entry created when this message-boards message was moved to the Recycle Bin
848            * @throws SystemException if a system exception occurred
849            */
850            @Override
851            public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
852                    throws com.liferay.portal.kernel.exception.PortalException,
853                            com.liferay.portal.kernel.exception.SystemException {
854                    return _mbMessage.getTrashEntry();
855            }
856    
857            /**
858            * Returns the class primary key of the trash entry for this message-boards message.
859            *
860            * @return the class primary key of the trash entry for this message-boards message
861            */
862            @Override
863            public long getTrashEntryClassPK() {
864                    return _mbMessage.getTrashEntryClassPK();
865            }
866    
867            /**
868            * Returns the trash handler for this message-boards message.
869            *
870            * @return the trash handler for this message-boards message
871            */
872            @Override
873            public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
874                    return _mbMessage.getTrashHandler();
875            }
876    
877            /**
878            * Returns <code>true</code> if this message-boards message is in the Recycle Bin.
879            *
880            * @return <code>true</code> if this message-boards message is in the Recycle Bin; <code>false</code> otherwise
881            */
882            @Override
883            public boolean isInTrash() {
884                    return _mbMessage.isInTrash();
885            }
886    
887            /**
888            * Returns <code>true</code> if the parent of this message-boards message is in the Recycle Bin.
889            *
890            * @return <code>true</code> if the parent of this message-boards message is in the Recycle Bin; <code>false</code> otherwise
891            * @throws SystemException if a system exception occurred
892            */
893            @Override
894            public boolean isInTrashContainer() {
895                    return _mbMessage.isInTrashContainer();
896            }
897    
898            /**
899            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
900            */
901            @Override
902            public boolean getApproved() {
903                    return _mbMessage.getApproved();
904            }
905    
906            /**
907            * Returns <code>true</code> if this message-boards message is approved.
908            *
909            * @return <code>true</code> if this message-boards message is approved; <code>false</code> otherwise
910            */
911            @Override
912            public boolean isApproved() {
913                    return _mbMessage.isApproved();
914            }
915    
916            /**
917            * Returns <code>true</code> if this message-boards message is denied.
918            *
919            * @return <code>true</code> if this message-boards message is denied; <code>false</code> otherwise
920            */
921            @Override
922            public boolean isDenied() {
923                    return _mbMessage.isDenied();
924            }
925    
926            /**
927            * Returns <code>true</code> if this message-boards message is a draft.
928            *
929            * @return <code>true</code> if this message-boards message is a draft; <code>false</code> otherwise
930            */
931            @Override
932            public boolean isDraft() {
933                    return _mbMessage.isDraft();
934            }
935    
936            /**
937            * Returns <code>true</code> if this message-boards message is expired.
938            *
939            * @return <code>true</code> if this message-boards message is expired; <code>false</code> otherwise
940            */
941            @Override
942            public boolean isExpired() {
943                    return _mbMessage.isExpired();
944            }
945    
946            /**
947            * Returns <code>true</code> if this message-boards message is inactive.
948            *
949            * @return <code>true</code> if this message-boards message is inactive; <code>false</code> otherwise
950            */
951            @Override
952            public boolean isInactive() {
953                    return _mbMessage.isInactive();
954            }
955    
956            /**
957            * Returns <code>true</code> if this message-boards message is incomplete.
958            *
959            * @return <code>true</code> if this message-boards message is incomplete; <code>false</code> otherwise
960            */
961            @Override
962            public boolean isIncomplete() {
963                    return _mbMessage.isIncomplete();
964            }
965    
966            /**
967            * Returns <code>true</code> if this message-boards message is pending.
968            *
969            * @return <code>true</code> if this message-boards message is pending; <code>false</code> otherwise
970            */
971            @Override
972            public boolean isPending() {
973                    return _mbMessage.isPending();
974            }
975    
976            /**
977            * Returns <code>true</code> if this message-boards message is scheduled.
978            *
979            * @return <code>true</code> if this message-boards message is scheduled; <code>false</code> otherwise
980            */
981            @Override
982            public boolean isScheduled() {
983                    return _mbMessage.isScheduled();
984            }
985    
986            @Override
987            public boolean isNew() {
988                    return _mbMessage.isNew();
989            }
990    
991            @Override
992            public void setNew(boolean n) {
993                    _mbMessage.setNew(n);
994            }
995    
996            @Override
997            public boolean isCachedModel() {
998                    return _mbMessage.isCachedModel();
999            }
1000    
1001            @Override
1002            public void setCachedModel(boolean cachedModel) {
1003                    _mbMessage.setCachedModel(cachedModel);
1004            }
1005    
1006            @Override
1007            public boolean isEscapedModel() {
1008                    return _mbMessage.isEscapedModel();
1009            }
1010    
1011            @Override
1012            public java.io.Serializable getPrimaryKeyObj() {
1013                    return _mbMessage.getPrimaryKeyObj();
1014            }
1015    
1016            @Override
1017            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1018                    _mbMessage.setPrimaryKeyObj(primaryKeyObj);
1019            }
1020    
1021            @Override
1022            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1023                    return _mbMessage.getExpandoBridge();
1024            }
1025    
1026            @Override
1027            public void setExpandoBridgeAttributes(
1028                    com.liferay.portal.model.BaseModel<?> baseModel) {
1029                    _mbMessage.setExpandoBridgeAttributes(baseModel);
1030            }
1031    
1032            @Override
1033            public void setExpandoBridgeAttributes(
1034                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
1035                    _mbMessage.setExpandoBridgeAttributes(expandoBridge);
1036            }
1037    
1038            @Override
1039            public void setExpandoBridgeAttributes(
1040                    com.liferay.portal.service.ServiceContext serviceContext) {
1041                    _mbMessage.setExpandoBridgeAttributes(serviceContext);
1042            }
1043    
1044            @Override
1045            public java.lang.Object clone() {
1046                    return new MBMessageWrapper((MBMessage)_mbMessage.clone());
1047            }
1048    
1049            @Override
1050            public int compareTo(
1051                    com.liferay.portlet.messageboards.model.MBMessage mbMessage) {
1052                    return _mbMessage.compareTo(mbMessage);
1053            }
1054    
1055            @Override
1056            public int hashCode() {
1057                    return _mbMessage.hashCode();
1058            }
1059    
1060            @Override
1061            public com.liferay.portal.model.CacheModel<com.liferay.portlet.messageboards.model.MBMessage> toCacheModel() {
1062                    return _mbMessage.toCacheModel();
1063            }
1064    
1065            @Override
1066            public com.liferay.portlet.messageboards.model.MBMessage toEscapedModel() {
1067                    return new MBMessageWrapper(_mbMessage.toEscapedModel());
1068            }
1069    
1070            @Override
1071            public com.liferay.portlet.messageboards.model.MBMessage toUnescapedModel() {
1072                    return new MBMessageWrapper(_mbMessage.toUnescapedModel());
1073            }
1074    
1075            @Override
1076            public java.lang.String toString() {
1077                    return _mbMessage.toString();
1078            }
1079    
1080            @Override
1081            public java.lang.String toXmlString() {
1082                    return _mbMessage.toXmlString();
1083            }
1084    
1085            @Override
1086            public void persist()
1087                    throws com.liferay.portal.kernel.exception.SystemException {
1088                    _mbMessage.persist();
1089            }
1090    
1091            @Override
1092            public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder()
1093                    throws com.liferay.portal.kernel.exception.PortalException,
1094                            com.liferay.portal.kernel.exception.SystemException {
1095                    return _mbMessage.addAttachmentsFolder();
1096            }
1097    
1098            @Override
1099            public java.lang.String[] getAssetTagNames()
1100                    throws com.liferay.portal.kernel.exception.SystemException {
1101                    return _mbMessage.getAssetTagNames();
1102            }
1103    
1104            @Override
1105            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries()
1106                    throws com.liferay.portal.kernel.exception.PortalException,
1107                            com.liferay.portal.kernel.exception.SystemException {
1108                    return _mbMessage.getAttachmentsFileEntries();
1109            }
1110    
1111            @Override
1112            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries(
1113                    int start, int end)
1114                    throws com.liferay.portal.kernel.exception.PortalException,
1115                            com.liferay.portal.kernel.exception.SystemException {
1116                    return _mbMessage.getAttachmentsFileEntries(start, end);
1117            }
1118    
1119            @Override
1120            public int getAttachmentsFileEntriesCount()
1121                    throws com.liferay.portal.kernel.exception.PortalException,
1122                            com.liferay.portal.kernel.exception.SystemException {
1123                    return _mbMessage.getAttachmentsFileEntriesCount();
1124            }
1125    
1126            @Override
1127            public long getAttachmentsFolderId()
1128                    throws com.liferay.portal.kernel.exception.PortalException,
1129                            com.liferay.portal.kernel.exception.SystemException {
1130                    return _mbMessage.getAttachmentsFolderId();
1131            }
1132    
1133            @Override
1134            public java.lang.String getBody(boolean translate) {
1135                    return _mbMessage.getBody(translate);
1136            }
1137    
1138            @Override
1139            public com.liferay.portlet.messageboards.model.MBCategory getCategory()
1140                    throws com.liferay.portal.kernel.exception.PortalException,
1141                            com.liferay.portal.kernel.exception.SystemException {
1142                    return _mbMessage.getCategory();
1143            }
1144    
1145            @Override
1146            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFileEntries()
1147                    throws com.liferay.portal.kernel.exception.PortalException,
1148                            com.liferay.portal.kernel.exception.SystemException {
1149                    return _mbMessage.getDeletedAttachmentsFileEntries();
1150            }
1151    
1152            @Override
1153            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFileEntries(
1154                    int start, int end)
1155                    throws com.liferay.portal.kernel.exception.PortalException,
1156                            com.liferay.portal.kernel.exception.SystemException {
1157                    return _mbMessage.getDeletedAttachmentsFileEntries(start, end);
1158            }
1159    
1160            @Override
1161            public int getDeletedAttachmentsFileEntriesCount()
1162                    throws com.liferay.portal.kernel.exception.PortalException,
1163                            com.liferay.portal.kernel.exception.SystemException {
1164                    return _mbMessage.getDeletedAttachmentsFileEntriesCount();
1165            }
1166    
1167            @Override
1168            public com.liferay.portlet.messageboards.model.MBThread getThread()
1169                    throws com.liferay.portal.kernel.exception.PortalException,
1170                            com.liferay.portal.kernel.exception.SystemException {
1171                    return _mbMessage.getThread();
1172            }
1173    
1174            @Override
1175            public long getThreadAttachmentsFolderId()
1176                    throws com.liferay.portal.kernel.exception.PortalException,
1177                            com.liferay.portal.kernel.exception.SystemException {
1178                    return _mbMessage.getThreadAttachmentsFolderId();
1179            }
1180    
1181            @Override
1182            public java.lang.String getWorkflowClassName() {
1183                    return _mbMessage.getWorkflowClassName();
1184            }
1185    
1186            @Override
1187            public boolean isDiscussion() {
1188                    return _mbMessage.isDiscussion();
1189            }
1190    
1191            @Override
1192            public boolean isFormatBBCode() {
1193                    return _mbMessage.isFormatBBCode();
1194            }
1195    
1196            @Override
1197            public boolean isReply() {
1198                    return _mbMessage.isReply();
1199            }
1200    
1201            @Override
1202            public boolean isRoot() {
1203                    return _mbMessage.isRoot();
1204            }
1205    
1206            @Override
1207            public void setAttachmentsFolderId(long attachmentsFolderId) {
1208                    _mbMessage.setAttachmentsFolderId(attachmentsFolderId);
1209            }
1210    
1211            @Override
1212            public boolean equals(Object obj) {
1213                    if (this == obj) {
1214                            return true;
1215                    }
1216    
1217                    if (!(obj instanceof MBMessageWrapper)) {
1218                            return false;
1219                    }
1220    
1221                    MBMessageWrapper mbMessageWrapper = (MBMessageWrapper)obj;
1222    
1223                    if (Validator.equals(_mbMessage, mbMessageWrapper._mbMessage)) {
1224                            return true;
1225                    }
1226    
1227                    return false;
1228            }
1229    
1230            @Override
1231            public StagedModelType getStagedModelType() {
1232                    return _mbMessage.getStagedModelType();
1233            }
1234    
1235            /**
1236             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1237             */
1238            public MBMessage getWrappedMBMessage() {
1239                    return _mbMessage;
1240            }
1241    
1242            @Override
1243            public MBMessage getWrappedModel() {
1244                    return _mbMessage;
1245            }
1246    
1247            @Override
1248            public void resetOriginalValues() {
1249                    _mbMessage.resetOriginalValues();
1250            }
1251    
1252            private MBMessage _mbMessage;
1253    }