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