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