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