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