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