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.bookmarks.model;
016    
017    import com.liferay.portal.kernel.lar.StagedModelType;
018    import com.liferay.portal.kernel.util.Validator;
019    import com.liferay.portal.model.ModelWrapper;
020    
021    import java.util.Date;
022    import java.util.HashMap;
023    import java.util.Map;
024    
025    /**
026     * <p>
027     * This class is a wrapper for {@link BookmarksFolder}.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see BookmarksFolder
032     * @generated
033     */
034    public class BookmarksFolderWrapper implements BookmarksFolder,
035            ModelWrapper<BookmarksFolder> {
036            public BookmarksFolderWrapper(BookmarksFolder bookmarksFolder) {
037                    _bookmarksFolder = bookmarksFolder;
038            }
039    
040            @Override
041            public Class<?> getModelClass() {
042                    return BookmarksFolder.class;
043            }
044    
045            @Override
046            public String getModelClassName() {
047                    return BookmarksFolder.class.getName();
048            }
049    
050            @Override
051            public Map<String, Object> getModelAttributes() {
052                    Map<String, Object> attributes = new HashMap<String, Object>();
053    
054                    attributes.put("uuid", getUuid());
055                    attributes.put("folderId", getFolderId());
056                    attributes.put("groupId", getGroupId());
057                    attributes.put("companyId", getCompanyId());
058                    attributes.put("userId", getUserId());
059                    attributes.put("userName", getUserName());
060                    attributes.put("createDate", getCreateDate());
061                    attributes.put("modifiedDate", getModifiedDate());
062                    attributes.put("resourceBlockId", getResourceBlockId());
063                    attributes.put("parentFolderId", getParentFolderId());
064                    attributes.put("treePath", getTreePath());
065                    attributes.put("name", getName());
066                    attributes.put("description", getDescription());
067                    attributes.put("status", getStatus());
068                    attributes.put("statusByUserId", getStatusByUserId());
069                    attributes.put("statusByUserName", getStatusByUserName());
070                    attributes.put("statusDate", getStatusDate());
071    
072                    return attributes;
073            }
074    
075            @Override
076            public void setModelAttributes(Map<String, Object> attributes) {
077                    String uuid = (String)attributes.get("uuid");
078    
079                    if (uuid != null) {
080                            setUuid(uuid);
081                    }
082    
083                    Long folderId = (Long)attributes.get("folderId");
084    
085                    if (folderId != null) {
086                            setFolderId(folderId);
087                    }
088    
089                    Long groupId = (Long)attributes.get("groupId");
090    
091                    if (groupId != null) {
092                            setGroupId(groupId);
093                    }
094    
095                    Long companyId = (Long)attributes.get("companyId");
096    
097                    if (companyId != null) {
098                            setCompanyId(companyId);
099                    }
100    
101                    Long userId = (Long)attributes.get("userId");
102    
103                    if (userId != null) {
104                            setUserId(userId);
105                    }
106    
107                    String userName = (String)attributes.get("userName");
108    
109                    if (userName != null) {
110                            setUserName(userName);
111                    }
112    
113                    Date createDate = (Date)attributes.get("createDate");
114    
115                    if (createDate != null) {
116                            setCreateDate(createDate);
117                    }
118    
119                    Date modifiedDate = (Date)attributes.get("modifiedDate");
120    
121                    if (modifiedDate != null) {
122                            setModifiedDate(modifiedDate);
123                    }
124    
125                    Long resourceBlockId = (Long)attributes.get("resourceBlockId");
126    
127                    if (resourceBlockId != null) {
128                            setResourceBlockId(resourceBlockId);
129                    }
130    
131                    Long parentFolderId = (Long)attributes.get("parentFolderId");
132    
133                    if (parentFolderId != null) {
134                            setParentFolderId(parentFolderId);
135                    }
136    
137                    String treePath = (String)attributes.get("treePath");
138    
139                    if (treePath != null) {
140                            setTreePath(treePath);
141                    }
142    
143                    String name = (String)attributes.get("name");
144    
145                    if (name != null) {
146                            setName(name);
147                    }
148    
149                    String description = (String)attributes.get("description");
150    
151                    if (description != null) {
152                            setDescription(description);
153                    }
154    
155                    Integer status = (Integer)attributes.get("status");
156    
157                    if (status != null) {
158                            setStatus(status);
159                    }
160    
161                    Long statusByUserId = (Long)attributes.get("statusByUserId");
162    
163                    if (statusByUserId != null) {
164                            setStatusByUserId(statusByUserId);
165                    }
166    
167                    String statusByUserName = (String)attributes.get("statusByUserName");
168    
169                    if (statusByUserName != null) {
170                            setStatusByUserName(statusByUserName);
171                    }
172    
173                    Date statusDate = (Date)attributes.get("statusDate");
174    
175                    if (statusDate != null) {
176                            setStatusDate(statusDate);
177                    }
178            }
179    
180            /**
181            * Returns the primary key of this bookmarks folder.
182            *
183            * @return the primary key of this bookmarks folder
184            */
185            @Override
186            public long getPrimaryKey() {
187                    return _bookmarksFolder.getPrimaryKey();
188            }
189    
190            /**
191            * Sets the primary key of this bookmarks folder.
192            *
193            * @param primaryKey the primary key of this bookmarks folder
194            */
195            @Override
196            public void setPrimaryKey(long primaryKey) {
197                    _bookmarksFolder.setPrimaryKey(primaryKey);
198            }
199    
200            /**
201            * Returns the uuid of this bookmarks folder.
202            *
203            * @return the uuid of this bookmarks folder
204            */
205            @Override
206            public java.lang.String getUuid() {
207                    return _bookmarksFolder.getUuid();
208            }
209    
210            /**
211            * Sets the uuid of this bookmarks folder.
212            *
213            * @param uuid the uuid of this bookmarks folder
214            */
215            @Override
216            public void setUuid(java.lang.String uuid) {
217                    _bookmarksFolder.setUuid(uuid);
218            }
219    
220            /**
221            * Returns the folder ID of this bookmarks folder.
222            *
223            * @return the folder ID of this bookmarks folder
224            */
225            @Override
226            public long getFolderId() {
227                    return _bookmarksFolder.getFolderId();
228            }
229    
230            /**
231            * Sets the folder ID of this bookmarks folder.
232            *
233            * @param folderId the folder ID of this bookmarks folder
234            */
235            @Override
236            public void setFolderId(long folderId) {
237                    _bookmarksFolder.setFolderId(folderId);
238            }
239    
240            /**
241            * Returns the group ID of this bookmarks folder.
242            *
243            * @return the group ID of this bookmarks folder
244            */
245            @Override
246            public long getGroupId() {
247                    return _bookmarksFolder.getGroupId();
248            }
249    
250            /**
251            * Sets the group ID of this bookmarks folder.
252            *
253            * @param groupId the group ID of this bookmarks folder
254            */
255            @Override
256            public void setGroupId(long groupId) {
257                    _bookmarksFolder.setGroupId(groupId);
258            }
259    
260            /**
261            * Returns the company ID of this bookmarks folder.
262            *
263            * @return the company ID of this bookmarks folder
264            */
265            @Override
266            public long getCompanyId() {
267                    return _bookmarksFolder.getCompanyId();
268            }
269    
270            /**
271            * Sets the company ID of this bookmarks folder.
272            *
273            * @param companyId the company ID of this bookmarks folder
274            */
275            @Override
276            public void setCompanyId(long companyId) {
277                    _bookmarksFolder.setCompanyId(companyId);
278            }
279    
280            /**
281            * Returns the user ID of this bookmarks folder.
282            *
283            * @return the user ID of this bookmarks folder
284            */
285            @Override
286            public long getUserId() {
287                    return _bookmarksFolder.getUserId();
288            }
289    
290            /**
291            * Sets the user ID of this bookmarks folder.
292            *
293            * @param userId the user ID of this bookmarks folder
294            */
295            @Override
296            public void setUserId(long userId) {
297                    _bookmarksFolder.setUserId(userId);
298            }
299    
300            /**
301            * Returns the user uuid of this bookmarks folder.
302            *
303            * @return the user uuid of this bookmarks folder
304            * @throws SystemException if a system exception occurred
305            */
306            @Override
307            public java.lang.String getUserUuid()
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return _bookmarksFolder.getUserUuid();
310            }
311    
312            /**
313            * Sets the user uuid of this bookmarks folder.
314            *
315            * @param userUuid the user uuid of this bookmarks folder
316            */
317            @Override
318            public void setUserUuid(java.lang.String userUuid) {
319                    _bookmarksFolder.setUserUuid(userUuid);
320            }
321    
322            /**
323            * Returns the user name of this bookmarks folder.
324            *
325            * @return the user name of this bookmarks folder
326            */
327            @Override
328            public java.lang.String getUserName() {
329                    return _bookmarksFolder.getUserName();
330            }
331    
332            /**
333            * Sets the user name of this bookmarks folder.
334            *
335            * @param userName the user name of this bookmarks folder
336            */
337            @Override
338            public void setUserName(java.lang.String userName) {
339                    _bookmarksFolder.setUserName(userName);
340            }
341    
342            /**
343            * Returns the create date of this bookmarks folder.
344            *
345            * @return the create date of this bookmarks folder
346            */
347            @Override
348            public java.util.Date getCreateDate() {
349                    return _bookmarksFolder.getCreateDate();
350            }
351    
352            /**
353            * Sets the create date of this bookmarks folder.
354            *
355            * @param createDate the create date of this bookmarks folder
356            */
357            @Override
358            public void setCreateDate(java.util.Date createDate) {
359                    _bookmarksFolder.setCreateDate(createDate);
360            }
361    
362            /**
363            * Returns the modified date of this bookmarks folder.
364            *
365            * @return the modified date of this bookmarks folder
366            */
367            @Override
368            public java.util.Date getModifiedDate() {
369                    return _bookmarksFolder.getModifiedDate();
370            }
371    
372            /**
373            * Sets the modified date of this bookmarks folder.
374            *
375            * @param modifiedDate the modified date of this bookmarks folder
376            */
377            @Override
378            public void setModifiedDate(java.util.Date modifiedDate) {
379                    _bookmarksFolder.setModifiedDate(modifiedDate);
380            }
381    
382            /**
383            * Returns the resource block ID of this bookmarks folder.
384            *
385            * @return the resource block ID of this bookmarks folder
386            */
387            @Override
388            public long getResourceBlockId() {
389                    return _bookmarksFolder.getResourceBlockId();
390            }
391    
392            /**
393            * Sets the resource block ID of this bookmarks folder.
394            *
395            * @param resourceBlockId the resource block ID of this bookmarks folder
396            */
397            @Override
398            public void setResourceBlockId(long resourceBlockId) {
399                    _bookmarksFolder.setResourceBlockId(resourceBlockId);
400            }
401    
402            /**
403            * Returns the parent folder ID of this bookmarks folder.
404            *
405            * @return the parent folder ID of this bookmarks folder
406            */
407            @Override
408            public long getParentFolderId() {
409                    return _bookmarksFolder.getParentFolderId();
410            }
411    
412            /**
413            * Sets the parent folder ID of this bookmarks folder.
414            *
415            * @param parentFolderId the parent folder ID of this bookmarks folder
416            */
417            @Override
418            public void setParentFolderId(long parentFolderId) {
419                    _bookmarksFolder.setParentFolderId(parentFolderId);
420            }
421    
422            /**
423            * Returns the tree path of this bookmarks folder.
424            *
425            * @return the tree path of this bookmarks folder
426            */
427            @Override
428            public java.lang.String getTreePath() {
429                    return _bookmarksFolder.getTreePath();
430            }
431    
432            /**
433            * Sets the tree path of this bookmarks folder.
434            *
435            * @param treePath the tree path of this bookmarks folder
436            */
437            @Override
438            public void setTreePath(java.lang.String treePath) {
439                    _bookmarksFolder.setTreePath(treePath);
440            }
441    
442            /**
443            * Returns the name of this bookmarks folder.
444            *
445            * @return the name of this bookmarks folder
446            */
447            @Override
448            public java.lang.String getName() {
449                    return _bookmarksFolder.getName();
450            }
451    
452            /**
453            * Sets the name of this bookmarks folder.
454            *
455            * @param name the name of this bookmarks folder
456            */
457            @Override
458            public void setName(java.lang.String name) {
459                    _bookmarksFolder.setName(name);
460            }
461    
462            /**
463            * Returns the description of this bookmarks folder.
464            *
465            * @return the description of this bookmarks folder
466            */
467            @Override
468            public java.lang.String getDescription() {
469                    return _bookmarksFolder.getDescription();
470            }
471    
472            /**
473            * Sets the description of this bookmarks folder.
474            *
475            * @param description the description of this bookmarks folder
476            */
477            @Override
478            public void setDescription(java.lang.String description) {
479                    _bookmarksFolder.setDescription(description);
480            }
481    
482            /**
483            * Returns the status of this bookmarks folder.
484            *
485            * @return the status of this bookmarks folder
486            */
487            @Override
488            public int getStatus() {
489                    return _bookmarksFolder.getStatus();
490            }
491    
492            /**
493            * Sets the status of this bookmarks folder.
494            *
495            * @param status the status of this bookmarks folder
496            */
497            @Override
498            public void setStatus(int status) {
499                    _bookmarksFolder.setStatus(status);
500            }
501    
502            /**
503            * Returns the status by user ID of this bookmarks folder.
504            *
505            * @return the status by user ID of this bookmarks folder
506            */
507            @Override
508            public long getStatusByUserId() {
509                    return _bookmarksFolder.getStatusByUserId();
510            }
511    
512            /**
513            * Sets the status by user ID of this bookmarks folder.
514            *
515            * @param statusByUserId the status by user ID of this bookmarks folder
516            */
517            @Override
518            public void setStatusByUserId(long statusByUserId) {
519                    _bookmarksFolder.setStatusByUserId(statusByUserId);
520            }
521    
522            /**
523            * Returns the status by user uuid of this bookmarks folder.
524            *
525            * @return the status by user uuid of this bookmarks folder
526            * @throws SystemException if a system exception occurred
527            */
528            @Override
529            public java.lang.String getStatusByUserUuid()
530                    throws com.liferay.portal.kernel.exception.SystemException {
531                    return _bookmarksFolder.getStatusByUserUuid();
532            }
533    
534            /**
535            * Sets the status by user uuid of this bookmarks folder.
536            *
537            * @param statusByUserUuid the status by user uuid of this bookmarks folder
538            */
539            @Override
540            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
541                    _bookmarksFolder.setStatusByUserUuid(statusByUserUuid);
542            }
543    
544            /**
545            * Returns the status by user name of this bookmarks folder.
546            *
547            * @return the status by user name of this bookmarks folder
548            */
549            @Override
550            public java.lang.String getStatusByUserName() {
551                    return _bookmarksFolder.getStatusByUserName();
552            }
553    
554            /**
555            * Sets the status by user name of this bookmarks folder.
556            *
557            * @param statusByUserName the status by user name of this bookmarks folder
558            */
559            @Override
560            public void setStatusByUserName(java.lang.String statusByUserName) {
561                    _bookmarksFolder.setStatusByUserName(statusByUserName);
562            }
563    
564            /**
565            * Returns the status date of this bookmarks folder.
566            *
567            * @return the status date of this bookmarks folder
568            */
569            @Override
570            public java.util.Date getStatusDate() {
571                    return _bookmarksFolder.getStatusDate();
572            }
573    
574            /**
575            * Sets the status date of this bookmarks folder.
576            *
577            * @param statusDate the status date of this bookmarks folder
578            */
579            @Override
580            public void setStatusDate(java.util.Date statusDate) {
581                    _bookmarksFolder.setStatusDate(statusDate);
582            }
583    
584            /**
585            * Returns the trash entry created when this bookmarks folder was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this bookmarks folder.
586            *
587            * @return the trash entry created when this bookmarks folder was moved to the Recycle Bin
588            * @throws SystemException if a system exception occurred
589            */
590            @Override
591            public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
592                    throws com.liferay.portal.kernel.exception.PortalException,
593                            com.liferay.portal.kernel.exception.SystemException {
594                    return _bookmarksFolder.getTrashEntry();
595            }
596    
597            /**
598            * Returns the trash handler for this bookmarks folder.
599            *
600            * @return the trash handler for this bookmarks folder
601            */
602            @Override
603            public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
604                    return _bookmarksFolder.getTrashHandler();
605            }
606    
607            /**
608            * Returns <code>true</code> if this bookmarks folder is in the Recycle Bin.
609            *
610            * @return <code>true</code> if this bookmarks folder is in the Recycle Bin; <code>false</code> otherwise
611            */
612            @Override
613            public boolean isInTrash() {
614                    return _bookmarksFolder.isInTrash();
615            }
616    
617            /**
618            * Returns <code>true</code> if the parent of this bookmarks folder is in the Recycle Bin.
619            *
620            * @return <code>true</code> if the parent of this bookmarks folder is in the Recycle Bin; <code>false</code> otherwise
621            * @throws SystemException if a system exception occurred
622            */
623            @Override
624            public boolean isInTrashContainer() {
625                    return _bookmarksFolder.isInTrashContainer();
626            }
627    
628            /**
629            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
630            */
631            @Override
632            public boolean getApproved() {
633                    return _bookmarksFolder.getApproved();
634            }
635    
636            /**
637            * Returns <code>true</code> if this bookmarks folder is approved.
638            *
639            * @return <code>true</code> if this bookmarks folder is approved; <code>false</code> otherwise
640            */
641            @Override
642            public boolean isApproved() {
643                    return _bookmarksFolder.isApproved();
644            }
645    
646            /**
647            * Returns <code>true</code> if this bookmarks folder is denied.
648            *
649            * @return <code>true</code> if this bookmarks folder is denied; <code>false</code> otherwise
650            */
651            @Override
652            public boolean isDenied() {
653                    return _bookmarksFolder.isDenied();
654            }
655    
656            /**
657            * Returns <code>true</code> if this bookmarks folder is a draft.
658            *
659            * @return <code>true</code> if this bookmarks folder is a draft; <code>false</code> otherwise
660            */
661            @Override
662            public boolean isDraft() {
663                    return _bookmarksFolder.isDraft();
664            }
665    
666            /**
667            * Returns <code>true</code> if this bookmarks folder is expired.
668            *
669            * @return <code>true</code> if this bookmarks folder is expired; <code>false</code> otherwise
670            */
671            @Override
672            public boolean isExpired() {
673                    return _bookmarksFolder.isExpired();
674            }
675    
676            /**
677            * Returns <code>true</code> if this bookmarks folder is inactive.
678            *
679            * @return <code>true</code> if this bookmarks folder is inactive; <code>false</code> otherwise
680            */
681            @Override
682            public boolean isInactive() {
683                    return _bookmarksFolder.isInactive();
684            }
685    
686            /**
687            * Returns <code>true</code> if this bookmarks folder is incomplete.
688            *
689            * @return <code>true</code> if this bookmarks folder is incomplete; <code>false</code> otherwise
690            */
691            @Override
692            public boolean isIncomplete() {
693                    return _bookmarksFolder.isIncomplete();
694            }
695    
696            /**
697            * Returns <code>true</code> if this bookmarks folder is pending.
698            *
699            * @return <code>true</code> if this bookmarks folder is pending; <code>false</code> otherwise
700            */
701            @Override
702            public boolean isPending() {
703                    return _bookmarksFolder.isPending();
704            }
705    
706            /**
707            * Returns <code>true</code> if this bookmarks folder is scheduled.
708            *
709            * @return <code>true</code> if this bookmarks folder is scheduled; <code>false</code> otherwise
710            */
711            @Override
712            public boolean isScheduled() {
713                    return _bookmarksFolder.isScheduled();
714            }
715    
716            /**
717            * Returns the container model ID of this bookmarks folder.
718            *
719            * @return the container model ID of this bookmarks folder
720            */
721            @Override
722            public long getContainerModelId() {
723                    return _bookmarksFolder.getContainerModelId();
724            }
725    
726            /**
727            * Sets the container model ID of this bookmarks folder.
728            *
729            * @param container model ID of this bookmarks folder
730            */
731            @Override
732            public void setContainerModelId(long containerModelId) {
733                    _bookmarksFolder.setContainerModelId(containerModelId);
734            }
735    
736            /**
737            * Returns the container name of this bookmarks folder.
738            *
739            * @return the container name of this bookmarks folder
740            */
741            @Override
742            public java.lang.String getContainerModelName() {
743                    return _bookmarksFolder.getContainerModelName();
744            }
745    
746            /**
747            * Returns the parent container model ID of this bookmarks folder.
748            *
749            * @return the parent container model ID of this bookmarks folder
750            */
751            @Override
752            public long getParentContainerModelId() {
753                    return _bookmarksFolder.getParentContainerModelId();
754            }
755    
756            /**
757            * Sets the parent container model ID of this bookmarks folder.
758            *
759            * @param parent container model ID of this bookmarks folder
760            */
761            @Override
762            public void setParentContainerModelId(long parentContainerModelId) {
763                    _bookmarksFolder.setParentContainerModelId(parentContainerModelId);
764            }
765    
766            @Override
767            public boolean isNew() {
768                    return _bookmarksFolder.isNew();
769            }
770    
771            @Override
772            public void setNew(boolean n) {
773                    _bookmarksFolder.setNew(n);
774            }
775    
776            @Override
777            public boolean isCachedModel() {
778                    return _bookmarksFolder.isCachedModel();
779            }
780    
781            @Override
782            public void setCachedModel(boolean cachedModel) {
783                    _bookmarksFolder.setCachedModel(cachedModel);
784            }
785    
786            @Override
787            public boolean isEscapedModel() {
788                    return _bookmarksFolder.isEscapedModel();
789            }
790    
791            @Override
792            public java.io.Serializable getPrimaryKeyObj() {
793                    return _bookmarksFolder.getPrimaryKeyObj();
794            }
795    
796            @Override
797            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
798                    _bookmarksFolder.setPrimaryKeyObj(primaryKeyObj);
799            }
800    
801            @Override
802            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
803                    return _bookmarksFolder.getExpandoBridge();
804            }
805    
806            @Override
807            public void setExpandoBridgeAttributes(
808                    com.liferay.portal.model.BaseModel<?> baseModel) {
809                    _bookmarksFolder.setExpandoBridgeAttributes(baseModel);
810            }
811    
812            @Override
813            public void setExpandoBridgeAttributes(
814                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
815                    _bookmarksFolder.setExpandoBridgeAttributes(expandoBridge);
816            }
817    
818            @Override
819            public void setExpandoBridgeAttributes(
820                    com.liferay.portal.service.ServiceContext serviceContext) {
821                    _bookmarksFolder.setExpandoBridgeAttributes(serviceContext);
822            }
823    
824            @Override
825            public java.lang.Object clone() {
826                    return new BookmarksFolderWrapper((BookmarksFolder)_bookmarksFolder.clone());
827            }
828    
829            @Override
830            public int compareTo(
831                    com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder) {
832                    return _bookmarksFolder.compareTo(bookmarksFolder);
833            }
834    
835            @Override
836            public int hashCode() {
837                    return _bookmarksFolder.hashCode();
838            }
839    
840            @Override
841            public com.liferay.portal.model.CacheModel<com.liferay.portlet.bookmarks.model.BookmarksFolder> toCacheModel() {
842                    return _bookmarksFolder.toCacheModel();
843            }
844    
845            @Override
846            public com.liferay.portlet.bookmarks.model.BookmarksFolder toEscapedModel() {
847                    return new BookmarksFolderWrapper(_bookmarksFolder.toEscapedModel());
848            }
849    
850            @Override
851            public com.liferay.portlet.bookmarks.model.BookmarksFolder toUnescapedModel() {
852                    return new BookmarksFolderWrapper(_bookmarksFolder.toUnescapedModel());
853            }
854    
855            @Override
856            public java.lang.String toString() {
857                    return _bookmarksFolder.toString();
858            }
859    
860            @Override
861            public java.lang.String toXmlString() {
862                    return _bookmarksFolder.toXmlString();
863            }
864    
865            @Override
866            public void persist()
867                    throws com.liferay.portal.kernel.exception.SystemException {
868                    _bookmarksFolder.persist();
869            }
870    
871            @Override
872            public java.lang.String buildTreePath()
873                    throws com.liferay.portal.kernel.exception.PortalException,
874                            com.liferay.portal.kernel.exception.SystemException {
875                    return _bookmarksFolder.buildTreePath();
876            }
877    
878            @Override
879            public java.util.List<java.lang.Long> getAncestorFolderIds()
880                    throws com.liferay.portal.kernel.exception.PortalException,
881                            com.liferay.portal.kernel.exception.SystemException {
882                    return _bookmarksFolder.getAncestorFolderIds();
883            }
884    
885            @Override
886            public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getAncestors()
887                    throws com.liferay.portal.kernel.exception.PortalException,
888                            com.liferay.portal.kernel.exception.SystemException {
889                    return _bookmarksFolder.getAncestors();
890            }
891    
892            @Override
893            public com.liferay.portlet.bookmarks.model.BookmarksFolder getParentFolder()
894                    throws com.liferay.portal.kernel.exception.PortalException,
895                            com.liferay.portal.kernel.exception.SystemException {
896                    return _bookmarksFolder.getParentFolder();
897            }
898    
899            @Override
900            public com.liferay.portlet.bookmarks.model.BookmarksFolder getTrashContainer() {
901                    return _bookmarksFolder.getTrashContainer();
902            }
903    
904            @Override
905            public boolean isRoot() {
906                    return _bookmarksFolder.isRoot();
907            }
908    
909            @Override
910            public boolean equals(Object obj) {
911                    if (this == obj) {
912                            return true;
913                    }
914    
915                    if (!(obj instanceof BookmarksFolderWrapper)) {
916                            return false;
917                    }
918    
919                    BookmarksFolderWrapper bookmarksFolderWrapper = (BookmarksFolderWrapper)obj;
920    
921                    if (Validator.equals(_bookmarksFolder,
922                                            bookmarksFolderWrapper._bookmarksFolder)) {
923                            return true;
924                    }
925    
926                    return false;
927            }
928    
929            @Override
930            public StagedModelType getStagedModelType() {
931                    return _bookmarksFolder.getStagedModelType();
932            }
933    
934            /**
935             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
936             */
937            public BookmarksFolder getWrappedBookmarksFolder() {
938                    return _bookmarksFolder;
939            }
940    
941            @Override
942            public BookmarksFolder getWrappedModel() {
943                    return _bookmarksFolder;
944            }
945    
946            @Override
947            public void resetOriginalValues() {
948                    _bookmarksFolder.resetOriginalValues();
949            }
950    
951            private BookmarksFolder _bookmarksFolder;
952    }