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