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