001    /**
002     * Copyright (c) 2000-2012 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 com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link DLFileVersion}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DLFileVersion
026     * @generated
027     */
028    public class DLFileVersionWrapper implements DLFileVersion,
029            ModelWrapper<DLFileVersion> {
030            public DLFileVersionWrapper(DLFileVersion dlFileVersion) {
031                    _dlFileVersion = dlFileVersion;
032            }
033    
034            public Class<?> getModelClass() {
035                    return DLFileVersion.class;
036            }
037    
038            public String getModelClassName() {
039                    return DLFileVersion.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this document library file version.
044            *
045            * @return the primary key of this document library file version
046            */
047            public long getPrimaryKey() {
048                    return _dlFileVersion.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this document library file version.
053            *
054            * @param primaryKey the primary key of this document library file version
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _dlFileVersion.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the uuid of this document library file version.
062            *
063            * @return the uuid of this document library file version
064            */
065            public java.lang.String getUuid() {
066                    return _dlFileVersion.getUuid();
067            }
068    
069            /**
070            * Sets the uuid of this document library file version.
071            *
072            * @param uuid the uuid of this document library file version
073            */
074            public void setUuid(java.lang.String uuid) {
075                    _dlFileVersion.setUuid(uuid);
076            }
077    
078            /**
079            * Returns the file version ID of this document library file version.
080            *
081            * @return the file version ID of this document library file version
082            */
083            public long getFileVersionId() {
084                    return _dlFileVersion.getFileVersionId();
085            }
086    
087            /**
088            * Sets the file version ID of this document library file version.
089            *
090            * @param fileVersionId the file version ID of this document library file version
091            */
092            public void setFileVersionId(long fileVersionId) {
093                    _dlFileVersion.setFileVersionId(fileVersionId);
094            }
095    
096            /**
097            * Returns the group ID of this document library file version.
098            *
099            * @return the group ID of this document library file version
100            */
101            public long getGroupId() {
102                    return _dlFileVersion.getGroupId();
103            }
104    
105            /**
106            * Sets the group ID of this document library file version.
107            *
108            * @param groupId the group ID of this document library file version
109            */
110            public void setGroupId(long groupId) {
111                    _dlFileVersion.setGroupId(groupId);
112            }
113    
114            /**
115            * Returns the company ID of this document library file version.
116            *
117            * @return the company ID of this document library file version
118            */
119            public long getCompanyId() {
120                    return _dlFileVersion.getCompanyId();
121            }
122    
123            /**
124            * Sets the company ID of this document library file version.
125            *
126            * @param companyId the company ID of this document library file version
127            */
128            public void setCompanyId(long companyId) {
129                    _dlFileVersion.setCompanyId(companyId);
130            }
131    
132            /**
133            * Returns the user ID of this document library file version.
134            *
135            * @return the user ID of this document library file version
136            */
137            public long getUserId() {
138                    return _dlFileVersion.getUserId();
139            }
140    
141            /**
142            * Sets the user ID of this document library file version.
143            *
144            * @param userId the user ID of this document library file version
145            */
146            public void setUserId(long userId) {
147                    _dlFileVersion.setUserId(userId);
148            }
149    
150            /**
151            * Returns the user uuid of this document library file version.
152            *
153            * @return the user uuid of this document library file version
154            * @throws SystemException if a system exception occurred
155            */
156            public java.lang.String getUserUuid()
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _dlFileVersion.getUserUuid();
159            }
160    
161            /**
162            * Sets the user uuid of this document library file version.
163            *
164            * @param userUuid the user uuid of this document library file version
165            */
166            public void setUserUuid(java.lang.String userUuid) {
167                    _dlFileVersion.setUserUuid(userUuid);
168            }
169    
170            /**
171            * Returns the user name of this document library file version.
172            *
173            * @return the user name of this document library file version
174            */
175            public java.lang.String getUserName() {
176                    return _dlFileVersion.getUserName();
177            }
178    
179            /**
180            * Sets the user name of this document library file version.
181            *
182            * @param userName the user name of this document library file version
183            */
184            public void setUserName(java.lang.String userName) {
185                    _dlFileVersion.setUserName(userName);
186            }
187    
188            /**
189            * Returns the create date of this document library file version.
190            *
191            * @return the create date of this document library file version
192            */
193            public java.util.Date getCreateDate() {
194                    return _dlFileVersion.getCreateDate();
195            }
196    
197            /**
198            * Sets the create date of this document library file version.
199            *
200            * @param createDate the create date of this document library file version
201            */
202            public void setCreateDate(java.util.Date createDate) {
203                    _dlFileVersion.setCreateDate(createDate);
204            }
205    
206            /**
207            * Returns the modified date of this document library file version.
208            *
209            * @return the modified date of this document library file version
210            */
211            public java.util.Date getModifiedDate() {
212                    return _dlFileVersion.getModifiedDate();
213            }
214    
215            /**
216            * Sets the modified date of this document library file version.
217            *
218            * @param modifiedDate the modified date of this document library file version
219            */
220            public void setModifiedDate(java.util.Date modifiedDate) {
221                    _dlFileVersion.setModifiedDate(modifiedDate);
222            }
223    
224            /**
225            * Returns the repository ID of this document library file version.
226            *
227            * @return the repository ID of this document library file version
228            */
229            public long getRepositoryId() {
230                    return _dlFileVersion.getRepositoryId();
231            }
232    
233            /**
234            * Sets the repository ID of this document library file version.
235            *
236            * @param repositoryId the repository ID of this document library file version
237            */
238            public void setRepositoryId(long repositoryId) {
239                    _dlFileVersion.setRepositoryId(repositoryId);
240            }
241    
242            /**
243            * Returns the folder ID of this document library file version.
244            *
245            * @return the folder ID of this document library file version
246            */
247            public long getFolderId() {
248                    return _dlFileVersion.getFolderId();
249            }
250    
251            /**
252            * Sets the folder ID of this document library file version.
253            *
254            * @param folderId the folder ID of this document library file version
255            */
256            public void setFolderId(long folderId) {
257                    _dlFileVersion.setFolderId(folderId);
258            }
259    
260            /**
261            * Returns the file entry ID of this document library file version.
262            *
263            * @return the file entry ID of this document library file version
264            */
265            public long getFileEntryId() {
266                    return _dlFileVersion.getFileEntryId();
267            }
268    
269            /**
270            * Sets the file entry ID of this document library file version.
271            *
272            * @param fileEntryId the file entry ID of this document library file version
273            */
274            public void setFileEntryId(long fileEntryId) {
275                    _dlFileVersion.setFileEntryId(fileEntryId);
276            }
277    
278            /**
279            * Returns the extension of this document library file version.
280            *
281            * @return the extension of this document library file version
282            */
283            public java.lang.String getExtension() {
284                    return _dlFileVersion.getExtension();
285            }
286    
287            /**
288            * Sets the extension of this document library file version.
289            *
290            * @param extension the extension of this document library file version
291            */
292            public void setExtension(java.lang.String extension) {
293                    _dlFileVersion.setExtension(extension);
294            }
295    
296            /**
297            * Returns the mime type of this document library file version.
298            *
299            * @return the mime type of this document library file version
300            */
301            public java.lang.String getMimeType() {
302                    return _dlFileVersion.getMimeType();
303            }
304    
305            /**
306            * Sets the mime type of this document library file version.
307            *
308            * @param mimeType the mime type of this document library file version
309            */
310            public void setMimeType(java.lang.String mimeType) {
311                    _dlFileVersion.setMimeType(mimeType);
312            }
313    
314            /**
315            * Returns the title of this document library file version.
316            *
317            * @return the title of this document library file version
318            */
319            public java.lang.String getTitle() {
320                    return _dlFileVersion.getTitle();
321            }
322    
323            /**
324            * Sets the title of this document library file version.
325            *
326            * @param title the title of this document library file version
327            */
328            public void setTitle(java.lang.String title) {
329                    _dlFileVersion.setTitle(title);
330            }
331    
332            /**
333            * Returns the description of this document library file version.
334            *
335            * @return the description of this document library file version
336            */
337            public java.lang.String getDescription() {
338                    return _dlFileVersion.getDescription();
339            }
340    
341            /**
342            * Sets the description of this document library file version.
343            *
344            * @param description the description of this document library file version
345            */
346            public void setDescription(java.lang.String description) {
347                    _dlFileVersion.setDescription(description);
348            }
349    
350            /**
351            * Returns the change log of this document library file version.
352            *
353            * @return the change log of this document library file version
354            */
355            public java.lang.String getChangeLog() {
356                    return _dlFileVersion.getChangeLog();
357            }
358    
359            /**
360            * Sets the change log of this document library file version.
361            *
362            * @param changeLog the change log of this document library file version
363            */
364            public void setChangeLog(java.lang.String changeLog) {
365                    _dlFileVersion.setChangeLog(changeLog);
366            }
367    
368            /**
369            * Returns the extra settings of this document library file version.
370            *
371            * @return the extra settings of this document library file version
372            */
373            public java.lang.String getExtraSettings() {
374                    return _dlFileVersion.getExtraSettings();
375            }
376    
377            /**
378            * Sets the extra settings of this document library file version.
379            *
380            * @param extraSettings the extra settings of this document library file version
381            */
382            public void setExtraSettings(java.lang.String extraSettings) {
383                    _dlFileVersion.setExtraSettings(extraSettings);
384            }
385    
386            /**
387            * Returns the file entry type ID of this document library file version.
388            *
389            * @return the file entry type ID of this document library file version
390            */
391            public long getFileEntryTypeId() {
392                    return _dlFileVersion.getFileEntryTypeId();
393            }
394    
395            /**
396            * Sets the file entry type ID of this document library file version.
397            *
398            * @param fileEntryTypeId the file entry type ID of this document library file version
399            */
400            public void setFileEntryTypeId(long fileEntryTypeId) {
401                    _dlFileVersion.setFileEntryTypeId(fileEntryTypeId);
402            }
403    
404            /**
405            * Returns the version of this document library file version.
406            *
407            * @return the version of this document library file version
408            */
409            public java.lang.String getVersion() {
410                    return _dlFileVersion.getVersion();
411            }
412    
413            /**
414            * Sets the version of this document library file version.
415            *
416            * @param version the version of this document library file version
417            */
418            public void setVersion(java.lang.String version) {
419                    _dlFileVersion.setVersion(version);
420            }
421    
422            /**
423            * Returns the size of this document library file version.
424            *
425            * @return the size of this document library file version
426            */
427            public long getSize() {
428                    return _dlFileVersion.getSize();
429            }
430    
431            /**
432            * Sets the size of this document library file version.
433            *
434            * @param size the size of this document library file version
435            */
436            public void setSize(long size) {
437                    _dlFileVersion.setSize(size);
438            }
439    
440            /**
441            * Returns the status of this document library file version.
442            *
443            * @return the status of this document library file version
444            */
445            public int getStatus() {
446                    return _dlFileVersion.getStatus();
447            }
448    
449            /**
450            * Sets the status of this document library file version.
451            *
452            * @param status the status of this document library file version
453            */
454            public void setStatus(int status) {
455                    _dlFileVersion.setStatus(status);
456            }
457    
458            /**
459            * Returns the status by user ID of this document library file version.
460            *
461            * @return the status by user ID of this document library file version
462            */
463            public long getStatusByUserId() {
464                    return _dlFileVersion.getStatusByUserId();
465            }
466    
467            /**
468            * Sets the status by user ID of this document library file version.
469            *
470            * @param statusByUserId the status by user ID of this document library file version
471            */
472            public void setStatusByUserId(long statusByUserId) {
473                    _dlFileVersion.setStatusByUserId(statusByUserId);
474            }
475    
476            /**
477            * Returns the status by user uuid of this document library file version.
478            *
479            * @return the status by user uuid of this document library file version
480            * @throws SystemException if a system exception occurred
481            */
482            public java.lang.String getStatusByUserUuid()
483                    throws com.liferay.portal.kernel.exception.SystemException {
484                    return _dlFileVersion.getStatusByUserUuid();
485            }
486    
487            /**
488            * Sets the status by user uuid of this document library file version.
489            *
490            * @param statusByUserUuid the status by user uuid of this document library file version
491            */
492            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
493                    _dlFileVersion.setStatusByUserUuid(statusByUserUuid);
494            }
495    
496            /**
497            * Returns the status by user name of this document library file version.
498            *
499            * @return the status by user name of this document library file version
500            */
501            public java.lang.String getStatusByUserName() {
502                    return _dlFileVersion.getStatusByUserName();
503            }
504    
505            /**
506            * Sets the status by user name of this document library file version.
507            *
508            * @param statusByUserName the status by user name of this document library file version
509            */
510            public void setStatusByUserName(java.lang.String statusByUserName) {
511                    _dlFileVersion.setStatusByUserName(statusByUserName);
512            }
513    
514            /**
515            * Returns the status date of this document library file version.
516            *
517            * @return the status date of this document library file version
518            */
519            public java.util.Date getStatusDate() {
520                    return _dlFileVersion.getStatusDate();
521            }
522    
523            /**
524            * Sets the status date of this document library file version.
525            *
526            * @param statusDate the status date of this document library file version
527            */
528            public void setStatusDate(java.util.Date statusDate) {
529                    _dlFileVersion.setStatusDate(statusDate);
530            }
531    
532            /**
533            * @deprecated Renamed to {@link #isApproved()}
534            */
535            public boolean getApproved() {
536                    return _dlFileVersion.getApproved();
537            }
538    
539            /**
540            * Returns <code>true</code> if this document library file version is approved.
541            *
542            * @return <code>true</code> if this document library file version is approved; <code>false</code> otherwise
543            */
544            public boolean isApproved() {
545                    return _dlFileVersion.isApproved();
546            }
547    
548            /**
549            * Returns <code>true</code> if this document library file version is a draft.
550            *
551            * @return <code>true</code> if this document library file version is a draft; <code>false</code> otherwise
552            */
553            public boolean isDraft() {
554                    return _dlFileVersion.isDraft();
555            }
556    
557            /**
558            * Returns <code>true</code> if this document library file version is expired.
559            *
560            * @return <code>true</code> if this document library file version is expired; <code>false</code> otherwise
561            */
562            public boolean isExpired() {
563                    return _dlFileVersion.isExpired();
564            }
565    
566            /**
567            * Returns <code>true</code> if this document library file version is pending.
568            *
569            * @return <code>true</code> if this document library file version is pending; <code>false</code> otherwise
570            */
571            public boolean isPending() {
572                    return _dlFileVersion.isPending();
573            }
574    
575            public boolean isNew() {
576                    return _dlFileVersion.isNew();
577            }
578    
579            public void setNew(boolean n) {
580                    _dlFileVersion.setNew(n);
581            }
582    
583            public boolean isCachedModel() {
584                    return _dlFileVersion.isCachedModel();
585            }
586    
587            public void setCachedModel(boolean cachedModel) {
588                    _dlFileVersion.setCachedModel(cachedModel);
589            }
590    
591            public boolean isEscapedModel() {
592                    return _dlFileVersion.isEscapedModel();
593            }
594    
595            public java.io.Serializable getPrimaryKeyObj() {
596                    return _dlFileVersion.getPrimaryKeyObj();
597            }
598    
599            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
600                    _dlFileVersion.setPrimaryKeyObj(primaryKeyObj);
601            }
602    
603            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
604                    return _dlFileVersion.getExpandoBridge();
605            }
606    
607            public void setExpandoBridgeAttributes(
608                    com.liferay.portal.service.ServiceContext serviceContext) {
609                    _dlFileVersion.setExpandoBridgeAttributes(serviceContext);
610            }
611    
612            @Override
613            public java.lang.Object clone() {
614                    return new DLFileVersionWrapper((DLFileVersion)_dlFileVersion.clone());
615            }
616    
617            public int compareTo(
618                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion) {
619                    return _dlFileVersion.compareTo(dlFileVersion);
620            }
621    
622            @Override
623            public int hashCode() {
624                    return _dlFileVersion.hashCode();
625            }
626    
627            public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileVersion> toCacheModel() {
628                    return _dlFileVersion.toCacheModel();
629            }
630    
631            public com.liferay.portlet.documentlibrary.model.DLFileVersion toEscapedModel() {
632                    return new DLFileVersionWrapper(_dlFileVersion.toEscapedModel());
633            }
634    
635            @Override
636            public java.lang.String toString() {
637                    return _dlFileVersion.toString();
638            }
639    
640            public java.lang.String toXmlString() {
641                    return _dlFileVersion.toXmlString();
642            }
643    
644            public void persist()
645                    throws com.liferay.portal.kernel.exception.SystemException {
646                    _dlFileVersion.persist();
647            }
648    
649            public java.io.InputStream getContentStream(boolean incrementCounter)
650                    throws com.liferay.portal.kernel.exception.PortalException,
651                            com.liferay.portal.kernel.exception.SystemException {
652                    return _dlFileVersion.getContentStream(incrementCounter);
653            }
654    
655            public com.liferay.portal.kernel.util.UnicodeProperties getExtraSettingsProperties() {
656                    return _dlFileVersion.getExtraSettingsProperties();
657            }
658    
659            public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry()
660                    throws com.liferay.portal.kernel.exception.PortalException,
661                            com.liferay.portal.kernel.exception.SystemException {
662                    return _dlFileVersion.getFileEntry();
663            }
664    
665            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder() {
666                    return _dlFileVersion.getFolder();
667            }
668    
669            public java.lang.String getIcon() {
670                    return _dlFileVersion.getIcon();
671            }
672    
673            public void setExtraSettingsProperties(
674                    com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties) {
675                    _dlFileVersion.setExtraSettingsProperties(extraSettingsProperties);
676            }
677    
678            /**
679             * @deprecated Renamed to {@link #getWrappedModel}
680             */
681            public DLFileVersion getWrappedDLFileVersion() {
682                    return _dlFileVersion;
683            }
684    
685            public DLFileVersion getWrappedModel() {
686                    return _dlFileVersion;
687            }
688    
689            public void resetOriginalValues() {
690                    _dlFileVersion.resetOriginalValues();
691            }
692    
693            private DLFileVersion _dlFileVersion;
694    }