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