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