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