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