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