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