001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.messageboards.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link MBMessage}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       MBMessage
024     * @generated
025     */
026    public class MBMessageWrapper implements MBMessage {
027            public MBMessageWrapper(MBMessage mbMessage) {
028                    _mbMessage = mbMessage;
029            }
030    
031            /**
032            * Gets the primary key of this message-boards message.
033            *
034            * @return the primary key of this message-boards message
035            */
036            public long getPrimaryKey() {
037                    return _mbMessage.getPrimaryKey();
038            }
039    
040            /**
041            * Sets the primary key of this message-boards message
042            *
043            * @param pk the primary key of this message-boards message
044            */
045            public void setPrimaryKey(long pk) {
046                    _mbMessage.setPrimaryKey(pk);
047            }
048    
049            /**
050            * Gets the uuid of this message-boards message.
051            *
052            * @return the uuid of this message-boards message
053            */
054            public java.lang.String getUuid() {
055                    return _mbMessage.getUuid();
056            }
057    
058            /**
059            * Sets the uuid of this message-boards message.
060            *
061            * @param uuid the uuid of this message-boards message
062            */
063            public void setUuid(java.lang.String uuid) {
064                    _mbMessage.setUuid(uuid);
065            }
066    
067            /**
068            * Gets the message id of this message-boards message.
069            *
070            * @return the message id of this message-boards message
071            */
072            public long getMessageId() {
073                    return _mbMessage.getMessageId();
074            }
075    
076            /**
077            * Sets the message id of this message-boards message.
078            *
079            * @param messageId the message id of this message-boards message
080            */
081            public void setMessageId(long messageId) {
082                    _mbMessage.setMessageId(messageId);
083            }
084    
085            /**
086            * Gets the group id of this message-boards message.
087            *
088            * @return the group id of this message-boards message
089            */
090            public long getGroupId() {
091                    return _mbMessage.getGroupId();
092            }
093    
094            /**
095            * Sets the group id of this message-boards message.
096            *
097            * @param groupId the group id of this message-boards message
098            */
099            public void setGroupId(long groupId) {
100                    _mbMessage.setGroupId(groupId);
101            }
102    
103            /**
104            * Gets the company id of this message-boards message.
105            *
106            * @return the company id of this message-boards message
107            */
108            public long getCompanyId() {
109                    return _mbMessage.getCompanyId();
110            }
111    
112            /**
113            * Sets the company id of this message-boards message.
114            *
115            * @param companyId the company id of this message-boards message
116            */
117            public void setCompanyId(long companyId) {
118                    _mbMessage.setCompanyId(companyId);
119            }
120    
121            /**
122            * Gets the user id of this message-boards message.
123            *
124            * @return the user id of this message-boards message
125            */
126            public long getUserId() {
127                    return _mbMessage.getUserId();
128            }
129    
130            /**
131            * Sets the user id of this message-boards message.
132            *
133            * @param userId the user id of this message-boards message
134            */
135            public void setUserId(long userId) {
136                    _mbMessage.setUserId(userId);
137            }
138    
139            /**
140            * Gets the user uuid of this message-boards message.
141            *
142            * @return the user uuid of this message-boards message
143            * @throws SystemException if a system exception occurred
144            */
145            public java.lang.String getUserUuid()
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return _mbMessage.getUserUuid();
148            }
149    
150            /**
151            * Sets the user uuid of this message-boards message.
152            *
153            * @param userUuid the user uuid of this message-boards message
154            */
155            public void setUserUuid(java.lang.String userUuid) {
156                    _mbMessage.setUserUuid(userUuid);
157            }
158    
159            /**
160            * Gets the user name of this message-boards message.
161            *
162            * @return the user name of this message-boards message
163            */
164            public java.lang.String getUserName() {
165                    return _mbMessage.getUserName();
166            }
167    
168            /**
169            * Sets the user name of this message-boards message.
170            *
171            * @param userName the user name of this message-boards message
172            */
173            public void setUserName(java.lang.String userName) {
174                    _mbMessage.setUserName(userName);
175            }
176    
177            /**
178            * Gets the create date of this message-boards message.
179            *
180            * @return the create date of this message-boards message
181            */
182            public java.util.Date getCreateDate() {
183                    return _mbMessage.getCreateDate();
184            }
185    
186            /**
187            * Sets the create date of this message-boards message.
188            *
189            * @param createDate the create date of this message-boards message
190            */
191            public void setCreateDate(java.util.Date createDate) {
192                    _mbMessage.setCreateDate(createDate);
193            }
194    
195            /**
196            * Gets the modified date of this message-boards message.
197            *
198            * @return the modified date of this message-boards message
199            */
200            public java.util.Date getModifiedDate() {
201                    return _mbMessage.getModifiedDate();
202            }
203    
204            /**
205            * Sets the modified date of this message-boards message.
206            *
207            * @param modifiedDate the modified date of this message-boards message
208            */
209            public void setModifiedDate(java.util.Date modifiedDate) {
210                    _mbMessage.setModifiedDate(modifiedDate);
211            }
212    
213            /**
214            * Gets the class name of the model instance this message-boards message is polymorphically associated with.
215            *
216            * @return the class name of the model instance this message-boards message is polymorphically associated with
217            */
218            public java.lang.String getClassName() {
219                    return _mbMessage.getClassName();
220            }
221    
222            /**
223            * Gets the class name id of this message-boards message.
224            *
225            * @return the class name id of this message-boards message
226            */
227            public long getClassNameId() {
228                    return _mbMessage.getClassNameId();
229            }
230    
231            /**
232            * Sets the class name id of this message-boards message.
233            *
234            * @param classNameId the class name id of this message-boards message
235            */
236            public void setClassNameId(long classNameId) {
237                    _mbMessage.setClassNameId(classNameId);
238            }
239    
240            /**
241            * Gets the class p k of this message-boards message.
242            *
243            * @return the class p k of this message-boards message
244            */
245            public long getClassPK() {
246                    return _mbMessage.getClassPK();
247            }
248    
249            /**
250            * Sets the class p k of this message-boards message.
251            *
252            * @param classPK the class p k of this message-boards message
253            */
254            public void setClassPK(long classPK) {
255                    _mbMessage.setClassPK(classPK);
256            }
257    
258            /**
259            * Gets the category id of this message-boards message.
260            *
261            * @return the category id of this message-boards message
262            */
263            public long getCategoryId() {
264                    return _mbMessage.getCategoryId();
265            }
266    
267            /**
268            * Sets the category id of this message-boards message.
269            *
270            * @param categoryId the category id of this message-boards message
271            */
272            public void setCategoryId(long categoryId) {
273                    _mbMessage.setCategoryId(categoryId);
274            }
275    
276            /**
277            * Gets the thread id of this message-boards message.
278            *
279            * @return the thread id of this message-boards message
280            */
281            public long getThreadId() {
282                    return _mbMessage.getThreadId();
283            }
284    
285            /**
286            * Sets the thread id of this message-boards message.
287            *
288            * @param threadId the thread id of this message-boards message
289            */
290            public void setThreadId(long threadId) {
291                    _mbMessage.setThreadId(threadId);
292            }
293    
294            /**
295            * Gets the root message id of this message-boards message.
296            *
297            * @return the root message id of this message-boards message
298            */
299            public long getRootMessageId() {
300                    return _mbMessage.getRootMessageId();
301            }
302    
303            /**
304            * Sets the root message id of this message-boards message.
305            *
306            * @param rootMessageId the root message id of this message-boards message
307            */
308            public void setRootMessageId(long rootMessageId) {
309                    _mbMessage.setRootMessageId(rootMessageId);
310            }
311    
312            /**
313            * Gets the parent message id of this message-boards message.
314            *
315            * @return the parent message id of this message-boards message
316            */
317            public long getParentMessageId() {
318                    return _mbMessage.getParentMessageId();
319            }
320    
321            /**
322            * Sets the parent message id of this message-boards message.
323            *
324            * @param parentMessageId the parent message id of this message-boards message
325            */
326            public void setParentMessageId(long parentMessageId) {
327                    _mbMessage.setParentMessageId(parentMessageId);
328            }
329    
330            /**
331            * Gets the subject of this message-boards message.
332            *
333            * @return the subject of this message-boards message
334            */
335            public java.lang.String getSubject() {
336                    return _mbMessage.getSubject();
337            }
338    
339            /**
340            * Sets the subject of this message-boards message.
341            *
342            * @param subject the subject of this message-boards message
343            */
344            public void setSubject(java.lang.String subject) {
345                    _mbMessage.setSubject(subject);
346            }
347    
348            /**
349            * Gets the body of this message-boards message.
350            *
351            * @return the body of this message-boards message
352            */
353            public java.lang.String getBody() {
354                    return _mbMessage.getBody();
355            }
356    
357            /**
358            * Sets the body of this message-boards message.
359            *
360            * @param body the body of this message-boards message
361            */
362            public void setBody(java.lang.String body) {
363                    _mbMessage.setBody(body);
364            }
365    
366            /**
367            * Gets the attachments of this message-boards message.
368            *
369            * @return the attachments of this message-boards message
370            */
371            public boolean getAttachments() {
372                    return _mbMessage.getAttachments();
373            }
374    
375            /**
376            * Determines whether this message-boards message is attachments.
377            *
378            * @return whether this message-boards message is attachments
379            */
380            public boolean isAttachments() {
381                    return _mbMessage.isAttachments();
382            }
383    
384            /**
385            * Sets whether this {$entity.humanName} is attachments.
386            *
387            * @param attachments the attachments of this message-boards message
388            */
389            public void setAttachments(boolean attachments) {
390                    _mbMessage.setAttachments(attachments);
391            }
392    
393            /**
394            * Gets the anonymous of this message-boards message.
395            *
396            * @return the anonymous of this message-boards message
397            */
398            public boolean getAnonymous() {
399                    return _mbMessage.getAnonymous();
400            }
401    
402            /**
403            * Determines whether this message-boards message is anonymous.
404            *
405            * @return whether this message-boards message is anonymous
406            */
407            public boolean isAnonymous() {
408                    return _mbMessage.isAnonymous();
409            }
410    
411            /**
412            * Sets whether this {$entity.humanName} is anonymous.
413            *
414            * @param anonymous the anonymous of this message-boards message
415            */
416            public void setAnonymous(boolean anonymous) {
417                    _mbMessage.setAnonymous(anonymous);
418            }
419    
420            /**
421            * Gets the priority of this message-boards message.
422            *
423            * @return the priority of this message-boards message
424            */
425            public double getPriority() {
426                    return _mbMessage.getPriority();
427            }
428    
429            /**
430            * Sets the priority of this message-boards message.
431            *
432            * @param priority the priority of this message-boards message
433            */
434            public void setPriority(double priority) {
435                    _mbMessage.setPriority(priority);
436            }
437    
438            /**
439            * Gets the allow pingbacks of this message-boards message.
440            *
441            * @return the allow pingbacks of this message-boards message
442            */
443            public boolean getAllowPingbacks() {
444                    return _mbMessage.getAllowPingbacks();
445            }
446    
447            /**
448            * Determines whether this message-boards message is allow pingbacks.
449            *
450            * @return whether this message-boards message is allow pingbacks
451            */
452            public boolean isAllowPingbacks() {
453                    return _mbMessage.isAllowPingbacks();
454            }
455    
456            /**
457            * Sets whether this {$entity.humanName} is allow pingbacks.
458            *
459            * @param allowPingbacks the allow pingbacks of this message-boards message
460            */
461            public void setAllowPingbacks(boolean allowPingbacks) {
462                    _mbMessage.setAllowPingbacks(allowPingbacks);
463            }
464    
465            /**
466            * Gets the status of this message-boards message.
467            *
468            * @return the status of this message-boards message
469            */
470            public int getStatus() {
471                    return _mbMessage.getStatus();
472            }
473    
474            /**
475            * Sets the status of this message-boards message.
476            *
477            * @param status the status of this message-boards message
478            */
479            public void setStatus(int status) {
480                    _mbMessage.setStatus(status);
481            }
482    
483            /**
484            * Gets the status by user id of this message-boards message.
485            *
486            * @return the status by user id of this message-boards message
487            */
488            public long getStatusByUserId() {
489                    return _mbMessage.getStatusByUserId();
490            }
491    
492            /**
493            * Sets the status by user id of this message-boards message.
494            *
495            * @param statusByUserId the status by user id of this message-boards message
496            */
497            public void setStatusByUserId(long statusByUserId) {
498                    _mbMessage.setStatusByUserId(statusByUserId);
499            }
500    
501            /**
502            * Gets the status by user uuid of this message-boards message.
503            *
504            * @return the status by user uuid of this message-boards message
505            * @throws SystemException if a system exception occurred
506            */
507            public java.lang.String getStatusByUserUuid()
508                    throws com.liferay.portal.kernel.exception.SystemException {
509                    return _mbMessage.getStatusByUserUuid();
510            }
511    
512            /**
513            * Sets the status by user uuid of this message-boards message.
514            *
515            * @param statusByUserUuid the status by user uuid of this message-boards message
516            */
517            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
518                    _mbMessage.setStatusByUserUuid(statusByUserUuid);
519            }
520    
521            /**
522            * Gets the status by user name of this message-boards message.
523            *
524            * @return the status by user name of this message-boards message
525            */
526            public java.lang.String getStatusByUserName() {
527                    return _mbMessage.getStatusByUserName();
528            }
529    
530            /**
531            * Sets the status by user name of this message-boards message.
532            *
533            * @param statusByUserName the status by user name of this message-boards message
534            */
535            public void setStatusByUserName(java.lang.String statusByUserName) {
536                    _mbMessage.setStatusByUserName(statusByUserName);
537            }
538    
539            /**
540            * Gets the status date of this message-boards message.
541            *
542            * @return the status date of this message-boards message
543            */
544            public java.util.Date getStatusDate() {
545                    return _mbMessage.getStatusDate();
546            }
547    
548            /**
549            * Sets the status date of this message-boards message.
550            *
551            * @param statusDate the status date of this message-boards message
552            */
553            public void setStatusDate(java.util.Date statusDate) {
554                    _mbMessage.setStatusDate(statusDate);
555            }
556    
557            /**
558            * @deprecated {@link #isApproved}
559            */
560            public boolean getApproved() {
561                    return _mbMessage.getApproved();
562            }
563    
564            /**
565            * Determines whether this message-boards message is approved.
566            *
567            * @return true if this message-boards message is approved; false otherwise
568            */
569            public boolean isApproved() {
570                    return _mbMessage.isApproved();
571            }
572    
573            /**
574            * Determines whether this message-boards message is a draft.
575            *
576            * @return true if this message-boards message is a draft; false otherwise
577            */
578            public boolean isDraft() {
579                    return _mbMessage.isDraft();
580            }
581    
582            /**
583            * Determines whether this message-boards message is expired.
584            *
585            * @return true if this message-boards message is expired; false otherwise
586            */
587            public boolean isExpired() {
588                    return _mbMessage.isExpired();
589            }
590    
591            /**
592            * Determines whether this message-boards message is pending.
593            *
594            * @return true if this message-boards message is pending; false otherwise
595            */
596            public boolean isPending() {
597                    return _mbMessage.isPending();
598            }
599    
600            public boolean isNew() {
601                    return _mbMessage.isNew();
602            }
603    
604            public void setNew(boolean n) {
605                    _mbMessage.setNew(n);
606            }
607    
608            public boolean isCachedModel() {
609                    return _mbMessage.isCachedModel();
610            }
611    
612            public void setCachedModel(boolean cachedModel) {
613                    _mbMessage.setCachedModel(cachedModel);
614            }
615    
616            public boolean isEscapedModel() {
617                    return _mbMessage.isEscapedModel();
618            }
619    
620            public void setEscapedModel(boolean escapedModel) {
621                    _mbMessage.setEscapedModel(escapedModel);
622            }
623    
624            public java.io.Serializable getPrimaryKeyObj() {
625                    return _mbMessage.getPrimaryKeyObj();
626            }
627    
628            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
629                    return _mbMessage.getExpandoBridge();
630            }
631    
632            public void setExpandoBridgeAttributes(
633                    com.liferay.portal.service.ServiceContext serviceContext) {
634                    _mbMessage.setExpandoBridgeAttributes(serviceContext);
635            }
636    
637            public java.lang.Object clone() {
638                    return _mbMessage.clone();
639            }
640    
641            public int compareTo(
642                    com.liferay.portlet.messageboards.model.MBMessage mbMessage) {
643                    return _mbMessage.compareTo(mbMessage);
644            }
645    
646            public int hashCode() {
647                    return _mbMessage.hashCode();
648            }
649    
650            public com.liferay.portlet.messageboards.model.MBMessage toEscapedModel() {
651                    return _mbMessage.toEscapedModel();
652            }
653    
654            public java.lang.String toString() {
655                    return _mbMessage.toString();
656            }
657    
658            public java.lang.String toXmlString() {
659                    return _mbMessage.toXmlString();
660            }
661    
662            public java.lang.String[] getAssetTagNames()
663                    throws com.liferay.portal.kernel.exception.SystemException {
664                    return _mbMessage.getAssetTagNames();
665            }
666    
667            public java.lang.String getAttachmentsDir() {
668                    return _mbMessage.getAttachmentsDir();
669            }
670    
671            public java.lang.String[] getAttachmentsFiles()
672                    throws com.liferay.portal.kernel.exception.PortalException,
673                            com.liferay.portal.kernel.exception.SystemException {
674                    return _mbMessage.getAttachmentsFiles();
675            }
676    
677            public java.lang.String getBody(boolean translate) {
678                    return _mbMessage.getBody(translate);
679            }
680    
681            public com.liferay.portlet.messageboards.model.MBCategory getCategory() {
682                    return _mbMessage.getCategory();
683            }
684    
685            public com.liferay.portlet.messageboards.model.MBThread getThread()
686                    throws com.liferay.portal.kernel.exception.PortalException,
687                            com.liferay.portal.kernel.exception.SystemException {
688                    return _mbMessage.getThread();
689            }
690    
691            public java.lang.String getThreadAttachmentsDir() {
692                    return _mbMessage.getThreadAttachmentsDir();
693            }
694    
695            public java.lang.String getWorkflowClassName() {
696                    return _mbMessage.getWorkflowClassName();
697            }
698    
699            public boolean isDiscussion() {
700                    return _mbMessage.isDiscussion();
701            }
702    
703            public boolean isReply() {
704                    return _mbMessage.isReply();
705            }
706    
707            public boolean isRoot() {
708                    return _mbMessage.isRoot();
709            }
710    
711            public void setAttachmentsDir(java.lang.String attachmentsDir) {
712                    _mbMessage.setAttachmentsDir(attachmentsDir);
713            }
714    
715            public MBMessage getWrappedMBMessage() {
716                    return _mbMessage;
717            }
718    
719            private MBMessage _mbMessage;
720    }