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