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