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