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