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