001    /**
002     * Copyright (c) 2000-2011 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.wiki.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link WikiPage}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       WikiPage
024     * @generated
025     */
026    public class WikiPageWrapper implements WikiPage {
027            public WikiPageWrapper(WikiPage wikiPage) {
028                    _wikiPage = wikiPage;
029            }
030    
031            public Class<?> getModelClass() {
032                    return WikiPage.class;
033            }
034    
035            public String getModelClassName() {
036                    return WikiPage.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this wiki page.
041            *
042            * @return the primary key of this wiki page
043            */
044            public long getPrimaryKey() {
045                    return _wikiPage.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this wiki page.
050            *
051            * @param primaryKey the primary key of this wiki page
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _wikiPage.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the uuid of this wiki page.
059            *
060            * @return the uuid of this wiki page
061            */
062            public java.lang.String getUuid() {
063                    return _wikiPage.getUuid();
064            }
065    
066            /**
067            * Sets the uuid of this wiki page.
068            *
069            * @param uuid the uuid of this wiki page
070            */
071            public void setUuid(java.lang.String uuid) {
072                    _wikiPage.setUuid(uuid);
073            }
074    
075            /**
076            * Returns the page ID of this wiki page.
077            *
078            * @return the page ID of this wiki page
079            */
080            public long getPageId() {
081                    return _wikiPage.getPageId();
082            }
083    
084            /**
085            * Sets the page ID of this wiki page.
086            *
087            * @param pageId the page ID of this wiki page
088            */
089            public void setPageId(long pageId) {
090                    _wikiPage.setPageId(pageId);
091            }
092    
093            /**
094            * Returns the resource prim key of this wiki page.
095            *
096            * @return the resource prim key of this wiki page
097            */
098            public long getResourcePrimKey() {
099                    return _wikiPage.getResourcePrimKey();
100            }
101    
102            /**
103            * Sets the resource prim key of this wiki page.
104            *
105            * @param resourcePrimKey the resource prim key of this wiki page
106            */
107            public void setResourcePrimKey(long resourcePrimKey) {
108                    _wikiPage.setResourcePrimKey(resourcePrimKey);
109            }
110    
111            public boolean isResourceMain() {
112                    return _wikiPage.isResourceMain();
113            }
114    
115            /**
116            * Returns the group ID of this wiki page.
117            *
118            * @return the group ID of this wiki page
119            */
120            public long getGroupId() {
121                    return _wikiPage.getGroupId();
122            }
123    
124            /**
125            * Sets the group ID of this wiki page.
126            *
127            * @param groupId the group ID of this wiki page
128            */
129            public void setGroupId(long groupId) {
130                    _wikiPage.setGroupId(groupId);
131            }
132    
133            /**
134            * Returns the company ID of this wiki page.
135            *
136            * @return the company ID of this wiki page
137            */
138            public long getCompanyId() {
139                    return _wikiPage.getCompanyId();
140            }
141    
142            /**
143            * Sets the company ID of this wiki page.
144            *
145            * @param companyId the company ID of this wiki page
146            */
147            public void setCompanyId(long companyId) {
148                    _wikiPage.setCompanyId(companyId);
149            }
150    
151            /**
152            * Returns the user ID of this wiki page.
153            *
154            * @return the user ID of this wiki page
155            */
156            public long getUserId() {
157                    return _wikiPage.getUserId();
158            }
159    
160            /**
161            * Sets the user ID of this wiki page.
162            *
163            * @param userId the user ID of this wiki page
164            */
165            public void setUserId(long userId) {
166                    _wikiPage.setUserId(userId);
167            }
168    
169            /**
170            * Returns the user uuid of this wiki page.
171            *
172            * @return the user uuid of this wiki page
173            * @throws SystemException if a system exception occurred
174            */
175            public java.lang.String getUserUuid()
176                    throws com.liferay.portal.kernel.exception.SystemException {
177                    return _wikiPage.getUserUuid();
178            }
179    
180            /**
181            * Sets the user uuid of this wiki page.
182            *
183            * @param userUuid the user uuid of this wiki page
184            */
185            public void setUserUuid(java.lang.String userUuid) {
186                    _wikiPage.setUserUuid(userUuid);
187            }
188    
189            /**
190            * Returns the user name of this wiki page.
191            *
192            * @return the user name of this wiki page
193            */
194            public java.lang.String getUserName() {
195                    return _wikiPage.getUserName();
196            }
197    
198            /**
199            * Sets the user name of this wiki page.
200            *
201            * @param userName the user name of this wiki page
202            */
203            public void setUserName(java.lang.String userName) {
204                    _wikiPage.setUserName(userName);
205            }
206    
207            /**
208            * Returns the create date of this wiki page.
209            *
210            * @return the create date of this wiki page
211            */
212            public java.util.Date getCreateDate() {
213                    return _wikiPage.getCreateDate();
214            }
215    
216            /**
217            * Sets the create date of this wiki page.
218            *
219            * @param createDate the create date of this wiki page
220            */
221            public void setCreateDate(java.util.Date createDate) {
222                    _wikiPage.setCreateDate(createDate);
223            }
224    
225            /**
226            * Returns the modified date of this wiki page.
227            *
228            * @return the modified date of this wiki page
229            */
230            public java.util.Date getModifiedDate() {
231                    return _wikiPage.getModifiedDate();
232            }
233    
234            /**
235            * Sets the modified date of this wiki page.
236            *
237            * @param modifiedDate the modified date of this wiki page
238            */
239            public void setModifiedDate(java.util.Date modifiedDate) {
240                    _wikiPage.setModifiedDate(modifiedDate);
241            }
242    
243            /**
244            * Returns the node ID of this wiki page.
245            *
246            * @return the node ID of this wiki page
247            */
248            public long getNodeId() {
249                    return _wikiPage.getNodeId();
250            }
251    
252            /**
253            * Sets the node ID of this wiki page.
254            *
255            * @param nodeId the node ID of this wiki page
256            */
257            public void setNodeId(long nodeId) {
258                    _wikiPage.setNodeId(nodeId);
259            }
260    
261            /**
262            * Returns the title of this wiki page.
263            *
264            * @return the title of this wiki page
265            */
266            public java.lang.String getTitle() {
267                    return _wikiPage.getTitle();
268            }
269    
270            /**
271            * Sets the title of this wiki page.
272            *
273            * @param title the title of this wiki page
274            */
275            public void setTitle(java.lang.String title) {
276                    _wikiPage.setTitle(title);
277            }
278    
279            /**
280            * Returns the version of this wiki page.
281            *
282            * @return the version of this wiki page
283            */
284            public double getVersion() {
285                    return _wikiPage.getVersion();
286            }
287    
288            /**
289            * Sets the version of this wiki page.
290            *
291            * @param version the version of this wiki page
292            */
293            public void setVersion(double version) {
294                    _wikiPage.setVersion(version);
295            }
296    
297            /**
298            * Returns the minor edit of this wiki page.
299            *
300            * @return the minor edit of this wiki page
301            */
302            public boolean getMinorEdit() {
303                    return _wikiPage.getMinorEdit();
304            }
305    
306            /**
307            * Returns <code>true</code> if this wiki page is minor edit.
308            *
309            * @return <code>true</code> if this wiki page is minor edit; <code>false</code> otherwise
310            */
311            public boolean isMinorEdit() {
312                    return _wikiPage.isMinorEdit();
313            }
314    
315            /**
316            * Sets whether this wiki page is minor edit.
317            *
318            * @param minorEdit the minor edit of this wiki page
319            */
320            public void setMinorEdit(boolean minorEdit) {
321                    _wikiPage.setMinorEdit(minorEdit);
322            }
323    
324            /**
325            * Returns the content of this wiki page.
326            *
327            * @return the content of this wiki page
328            */
329            public java.lang.String getContent() {
330                    return _wikiPage.getContent();
331            }
332    
333            /**
334            * Sets the content of this wiki page.
335            *
336            * @param content the content of this wiki page
337            */
338            public void setContent(java.lang.String content) {
339                    _wikiPage.setContent(content);
340            }
341    
342            /**
343            * Returns the summary of this wiki page.
344            *
345            * @return the summary of this wiki page
346            */
347            public java.lang.String getSummary() {
348                    return _wikiPage.getSummary();
349            }
350    
351            /**
352            * Sets the summary of this wiki page.
353            *
354            * @param summary the summary of this wiki page
355            */
356            public void setSummary(java.lang.String summary) {
357                    _wikiPage.setSummary(summary);
358            }
359    
360            /**
361            * Returns the format of this wiki page.
362            *
363            * @return the format of this wiki page
364            */
365            public java.lang.String getFormat() {
366                    return _wikiPage.getFormat();
367            }
368    
369            /**
370            * Sets the format of this wiki page.
371            *
372            * @param format the format of this wiki page
373            */
374            public void setFormat(java.lang.String format) {
375                    _wikiPage.setFormat(format);
376            }
377    
378            /**
379            * Returns the head of this wiki page.
380            *
381            * @return the head of this wiki page
382            */
383            public boolean getHead() {
384                    return _wikiPage.getHead();
385            }
386    
387            /**
388            * Returns <code>true</code> if this wiki page is head.
389            *
390            * @return <code>true</code> if this wiki page is head; <code>false</code> otherwise
391            */
392            public boolean isHead() {
393                    return _wikiPage.isHead();
394            }
395    
396            /**
397            * Sets whether this wiki page is head.
398            *
399            * @param head the head of this wiki page
400            */
401            public void setHead(boolean head) {
402                    _wikiPage.setHead(head);
403            }
404    
405            /**
406            * Returns the parent title of this wiki page.
407            *
408            * @return the parent title of this wiki page
409            */
410            public java.lang.String getParentTitle() {
411                    return _wikiPage.getParentTitle();
412            }
413    
414            /**
415            * Sets the parent title of this wiki page.
416            *
417            * @param parentTitle the parent title of this wiki page
418            */
419            public void setParentTitle(java.lang.String parentTitle) {
420                    _wikiPage.setParentTitle(parentTitle);
421            }
422    
423            /**
424            * Returns the redirect title of this wiki page.
425            *
426            * @return the redirect title of this wiki page
427            */
428            public java.lang.String getRedirectTitle() {
429                    return _wikiPage.getRedirectTitle();
430            }
431    
432            /**
433            * Sets the redirect title of this wiki page.
434            *
435            * @param redirectTitle the redirect title of this wiki page
436            */
437            public void setRedirectTitle(java.lang.String redirectTitle) {
438                    _wikiPage.setRedirectTitle(redirectTitle);
439            }
440    
441            /**
442            * Returns the status of this wiki page.
443            *
444            * @return the status of this wiki page
445            */
446            public int getStatus() {
447                    return _wikiPage.getStatus();
448            }
449    
450            /**
451            * Sets the status of this wiki page.
452            *
453            * @param status the status of this wiki page
454            */
455            public void setStatus(int status) {
456                    _wikiPage.setStatus(status);
457            }
458    
459            /**
460            * Returns the status by user ID of this wiki page.
461            *
462            * @return the status by user ID of this wiki page
463            */
464            public long getStatusByUserId() {
465                    return _wikiPage.getStatusByUserId();
466            }
467    
468            /**
469            * Sets the status by user ID of this wiki page.
470            *
471            * @param statusByUserId the status by user ID of this wiki page
472            */
473            public void setStatusByUserId(long statusByUserId) {
474                    _wikiPage.setStatusByUserId(statusByUserId);
475            }
476    
477            /**
478            * Returns the status by user uuid of this wiki page.
479            *
480            * @return the status by user uuid of this wiki page
481            * @throws SystemException if a system exception occurred
482            */
483            public java.lang.String getStatusByUserUuid()
484                    throws com.liferay.portal.kernel.exception.SystemException {
485                    return _wikiPage.getStatusByUserUuid();
486            }
487    
488            /**
489            * Sets the status by user uuid of this wiki page.
490            *
491            * @param statusByUserUuid the status by user uuid of this wiki page
492            */
493            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
494                    _wikiPage.setStatusByUserUuid(statusByUserUuid);
495            }
496    
497            /**
498            * Returns the status by user name of this wiki page.
499            *
500            * @return the status by user name of this wiki page
501            */
502            public java.lang.String getStatusByUserName() {
503                    return _wikiPage.getStatusByUserName();
504            }
505    
506            /**
507            * Sets the status by user name of this wiki page.
508            *
509            * @param statusByUserName the status by user name of this wiki page
510            */
511            public void setStatusByUserName(java.lang.String statusByUserName) {
512                    _wikiPage.setStatusByUserName(statusByUserName);
513            }
514    
515            /**
516            * Returns the status date of this wiki page.
517            *
518            * @return the status date of this wiki page
519            */
520            public java.util.Date getStatusDate() {
521                    return _wikiPage.getStatusDate();
522            }
523    
524            /**
525            * Sets the status date of this wiki page.
526            *
527            * @param statusDate the status date of this wiki page
528            */
529            public void setStatusDate(java.util.Date statusDate) {
530                    _wikiPage.setStatusDate(statusDate);
531            }
532    
533            /**
534            * @deprecated Renamed to {@link #isApproved()}
535            */
536            public boolean getApproved() {
537                    return _wikiPage.getApproved();
538            }
539    
540            /**
541            * Returns <code>true</code> if this wiki page is approved.
542            *
543            * @return <code>true</code> if this wiki page is approved; <code>false</code> otherwise
544            */
545            public boolean isApproved() {
546                    return _wikiPage.isApproved();
547            }
548    
549            /**
550            * Returns <code>true</code> if this wiki page is a draft.
551            *
552            * @return <code>true</code> if this wiki page is a draft; <code>false</code> otherwise
553            */
554            public boolean isDraft() {
555                    return _wikiPage.isDraft();
556            }
557    
558            /**
559            * Returns <code>true</code> if this wiki page is expired.
560            *
561            * @return <code>true</code> if this wiki page is expired; <code>false</code> otherwise
562            */
563            public boolean isExpired() {
564                    return _wikiPage.isExpired();
565            }
566    
567            /**
568            * Returns <code>true</code> if this wiki page is pending.
569            *
570            * @return <code>true</code> if this wiki page is pending; <code>false</code> otherwise
571            */
572            public boolean isPending() {
573                    return _wikiPage.isPending();
574            }
575    
576            public boolean isNew() {
577                    return _wikiPage.isNew();
578            }
579    
580            public void setNew(boolean n) {
581                    _wikiPage.setNew(n);
582            }
583    
584            public boolean isCachedModel() {
585                    return _wikiPage.isCachedModel();
586            }
587    
588            public void setCachedModel(boolean cachedModel) {
589                    _wikiPage.setCachedModel(cachedModel);
590            }
591    
592            public boolean isEscapedModel() {
593                    return _wikiPage.isEscapedModel();
594            }
595    
596            public java.io.Serializable getPrimaryKeyObj() {
597                    return _wikiPage.getPrimaryKeyObj();
598            }
599    
600            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
601                    _wikiPage.setPrimaryKeyObj(primaryKeyObj);
602            }
603    
604            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
605                    return _wikiPage.getExpandoBridge();
606            }
607    
608            public void setExpandoBridgeAttributes(
609                    com.liferay.portal.service.ServiceContext serviceContext) {
610                    _wikiPage.setExpandoBridgeAttributes(serviceContext);
611            }
612    
613            @Override
614            public java.lang.Object clone() {
615                    return new WikiPageWrapper((WikiPage)_wikiPage.clone());
616            }
617    
618            public int compareTo(com.liferay.portlet.wiki.model.WikiPage wikiPage) {
619                    return _wikiPage.compareTo(wikiPage);
620            }
621    
622            @Override
623            public int hashCode() {
624                    return _wikiPage.hashCode();
625            }
626    
627            public com.liferay.portal.model.CacheModel<com.liferay.portlet.wiki.model.WikiPage> toCacheModel() {
628                    return _wikiPage.toCacheModel();
629            }
630    
631            public com.liferay.portlet.wiki.model.WikiPage toEscapedModel() {
632                    return new WikiPageWrapper(_wikiPage.toEscapedModel());
633            }
634    
635            @Override
636            public java.lang.String toString() {
637                    return _wikiPage.toString();
638            }
639    
640            public java.lang.String toXmlString() {
641                    return _wikiPage.toXmlString();
642            }
643    
644            public void persist()
645                    throws com.liferay.portal.kernel.exception.SystemException {
646                    _wikiPage.persist();
647            }
648    
649            public java.lang.String getAttachmentsDir() {
650                    return _wikiPage.getAttachmentsDir();
651            }
652    
653            public java.lang.String[] getAttachmentsFiles()
654                    throws com.liferay.portal.kernel.exception.PortalException,
655                            com.liferay.portal.kernel.exception.SystemException {
656                    return _wikiPage.getAttachmentsFiles();
657            }
658    
659            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildPages() {
660                    return _wikiPage.getChildPages();
661            }
662    
663            public com.liferay.portlet.wiki.model.WikiNode getNode() {
664                    return _wikiPage.getNode();
665            }
666    
667            public com.liferay.portlet.wiki.model.WikiPage getParentPage() {
668                    return _wikiPage.getParentPage();
669            }
670    
671            public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getParentPages() {
672                    return _wikiPage.getParentPages();
673            }
674    
675            public com.liferay.portlet.wiki.model.WikiPage getRedirectPage() {
676                    return _wikiPage.getRedirectPage();
677            }
678    
679            public void setAttachmentsDir(java.lang.String attachmentsDir) {
680                    _wikiPage.setAttachmentsDir(attachmentsDir);
681            }
682    
683            public WikiPage getWrappedWikiPage() {
684                    return _wikiPage;
685            }
686    
687            public void resetOriginalValues() {
688                    _wikiPage.resetOriginalValues();
689            }
690    
691            private WikiPage _wikiPage;
692    }