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