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