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