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