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