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.documentlibrary.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 DLFolder}.
031     * </p>
032     *
033     * @author Brian Wing Shun Chan
034     * @see DLFolder
035     * @generated
036     */
037    @ProviderType
038    public class DLFolderWrapper implements DLFolder, ModelWrapper<DLFolder> {
039            public DLFolderWrapper(DLFolder dlFolder) {
040                    _dlFolder = dlFolder;
041            }
042    
043            @Override
044            public Class<?> getModelClass() {
045                    return DLFolder.class;
046            }
047    
048            @Override
049            public String getModelClassName() {
050                    return DLFolder.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("repositoryId", getRepositoryId());
066                    attributes.put("mountPoint", getMountPoint());
067                    attributes.put("parentFolderId", getParentFolderId());
068                    attributes.put("treePath", getTreePath());
069                    attributes.put("name", getName());
070                    attributes.put("description", getDescription());
071                    attributes.put("lastPostDate", getLastPostDate());
072                    attributes.put("defaultFileEntryTypeId", getDefaultFileEntryTypeId());
073                    attributes.put("hidden", getHidden());
074                    attributes.put("restrictionType", getRestrictionType());
075                    attributes.put("lastPublishDate", getLastPublishDate());
076                    attributes.put("status", getStatus());
077                    attributes.put("statusByUserId", getStatusByUserId());
078                    attributes.put("statusByUserName", getStatusByUserName());
079                    attributes.put("statusDate", getStatusDate());
080    
081                    return attributes;
082            }
083    
084            @Override
085            public void setModelAttributes(Map<String, Object> attributes) {
086                    String uuid = (String)attributes.get("uuid");
087    
088                    if (uuid != null) {
089                            setUuid(uuid);
090                    }
091    
092                    Long folderId = (Long)attributes.get("folderId");
093    
094                    if (folderId != null) {
095                            setFolderId(folderId);
096                    }
097    
098                    Long groupId = (Long)attributes.get("groupId");
099    
100                    if (groupId != null) {
101                            setGroupId(groupId);
102                    }
103    
104                    Long companyId = (Long)attributes.get("companyId");
105    
106                    if (companyId != null) {
107                            setCompanyId(companyId);
108                    }
109    
110                    Long userId = (Long)attributes.get("userId");
111    
112                    if (userId != null) {
113                            setUserId(userId);
114                    }
115    
116                    String userName = (String)attributes.get("userName");
117    
118                    if (userName != null) {
119                            setUserName(userName);
120                    }
121    
122                    Date createDate = (Date)attributes.get("createDate");
123    
124                    if (createDate != null) {
125                            setCreateDate(createDate);
126                    }
127    
128                    Date modifiedDate = (Date)attributes.get("modifiedDate");
129    
130                    if (modifiedDate != null) {
131                            setModifiedDate(modifiedDate);
132                    }
133    
134                    Long repositoryId = (Long)attributes.get("repositoryId");
135    
136                    if (repositoryId != null) {
137                            setRepositoryId(repositoryId);
138                    }
139    
140                    Boolean mountPoint = (Boolean)attributes.get("mountPoint");
141    
142                    if (mountPoint != null) {
143                            setMountPoint(mountPoint);
144                    }
145    
146                    Long parentFolderId = (Long)attributes.get("parentFolderId");
147    
148                    if (parentFolderId != null) {
149                            setParentFolderId(parentFolderId);
150                    }
151    
152                    String treePath = (String)attributes.get("treePath");
153    
154                    if (treePath != null) {
155                            setTreePath(treePath);
156                    }
157    
158                    String name = (String)attributes.get("name");
159    
160                    if (name != null) {
161                            setName(name);
162                    }
163    
164                    String description = (String)attributes.get("description");
165    
166                    if (description != null) {
167                            setDescription(description);
168                    }
169    
170                    Date lastPostDate = (Date)attributes.get("lastPostDate");
171    
172                    if (lastPostDate != null) {
173                            setLastPostDate(lastPostDate);
174                    }
175    
176                    Long defaultFileEntryTypeId = (Long)attributes.get(
177                                    "defaultFileEntryTypeId");
178    
179                    if (defaultFileEntryTypeId != null) {
180                            setDefaultFileEntryTypeId(defaultFileEntryTypeId);
181                    }
182    
183                    Boolean hidden = (Boolean)attributes.get("hidden");
184    
185                    if (hidden != null) {
186                            setHidden(hidden);
187                    }
188    
189                    Integer restrictionType = (Integer)attributes.get("restrictionType");
190    
191                    if (restrictionType != null) {
192                            setRestrictionType(restrictionType);
193                    }
194    
195                    Date lastPublishDate = (Date)attributes.get("lastPublishDate");
196    
197                    if (lastPublishDate != null) {
198                            setLastPublishDate(lastPublishDate);
199                    }
200    
201                    Integer status = (Integer)attributes.get("status");
202    
203                    if (status != null) {
204                            setStatus(status);
205                    }
206    
207                    Long statusByUserId = (Long)attributes.get("statusByUserId");
208    
209                    if (statusByUserId != null) {
210                            setStatusByUserId(statusByUserId);
211                    }
212    
213                    String statusByUserName = (String)attributes.get("statusByUserName");
214    
215                    if (statusByUserName != null) {
216                            setStatusByUserName(statusByUserName);
217                    }
218    
219                    Date statusDate = (Date)attributes.get("statusDate");
220    
221                    if (statusDate != null) {
222                            setStatusDate(statusDate);
223                    }
224            }
225    
226            @Override
227            public java.lang.String buildTreePath()
228                    throws com.liferay.portal.kernel.exception.PortalException {
229                    return _dlFolder.buildTreePath();
230            }
231    
232            @Override
233            public java.lang.Object clone() {
234                    return new DLFolderWrapper((DLFolder)_dlFolder.clone());
235            }
236    
237            @Override
238            public int compareTo(
239                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
240                    return _dlFolder.compareTo(dlFolder);
241            }
242    
243            @Override
244            public java.util.List<java.lang.Long> getAncestorFolderIds()
245                    throws com.liferay.portal.kernel.exception.PortalException {
246                    return _dlFolder.getAncestorFolderIds();
247            }
248    
249            @Override
250            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getAncestors()
251                    throws com.liferay.portal.kernel.exception.PortalException {
252                    return _dlFolder.getAncestors();
253            }
254    
255            /**
256            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
257            */
258            @Deprecated
259            @Override
260            public boolean getApproved() {
261                    return _dlFolder.getApproved();
262            }
263    
264            /**
265            * Returns the company ID of this document library folder.
266            *
267            * @return the company ID of this document library folder
268            */
269            @Override
270            public long getCompanyId() {
271                    return _dlFolder.getCompanyId();
272            }
273    
274            /**
275            * Returns the container model ID of this document library folder.
276            *
277            * @return the container model ID of this document library folder
278            */
279            @Override
280            public long getContainerModelId() {
281                    return _dlFolder.getContainerModelId();
282            }
283    
284            /**
285            * Returns the container name of this document library folder.
286            *
287            * @return the container name of this document library folder
288            */
289            @Override
290            public java.lang.String getContainerModelName() {
291                    return _dlFolder.getContainerModelName();
292            }
293    
294            /**
295            * Returns the create date of this document library folder.
296            *
297            * @return the create date of this document library folder
298            */
299            @Override
300            public Date getCreateDate() {
301                    return _dlFolder.getCreateDate();
302            }
303    
304            /**
305            * Returns the default file entry type ID of this document library folder.
306            *
307            * @return the default file entry type ID of this document library folder
308            */
309            @Override
310            public long getDefaultFileEntryTypeId() {
311                    return _dlFolder.getDefaultFileEntryTypeId();
312            }
313    
314            /**
315            * Returns the description of this document library folder.
316            *
317            * @return the description of this document library folder
318            */
319            @Override
320            public java.lang.String getDescription() {
321                    return _dlFolder.getDescription();
322            }
323    
324            @Override
325            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
326                    return _dlFolder.getExpandoBridge();
327            }
328    
329            /**
330            * Returns the folder ID of this document library folder.
331            *
332            * @return the folder ID of this document library folder
333            */
334            @Override
335            public long getFolderId() {
336                    return _dlFolder.getFolderId();
337            }
338    
339            /**
340            * Returns the group ID of this document library folder.
341            *
342            * @return the group ID of this document library folder
343            */
344            @Override
345            public long getGroupId() {
346                    return _dlFolder.getGroupId();
347            }
348    
349            /**
350            * Returns the hidden of this document library folder.
351            *
352            * @return the hidden of this document library folder
353            */
354            @Override
355            public boolean getHidden() {
356                    return _dlFolder.getHidden();
357            }
358    
359            /**
360            * Returns the last post date of this document library folder.
361            *
362            * @return the last post date of this document library folder
363            */
364            @Override
365            public Date getLastPostDate() {
366                    return _dlFolder.getLastPostDate();
367            }
368    
369            /**
370            * Returns the last publish date of this document library folder.
371            *
372            * @return the last publish date of this document library folder
373            */
374            @Override
375            public Date getLastPublishDate() {
376                    return _dlFolder.getLastPublishDate();
377            }
378    
379            /**
380            * Returns the modified date of this document library folder.
381            *
382            * @return the modified date of this document library folder
383            */
384            @Override
385            public Date getModifiedDate() {
386                    return _dlFolder.getModifiedDate();
387            }
388    
389            /**
390            * Returns the mount point of this document library folder.
391            *
392            * @return the mount point of this document library folder
393            */
394            @Override
395            public boolean getMountPoint() {
396                    return _dlFolder.getMountPoint();
397            }
398    
399            /**
400            * Returns the name of this document library folder.
401            *
402            * @return the name of this document library folder
403            */
404            @Override
405            public java.lang.String getName() {
406                    return _dlFolder.getName();
407            }
408    
409            /**
410            * Returns the parent container model ID of this document library folder.
411            *
412            * @return the parent container model ID of this document library folder
413            */
414            @Override
415            public long getParentContainerModelId() {
416                    return _dlFolder.getParentContainerModelId();
417            }
418    
419            @Override
420            public com.liferay.portlet.documentlibrary.model.DLFolder getParentFolder()
421                    throws com.liferay.portal.kernel.exception.PortalException {
422                    return _dlFolder.getParentFolder();
423            }
424    
425            /**
426            * Returns the parent folder ID of this document library folder.
427            *
428            * @return the parent folder ID of this document library folder
429            */
430            @Override
431            public long getParentFolderId() {
432                    return _dlFolder.getParentFolderId();
433            }
434    
435            @Override
436            public java.lang.String getPath()
437                    throws com.liferay.portal.kernel.exception.PortalException {
438                    return _dlFolder.getPath();
439            }
440    
441            @Override
442            public java.lang.String[] getPathArray()
443                    throws com.liferay.portal.kernel.exception.PortalException {
444                    return _dlFolder.getPathArray();
445            }
446    
447            /**
448            * Returns the primary key of this document library folder.
449            *
450            * @return the primary key of this document library folder
451            */
452            @Override
453            public long getPrimaryKey() {
454                    return _dlFolder.getPrimaryKey();
455            }
456    
457            @Override
458            public java.io.Serializable getPrimaryKeyObj() {
459                    return _dlFolder.getPrimaryKeyObj();
460            }
461    
462            /**
463            * Returns the repository ID of this document library folder.
464            *
465            * @return the repository ID of this document library folder
466            */
467            @Override
468            public long getRepositoryId() {
469                    return _dlFolder.getRepositoryId();
470            }
471    
472            /**
473            * Returns the restriction type of this document library folder.
474            *
475            * @return the restriction type of this document library folder
476            */
477            @Override
478            public int getRestrictionType() {
479                    return _dlFolder.getRestrictionType();
480            }
481    
482            /**
483            * Returns the status of this document library folder.
484            *
485            * @return the status of this document library folder
486            */
487            @Override
488            public int getStatus() {
489                    return _dlFolder.getStatus();
490            }
491    
492            /**
493            * Returns the status by user ID of this document library folder.
494            *
495            * @return the status by user ID of this document library folder
496            */
497            @Override
498            public long getStatusByUserId() {
499                    return _dlFolder.getStatusByUserId();
500            }
501    
502            /**
503            * Returns the status by user name of this document library folder.
504            *
505            * @return the status by user name of this document library folder
506            */
507            @Override
508            public java.lang.String getStatusByUserName() {
509                    return _dlFolder.getStatusByUserName();
510            }
511    
512            /**
513            * Returns the status by user uuid of this document library folder.
514            *
515            * @return the status by user uuid of this document library folder
516            */
517            @Override
518            public java.lang.String getStatusByUserUuid() {
519                    return _dlFolder.getStatusByUserUuid();
520            }
521    
522            /**
523            * Returns the status date of this document library folder.
524            *
525            * @return the status date of this document library folder
526            */
527            @Override
528            public Date getStatusDate() {
529                    return _dlFolder.getStatusDate();
530            }
531    
532            /**
533            * Returns the trash entry created when this document library folder was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this document library folder.
534            *
535            * @return the trash entry created when this document library folder was moved to the Recycle Bin
536            */
537            @Override
538            public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
539                    throws com.liferay.portal.kernel.exception.PortalException {
540                    return _dlFolder.getTrashEntry();
541            }
542    
543            /**
544            * Returns the class primary key of the trash entry for this document library folder.
545            *
546            * @return the class primary key of the trash entry for this document library folder
547            */
548            @Override
549            public long getTrashEntryClassPK() {
550                    return _dlFolder.getTrashEntryClassPK();
551            }
552    
553            /**
554            * Returns the trash handler for this document library folder.
555            *
556            * @return the trash handler for this document library folder
557            */
558            @Override
559            public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
560                    return _dlFolder.getTrashHandler();
561            }
562    
563            /**
564            * Returns the tree path of this document library folder.
565            *
566            * @return the tree path of this document library folder
567            */
568            @Override
569            public java.lang.String getTreePath() {
570                    return _dlFolder.getTreePath();
571            }
572    
573            /**
574            * Returns the user ID of this document library folder.
575            *
576            * @return the user ID of this document library folder
577            */
578            @Override
579            public long getUserId() {
580                    return _dlFolder.getUserId();
581            }
582    
583            /**
584            * Returns the user name of this document library folder.
585            *
586            * @return the user name of this document library folder
587            */
588            @Override
589            public java.lang.String getUserName() {
590                    return _dlFolder.getUserName();
591            }
592    
593            /**
594            * Returns the user uuid of this document library folder.
595            *
596            * @return the user uuid of this document library folder
597            */
598            @Override
599            public java.lang.String getUserUuid() {
600                    return _dlFolder.getUserUuid();
601            }
602    
603            /**
604            * Returns the uuid of this document library folder.
605            *
606            * @return the uuid of this document library folder
607            */
608            @Override
609            public java.lang.String getUuid() {
610                    return _dlFolder.getUuid();
611            }
612    
613            @Override
614            public boolean hasInheritableLock() {
615                    return _dlFolder.hasInheritableLock();
616            }
617    
618            @Override
619            public boolean hasLock() {
620                    return _dlFolder.hasLock();
621            }
622    
623            @Override
624            public int hashCode() {
625                    return _dlFolder.hashCode();
626            }
627    
628            /**
629            * Returns <code>true</code> if this document library folder is approved.
630            *
631            * @return <code>true</code> if this document library folder is approved; <code>false</code> otherwise
632            */
633            @Override
634            public boolean isApproved() {
635                    return _dlFolder.isApproved();
636            }
637    
638            @Override
639            public boolean isCachedModel() {
640                    return _dlFolder.isCachedModel();
641            }
642    
643            /**
644            * Returns <code>true</code> if this document library folder is denied.
645            *
646            * @return <code>true</code> if this document library folder is denied; <code>false</code> otherwise
647            */
648            @Override
649            public boolean isDenied() {
650                    return _dlFolder.isDenied();
651            }
652    
653            /**
654            * Returns <code>true</code> if this document library folder is a draft.
655            *
656            * @return <code>true</code> if this document library folder is a draft; <code>false</code> otherwise
657            */
658            @Override
659            public boolean isDraft() {
660                    return _dlFolder.isDraft();
661            }
662    
663            @Override
664            public boolean isEscapedModel() {
665                    return _dlFolder.isEscapedModel();
666            }
667    
668            /**
669            * Returns <code>true</code> if this document library folder is expired.
670            *
671            * @return <code>true</code> if this document library folder is expired; <code>false</code> otherwise
672            */
673            @Override
674            public boolean isExpired() {
675                    return _dlFolder.isExpired();
676            }
677    
678            /**
679            * Returns <code>true</code> if this document library folder is hidden.
680            *
681            * @return <code>true</code> if this document library folder is hidden; <code>false</code> otherwise
682            */
683            @Override
684            public boolean isHidden() {
685                    return _dlFolder.isHidden();
686            }
687    
688            @Override
689            public boolean isInHiddenFolder() {
690                    return _dlFolder.isInHiddenFolder();
691            }
692    
693            /**
694            * Returns <code>true</code> if this document library folder is in the Recycle Bin.
695            *
696            * @return <code>true</code> if this document library folder is in the Recycle Bin; <code>false</code> otherwise
697            */
698            @Override
699            public boolean isInTrash() {
700                    return _dlFolder.isInTrash();
701            }
702    
703            /**
704            * Returns <code>true</code> if the parent of this document library folder is in the Recycle Bin.
705            *
706            * @return <code>true</code> if the parent of this document library folder is in the Recycle Bin; <code>false</code> otherwise
707            */
708            @Override
709            public boolean isInTrashContainer() {
710                    return _dlFolder.isInTrashContainer();
711            }
712    
713            @Override
714            public boolean isInTrashExplicitly() {
715                    return _dlFolder.isInTrashExplicitly();
716            }
717    
718            @Override
719            public boolean isInTrashImplicitly() {
720                    return _dlFolder.isInTrashImplicitly();
721            }
722    
723            /**
724            * Returns <code>true</code> if this document library folder is inactive.
725            *
726            * @return <code>true</code> if this document library folder is inactive; <code>false</code> otherwise
727            */
728            @Override
729            public boolean isInactive() {
730                    return _dlFolder.isInactive();
731            }
732    
733            /**
734            * Returns <code>true</code> if this document library folder is incomplete.
735            *
736            * @return <code>true</code> if this document library folder is incomplete; <code>false</code> otherwise
737            */
738            @Override
739            public boolean isIncomplete() {
740                    return _dlFolder.isIncomplete();
741            }
742    
743            @Override
744            public boolean isLocked() {
745                    return _dlFolder.isLocked();
746            }
747    
748            /**
749            * Returns <code>true</code> if this document library folder is mount point.
750            *
751            * @return <code>true</code> if this document library folder is mount point; <code>false</code> otherwise
752            */
753            @Override
754            public boolean isMountPoint() {
755                    return _dlFolder.isMountPoint();
756            }
757    
758            @Override
759            public boolean isNew() {
760                    return _dlFolder.isNew();
761            }
762    
763            /**
764            * Returns <code>true</code> if this document library folder is pending.
765            *
766            * @return <code>true</code> if this document library folder is pending; <code>false</code> otherwise
767            */
768            @Override
769            public boolean isPending() {
770                    return _dlFolder.isPending();
771            }
772    
773            @Override
774            public boolean isRoot() {
775                    return _dlFolder.isRoot();
776            }
777    
778            /**
779            * Returns <code>true</code> if this document library folder is scheduled.
780            *
781            * @return <code>true</code> if this document library folder is scheduled; <code>false</code> otherwise
782            */
783            @Override
784            public boolean isScheduled() {
785                    return _dlFolder.isScheduled();
786            }
787    
788            @Override
789            public void persist() {
790                    _dlFolder.persist();
791            }
792    
793            @Override
794            public void setCachedModel(boolean cachedModel) {
795                    _dlFolder.setCachedModel(cachedModel);
796            }
797    
798            /**
799            * Sets the company ID of this document library folder.
800            *
801            * @param companyId the company ID of this document library folder
802            */
803            @Override
804            public void setCompanyId(long companyId) {
805                    _dlFolder.setCompanyId(companyId);
806            }
807    
808            /**
809            * Sets the container model ID of this document library folder.
810            *
811            * @param containerModelId the container model ID of this document library folder
812            */
813            @Override
814            public void setContainerModelId(long containerModelId) {
815                    _dlFolder.setContainerModelId(containerModelId);
816            }
817    
818            /**
819            * Sets the create date of this document library folder.
820            *
821            * @param createDate the create date of this document library folder
822            */
823            @Override
824            public void setCreateDate(Date createDate) {
825                    _dlFolder.setCreateDate(createDate);
826            }
827    
828            /**
829            * Sets the default file entry type ID of this document library folder.
830            *
831            * @param defaultFileEntryTypeId the default file entry type ID of this document library folder
832            */
833            @Override
834            public void setDefaultFileEntryTypeId(long defaultFileEntryTypeId) {
835                    _dlFolder.setDefaultFileEntryTypeId(defaultFileEntryTypeId);
836            }
837    
838            /**
839            * Sets the description of this document library folder.
840            *
841            * @param description the description of this document library folder
842            */
843            @Override
844            public void setDescription(java.lang.String description) {
845                    _dlFolder.setDescription(description);
846            }
847    
848            @Override
849            public void setExpandoBridgeAttributes(
850                    com.liferay.portal.model.BaseModel<?> baseModel) {
851                    _dlFolder.setExpandoBridgeAttributes(baseModel);
852            }
853    
854            @Override
855            public void setExpandoBridgeAttributes(
856                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
857                    _dlFolder.setExpandoBridgeAttributes(expandoBridge);
858            }
859    
860            @Override
861            public void setExpandoBridgeAttributes(
862                    com.liferay.portal.service.ServiceContext serviceContext) {
863                    _dlFolder.setExpandoBridgeAttributes(serviceContext);
864            }
865    
866            /**
867            * Sets the folder ID of this document library folder.
868            *
869            * @param folderId the folder ID of this document library folder
870            */
871            @Override
872            public void setFolderId(long folderId) {
873                    _dlFolder.setFolderId(folderId);
874            }
875    
876            /**
877            * Sets the group ID of this document library folder.
878            *
879            * @param groupId the group ID of this document library folder
880            */
881            @Override
882            public void setGroupId(long groupId) {
883                    _dlFolder.setGroupId(groupId);
884            }
885    
886            /**
887            * Sets whether this document library folder is hidden.
888            *
889            * @param hidden the hidden of this document library folder
890            */
891            @Override
892            public void setHidden(boolean hidden) {
893                    _dlFolder.setHidden(hidden);
894            }
895    
896            /**
897            * Sets the last post date of this document library folder.
898            *
899            * @param lastPostDate the last post date of this document library folder
900            */
901            @Override
902            public void setLastPostDate(Date lastPostDate) {
903                    _dlFolder.setLastPostDate(lastPostDate);
904            }
905    
906            /**
907            * Sets the last publish date of this document library folder.
908            *
909            * @param lastPublishDate the last publish date of this document library folder
910            */
911            @Override
912            public void setLastPublishDate(Date lastPublishDate) {
913                    _dlFolder.setLastPublishDate(lastPublishDate);
914            }
915    
916            /**
917            * Sets the modified date of this document library folder.
918            *
919            * @param modifiedDate the modified date of this document library folder
920            */
921            @Override
922            public void setModifiedDate(Date modifiedDate) {
923                    _dlFolder.setModifiedDate(modifiedDate);
924            }
925    
926            /**
927            * Sets whether this document library folder is mount point.
928            *
929            * @param mountPoint the mount point of this document library folder
930            */
931            @Override
932            public void setMountPoint(boolean mountPoint) {
933                    _dlFolder.setMountPoint(mountPoint);
934            }
935    
936            /**
937            * Sets the name of this document library folder.
938            *
939            * @param name the name of this document library folder
940            */
941            @Override
942            public void setName(java.lang.String name) {
943                    _dlFolder.setName(name);
944            }
945    
946            @Override
947            public void setNew(boolean n) {
948                    _dlFolder.setNew(n);
949            }
950    
951            /**
952            * Sets the parent container model ID of this document library folder.
953            *
954            * @param parentContainerModelId the parent container model ID of this document library folder
955            */
956            @Override
957            public void setParentContainerModelId(long parentContainerModelId) {
958                    _dlFolder.setParentContainerModelId(parentContainerModelId);
959            }
960    
961            /**
962            * Sets the parent folder ID of this document library folder.
963            *
964            * @param parentFolderId the parent folder ID of this document library folder
965            */
966            @Override
967            public void setParentFolderId(long parentFolderId) {
968                    _dlFolder.setParentFolderId(parentFolderId);
969            }
970    
971            /**
972            * Sets the primary key of this document library folder.
973            *
974            * @param primaryKey the primary key of this document library folder
975            */
976            @Override
977            public void setPrimaryKey(long primaryKey) {
978                    _dlFolder.setPrimaryKey(primaryKey);
979            }
980    
981            @Override
982            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
983                    _dlFolder.setPrimaryKeyObj(primaryKeyObj);
984            }
985    
986            /**
987            * Sets the repository ID of this document library folder.
988            *
989            * @param repositoryId the repository ID of this document library folder
990            */
991            @Override
992            public void setRepositoryId(long repositoryId) {
993                    _dlFolder.setRepositoryId(repositoryId);
994            }
995    
996            /**
997            * Sets the restriction type of this document library folder.
998            *
999            * @param restrictionType the restriction type of this document library folder
1000            */
1001            @Override
1002            public void setRestrictionType(int restrictionType) {
1003                    _dlFolder.setRestrictionType(restrictionType);
1004            }
1005    
1006            /**
1007            * Sets the status of this document library folder.
1008            *
1009            * @param status the status of this document library folder
1010            */
1011            @Override
1012            public void setStatus(int status) {
1013                    _dlFolder.setStatus(status);
1014            }
1015    
1016            /**
1017            * Sets the status by user ID of this document library folder.
1018            *
1019            * @param statusByUserId the status by user ID of this document library folder
1020            */
1021            @Override
1022            public void setStatusByUserId(long statusByUserId) {
1023                    _dlFolder.setStatusByUserId(statusByUserId);
1024            }
1025    
1026            /**
1027            * Sets the status by user name of this document library folder.
1028            *
1029            * @param statusByUserName the status by user name of this document library folder
1030            */
1031            @Override
1032            public void setStatusByUserName(java.lang.String statusByUserName) {
1033                    _dlFolder.setStatusByUserName(statusByUserName);
1034            }
1035    
1036            /**
1037            * Sets the status by user uuid of this document library folder.
1038            *
1039            * @param statusByUserUuid the status by user uuid of this document library folder
1040            */
1041            @Override
1042            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
1043                    _dlFolder.setStatusByUserUuid(statusByUserUuid);
1044            }
1045    
1046            /**
1047            * Sets the status date of this document library folder.
1048            *
1049            * @param statusDate the status date of this document library folder
1050            */
1051            @Override
1052            public void setStatusDate(Date statusDate) {
1053                    _dlFolder.setStatusDate(statusDate);
1054            }
1055    
1056            /**
1057            * Sets the tree path of this document library folder.
1058            *
1059            * @param treePath the tree path of this document library folder
1060            */
1061            @Override
1062            public void setTreePath(java.lang.String treePath) {
1063                    _dlFolder.setTreePath(treePath);
1064            }
1065    
1066            /**
1067            * Sets the user ID of this document library folder.
1068            *
1069            * @param userId the user ID of this document library folder
1070            */
1071            @Override
1072            public void setUserId(long userId) {
1073                    _dlFolder.setUserId(userId);
1074            }
1075    
1076            /**
1077            * Sets the user name of this document library folder.
1078            *
1079            * @param userName the user name of this document library folder
1080            */
1081            @Override
1082            public void setUserName(java.lang.String userName) {
1083                    _dlFolder.setUserName(userName);
1084            }
1085    
1086            /**
1087            * Sets the user uuid of this document library folder.
1088            *
1089            * @param userUuid the user uuid of this document library folder
1090            */
1091            @Override
1092            public void setUserUuid(java.lang.String userUuid) {
1093                    _dlFolder.setUserUuid(userUuid);
1094            }
1095    
1096            /**
1097            * Sets the uuid of this document library folder.
1098            *
1099            * @param uuid the uuid of this document library folder
1100            */
1101            @Override
1102            public void setUuid(java.lang.String uuid) {
1103                    _dlFolder.setUuid(uuid);
1104            }
1105    
1106            @Override
1107            public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFolder> toCacheModel() {
1108                    return _dlFolder.toCacheModel();
1109            }
1110    
1111            @Override
1112            public com.liferay.portlet.documentlibrary.model.DLFolder toEscapedModel() {
1113                    return new DLFolderWrapper(_dlFolder.toEscapedModel());
1114            }
1115    
1116            @Override
1117            public java.lang.String toString() {
1118                    return _dlFolder.toString();
1119            }
1120    
1121            @Override
1122            public com.liferay.portlet.documentlibrary.model.DLFolder toUnescapedModel() {
1123                    return new DLFolderWrapper(_dlFolder.toUnescapedModel());
1124            }
1125    
1126            @Override
1127            public java.lang.String toXmlString() {
1128                    return _dlFolder.toXmlString();
1129            }
1130    
1131            @Override
1132            public void updateTreePath(java.lang.String treePath) {
1133                    _dlFolder.updateTreePath(treePath);
1134            }
1135    
1136            @Override
1137            public boolean equals(Object obj) {
1138                    if (this == obj) {
1139                            return true;
1140                    }
1141    
1142                    if (!(obj instanceof DLFolderWrapper)) {
1143                            return false;
1144                    }
1145    
1146                    DLFolderWrapper dlFolderWrapper = (DLFolderWrapper)obj;
1147    
1148                    if (Validator.equals(_dlFolder, dlFolderWrapper._dlFolder)) {
1149                            return true;
1150                    }
1151    
1152                    return false;
1153            }
1154    
1155            @Override
1156            public StagedModelType getStagedModelType() {
1157                    return _dlFolder.getStagedModelType();
1158            }
1159    
1160            /**
1161             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1162             */
1163            @Deprecated
1164            public DLFolder getWrappedDLFolder() {
1165                    return _dlFolder;
1166            }
1167    
1168            @Override
1169            public DLFolder getWrappedModel() {
1170                    return _dlFolder;
1171            }
1172    
1173            @Override
1174            public boolean isEntityCacheEnabled() {
1175                    return _dlFolder.isEntityCacheEnabled();
1176            }
1177    
1178            @Override
1179            public boolean isFinderCacheEnabled() {
1180                    return _dlFolder.isFinderCacheEnabled();
1181            }
1182    
1183            @Override
1184            public void resetOriginalValues() {
1185                    _dlFolder.resetOriginalValues();
1186            }
1187    
1188            private final DLFolder _dlFolder;
1189    }