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