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