001    /**
002     * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.lar.StagedModelType;
020    import com.liferay.portal.kernel.util.Validator;
021    import com.liferay.portal.model.ModelWrapper;
022    
023    import java.util.Date;
024    import java.util.HashMap;
025    import java.util.Map;
026    
027    /**
028     * <p>
029     * This class is a wrapper for {@link DLFileEntry}.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see DLFileEntry
034     * @generated
035     */
036    @ProviderType
037    public class DLFileEntryWrapper implements DLFileEntry,
038            ModelWrapper<DLFileEntry> {
039            public DLFileEntryWrapper(DLFileEntry dlFileEntry) {
040                    _dlFileEntry = dlFileEntry;
041            }
042    
043            @Override
044            public Class<?> getModelClass() {
045                    return DLFileEntry.class;
046            }
047    
048            @Override
049            public String getModelClassName() {
050                    return DLFileEntry.class.getName();
051            }
052    
053            @Override
054            public Map<String, Object> getModelAttributes() {
055                    Map<String, Object> attributes = new HashMap<String, Object>();
056    
057                    attributes.put("uuid", getUuid());
058                    attributes.put("fileEntryId", getFileEntryId());
059                    attributes.put("groupId", getGroupId());
060                    attributes.put("companyId", getCompanyId());
061                    attributes.put("userId", getUserId());
062                    attributes.put("userName", getUserName());
063                    attributes.put("createDate", getCreateDate());
064                    attributes.put("modifiedDate", getModifiedDate());
065                    attributes.put("classNameId", getClassNameId());
066                    attributes.put("classPK", getClassPK());
067                    attributes.put("repositoryId", getRepositoryId());
068                    attributes.put("folderId", getFolderId());
069                    attributes.put("treePath", getTreePath());
070                    attributes.put("name", getName());
071                    attributes.put("extension", getExtension());
072                    attributes.put("mimeType", getMimeType());
073                    attributes.put("title", getTitle());
074                    attributes.put("description", getDescription());
075                    attributes.put("extraSettings", getExtraSettings());
076                    attributes.put("fileEntryTypeId", getFileEntryTypeId());
077                    attributes.put("version", getVersion());
078                    attributes.put("size", getSize());
079                    attributes.put("readCount", getReadCount());
080                    attributes.put("smallImageId", getSmallImageId());
081                    attributes.put("largeImageId", getLargeImageId());
082                    attributes.put("custom1ImageId", getCustom1ImageId());
083                    attributes.put("custom2ImageId", getCustom2ImageId());
084                    attributes.put("manualCheckInRequired", getManualCheckInRequired());
085    
086                    return attributes;
087            }
088    
089            @Override
090            public void setModelAttributes(Map<String, Object> attributes) {
091                    String uuid = (String)attributes.get("uuid");
092    
093                    if (uuid != null) {
094                            setUuid(uuid);
095                    }
096    
097                    Long fileEntryId = (Long)attributes.get("fileEntryId");
098    
099                    if (fileEntryId != null) {
100                            setFileEntryId(fileEntryId);
101                    }
102    
103                    Long groupId = (Long)attributes.get("groupId");
104    
105                    if (groupId != null) {
106                            setGroupId(groupId);
107                    }
108    
109                    Long companyId = (Long)attributes.get("companyId");
110    
111                    if (companyId != null) {
112                            setCompanyId(companyId);
113                    }
114    
115                    Long userId = (Long)attributes.get("userId");
116    
117                    if (userId != null) {
118                            setUserId(userId);
119                    }
120    
121                    String userName = (String)attributes.get("userName");
122    
123                    if (userName != null) {
124                            setUserName(userName);
125                    }
126    
127                    Date createDate = (Date)attributes.get("createDate");
128    
129                    if (createDate != null) {
130                            setCreateDate(createDate);
131                    }
132    
133                    Date modifiedDate = (Date)attributes.get("modifiedDate");
134    
135                    if (modifiedDate != null) {
136                            setModifiedDate(modifiedDate);
137                    }
138    
139                    Long classNameId = (Long)attributes.get("classNameId");
140    
141                    if (classNameId != null) {
142                            setClassNameId(classNameId);
143                    }
144    
145                    Long classPK = (Long)attributes.get("classPK");
146    
147                    if (classPK != null) {
148                            setClassPK(classPK);
149                    }
150    
151                    Long repositoryId = (Long)attributes.get("repositoryId");
152    
153                    if (repositoryId != null) {
154                            setRepositoryId(repositoryId);
155                    }
156    
157                    Long folderId = (Long)attributes.get("folderId");
158    
159                    if (folderId != null) {
160                            setFolderId(folderId);
161                    }
162    
163                    String treePath = (String)attributes.get("treePath");
164    
165                    if (treePath != null) {
166                            setTreePath(treePath);
167                    }
168    
169                    String name = (String)attributes.get("name");
170    
171                    if (name != null) {
172                            setName(name);
173                    }
174    
175                    String extension = (String)attributes.get("extension");
176    
177                    if (extension != null) {
178                            setExtension(extension);
179                    }
180    
181                    String mimeType = (String)attributes.get("mimeType");
182    
183                    if (mimeType != null) {
184                            setMimeType(mimeType);
185                    }
186    
187                    String title = (String)attributes.get("title");
188    
189                    if (title != null) {
190                            setTitle(title);
191                    }
192    
193                    String description = (String)attributes.get("description");
194    
195                    if (description != null) {
196                            setDescription(description);
197                    }
198    
199                    String extraSettings = (String)attributes.get("extraSettings");
200    
201                    if (extraSettings != null) {
202                            setExtraSettings(extraSettings);
203                    }
204    
205                    Long fileEntryTypeId = (Long)attributes.get("fileEntryTypeId");
206    
207                    if (fileEntryTypeId != null) {
208                            setFileEntryTypeId(fileEntryTypeId);
209                    }
210    
211                    String version = (String)attributes.get("version");
212    
213                    if (version != null) {
214                            setVersion(version);
215                    }
216    
217                    Long size = (Long)attributes.get("size");
218    
219                    if (size != null) {
220                            setSize(size);
221                    }
222    
223                    Integer readCount = (Integer)attributes.get("readCount");
224    
225                    if (readCount != null) {
226                            setReadCount(readCount);
227                    }
228    
229                    Long smallImageId = (Long)attributes.get("smallImageId");
230    
231                    if (smallImageId != null) {
232                            setSmallImageId(smallImageId);
233                    }
234    
235                    Long largeImageId = (Long)attributes.get("largeImageId");
236    
237                    if (largeImageId != null) {
238                            setLargeImageId(largeImageId);
239                    }
240    
241                    Long custom1ImageId = (Long)attributes.get("custom1ImageId");
242    
243                    if (custom1ImageId != null) {
244                            setCustom1ImageId(custom1ImageId);
245                    }
246    
247                    Long custom2ImageId = (Long)attributes.get("custom2ImageId");
248    
249                    if (custom2ImageId != null) {
250                            setCustom2ImageId(custom2ImageId);
251                    }
252    
253                    Boolean manualCheckInRequired = (Boolean)attributes.get(
254                                    "manualCheckInRequired");
255    
256                    if (manualCheckInRequired != null) {
257                            setManualCheckInRequired(manualCheckInRequired);
258                    }
259            }
260    
261            /**
262            * Returns the primary key of this document library file entry.
263            *
264            * @return the primary key of this document library file entry
265            */
266            @Override
267            public long getPrimaryKey() {
268                    return _dlFileEntry.getPrimaryKey();
269            }
270    
271            /**
272            * Sets the primary key of this document library file entry.
273            *
274            * @param primaryKey the primary key of this document library file entry
275            */
276            @Override
277            public void setPrimaryKey(long primaryKey) {
278                    _dlFileEntry.setPrimaryKey(primaryKey);
279            }
280    
281            /**
282            * Returns the uuid of this document library file entry.
283            *
284            * @return the uuid of this document library file entry
285            */
286            @Override
287            public java.lang.String getUuid() {
288                    return _dlFileEntry.getUuid();
289            }
290    
291            /**
292            * Sets the uuid of this document library file entry.
293            *
294            * @param uuid the uuid of this document library file entry
295            */
296            @Override
297            public void setUuid(java.lang.String uuid) {
298                    _dlFileEntry.setUuid(uuid);
299            }
300    
301            /**
302            * Returns the file entry ID of this document library file entry.
303            *
304            * @return the file entry ID of this document library file entry
305            */
306            @Override
307            public long getFileEntryId() {
308                    return _dlFileEntry.getFileEntryId();
309            }
310    
311            /**
312            * Sets the file entry ID of this document library file entry.
313            *
314            * @param fileEntryId the file entry ID of this document library file entry
315            */
316            @Override
317            public void setFileEntryId(long fileEntryId) {
318                    _dlFileEntry.setFileEntryId(fileEntryId);
319            }
320    
321            /**
322            * Returns the group ID of this document library file entry.
323            *
324            * @return the group ID of this document library file entry
325            */
326            @Override
327            public long getGroupId() {
328                    return _dlFileEntry.getGroupId();
329            }
330    
331            /**
332            * Sets the group ID of this document library file entry.
333            *
334            * @param groupId the group ID of this document library file entry
335            */
336            @Override
337            public void setGroupId(long groupId) {
338                    _dlFileEntry.setGroupId(groupId);
339            }
340    
341            /**
342            * Returns the company ID of this document library file entry.
343            *
344            * @return the company ID of this document library file entry
345            */
346            @Override
347            public long getCompanyId() {
348                    return _dlFileEntry.getCompanyId();
349            }
350    
351            /**
352            * Sets the company ID of this document library file entry.
353            *
354            * @param companyId the company ID of this document library file entry
355            */
356            @Override
357            public void setCompanyId(long companyId) {
358                    _dlFileEntry.setCompanyId(companyId);
359            }
360    
361            /**
362            * Returns the user ID of this document library file entry.
363            *
364            * @return the user ID of this document library file entry
365            */
366            @Override
367            public long getUserId() {
368                    return _dlFileEntry.getUserId();
369            }
370    
371            /**
372            * Sets the user ID of this document library file entry.
373            *
374            * @param userId the user ID of this document library file entry
375            */
376            @Override
377            public void setUserId(long userId) {
378                    _dlFileEntry.setUserId(userId);
379            }
380    
381            /**
382            * Returns the user uuid of this document library file entry.
383            *
384            * @return the user uuid of this document library file entry
385            * @throws SystemException if a system exception occurred
386            */
387            @Override
388            public java.lang.String getUserUuid()
389                    throws com.liferay.portal.kernel.exception.SystemException {
390                    return _dlFileEntry.getUserUuid();
391            }
392    
393            /**
394            * Sets the user uuid of this document library file entry.
395            *
396            * @param userUuid the user uuid of this document library file entry
397            */
398            @Override
399            public void setUserUuid(java.lang.String userUuid) {
400                    _dlFileEntry.setUserUuid(userUuid);
401            }
402    
403            /**
404            * Returns the user name of this document library file entry.
405            *
406            * @return the user name of this document library file entry
407            */
408            @Override
409            public java.lang.String getUserName() {
410                    return _dlFileEntry.getUserName();
411            }
412    
413            /**
414            * Sets the user name of this document library file entry.
415            *
416            * @param userName the user name of this document library file entry
417            */
418            @Override
419            public void setUserName(java.lang.String userName) {
420                    _dlFileEntry.setUserName(userName);
421            }
422    
423            /**
424            * Returns the create date of this document library file entry.
425            *
426            * @return the create date of this document library file entry
427            */
428            @Override
429            public java.util.Date getCreateDate() {
430                    return _dlFileEntry.getCreateDate();
431            }
432    
433            /**
434            * Sets the create date of this document library file entry.
435            *
436            * @param createDate the create date of this document library file entry
437            */
438            @Override
439            public void setCreateDate(java.util.Date createDate) {
440                    _dlFileEntry.setCreateDate(createDate);
441            }
442    
443            /**
444            * Returns the modified date of this document library file entry.
445            *
446            * @return the modified date of this document library file entry
447            */
448            @Override
449            public java.util.Date getModifiedDate() {
450                    return _dlFileEntry.getModifiedDate();
451            }
452    
453            /**
454            * Sets the modified date of this document library file entry.
455            *
456            * @param modifiedDate the modified date of this document library file entry
457            */
458            @Override
459            public void setModifiedDate(java.util.Date modifiedDate) {
460                    _dlFileEntry.setModifiedDate(modifiedDate);
461            }
462    
463            /**
464            * Returns the fully qualified class name of this document library file entry.
465            *
466            * @return the fully qualified class name of this document library file entry
467            */
468            @Override
469            public java.lang.String getClassName() {
470                    return _dlFileEntry.getClassName();
471            }
472    
473            @Override
474            public void setClassName(java.lang.String className) {
475                    _dlFileEntry.setClassName(className);
476            }
477    
478            /**
479            * Returns the class name ID of this document library file entry.
480            *
481            * @return the class name ID of this document library file entry
482            */
483            @Override
484            public long getClassNameId() {
485                    return _dlFileEntry.getClassNameId();
486            }
487    
488            /**
489            * Sets the class name ID of this document library file entry.
490            *
491            * @param classNameId the class name ID of this document library file entry
492            */
493            @Override
494            public void setClassNameId(long classNameId) {
495                    _dlFileEntry.setClassNameId(classNameId);
496            }
497    
498            /**
499            * Returns the class p k of this document library file entry.
500            *
501            * @return the class p k of this document library file entry
502            */
503            @Override
504            public long getClassPK() {
505                    return _dlFileEntry.getClassPK();
506            }
507    
508            /**
509            * Sets the class p k of this document library file entry.
510            *
511            * @param classPK the class p k of this document library file entry
512            */
513            @Override
514            public void setClassPK(long classPK) {
515                    _dlFileEntry.setClassPK(classPK);
516            }
517    
518            /**
519            * Returns the repository ID of this document library file entry.
520            *
521            * @return the repository ID of this document library file entry
522            */
523            @Override
524            public long getRepositoryId() {
525                    return _dlFileEntry.getRepositoryId();
526            }
527    
528            /**
529            * Sets the repository ID of this document library file entry.
530            *
531            * @param repositoryId the repository ID of this document library file entry
532            */
533            @Override
534            public void setRepositoryId(long repositoryId) {
535                    _dlFileEntry.setRepositoryId(repositoryId);
536            }
537    
538            /**
539            * Returns the folder ID of this document library file entry.
540            *
541            * @return the folder ID of this document library file entry
542            */
543            @Override
544            public long getFolderId() {
545                    return _dlFileEntry.getFolderId();
546            }
547    
548            /**
549            * Sets the folder ID of this document library file entry.
550            *
551            * @param folderId the folder ID of this document library file entry
552            */
553            @Override
554            public void setFolderId(long folderId) {
555                    _dlFileEntry.setFolderId(folderId);
556            }
557    
558            /**
559            * Returns the tree path of this document library file entry.
560            *
561            * @return the tree path of this document library file entry
562            */
563            @Override
564            public java.lang.String getTreePath() {
565                    return _dlFileEntry.getTreePath();
566            }
567    
568            /**
569            * Sets the tree path of this document library file entry.
570            *
571            * @param treePath the tree path of this document library file entry
572            */
573            @Override
574            public void setTreePath(java.lang.String treePath) {
575                    _dlFileEntry.setTreePath(treePath);
576            }
577    
578            /**
579            * Returns the name of this document library file entry.
580            *
581            * @return the name of this document library file entry
582            */
583            @Override
584            public java.lang.String getName() {
585                    return _dlFileEntry.getName();
586            }
587    
588            /**
589            * Sets the name of this document library file entry.
590            *
591            * @param name the name of this document library file entry
592            */
593            @Override
594            public void setName(java.lang.String name) {
595                    _dlFileEntry.setName(name);
596            }
597    
598            /**
599            * Returns the extension of this document library file entry.
600            *
601            * @return the extension of this document library file entry
602            */
603            @Override
604            public java.lang.String getExtension() {
605                    return _dlFileEntry.getExtension();
606            }
607    
608            /**
609            * Sets the extension of this document library file entry.
610            *
611            * @param extension the extension of this document library file entry
612            */
613            @Override
614            public void setExtension(java.lang.String extension) {
615                    _dlFileEntry.setExtension(extension);
616            }
617    
618            /**
619            * Returns the mime type of this document library file entry.
620            *
621            * @return the mime type of this document library file entry
622            */
623            @Override
624            public java.lang.String getMimeType() {
625                    return _dlFileEntry.getMimeType();
626            }
627    
628            /**
629            * Sets the mime type of this document library file entry.
630            *
631            * @param mimeType the mime type of this document library file entry
632            */
633            @Override
634            public void setMimeType(java.lang.String mimeType) {
635                    _dlFileEntry.setMimeType(mimeType);
636            }
637    
638            /**
639            * Returns the title of this document library file entry.
640            *
641            * @return the title of this document library file entry
642            */
643            @Override
644            public java.lang.String getTitle() {
645                    return _dlFileEntry.getTitle();
646            }
647    
648            /**
649            * Sets the title of this document library file entry.
650            *
651            * @param title the title of this document library file entry
652            */
653            @Override
654            public void setTitle(java.lang.String title) {
655                    _dlFileEntry.setTitle(title);
656            }
657    
658            /**
659            * Returns the description of this document library file entry.
660            *
661            * @return the description of this document library file entry
662            */
663            @Override
664            public java.lang.String getDescription() {
665                    return _dlFileEntry.getDescription();
666            }
667    
668            /**
669            * Sets the description of this document library file entry.
670            *
671            * @param description the description of this document library file entry
672            */
673            @Override
674            public void setDescription(java.lang.String description) {
675                    _dlFileEntry.setDescription(description);
676            }
677    
678            /**
679            * Returns the extra settings of this document library file entry.
680            *
681            * @return the extra settings of this document library file entry
682            */
683            @Override
684            public java.lang.String getExtraSettings() {
685                    return _dlFileEntry.getExtraSettings();
686            }
687    
688            /**
689            * Sets the extra settings of this document library file entry.
690            *
691            * @param extraSettings the extra settings of this document library file entry
692            */
693            @Override
694            public void setExtraSettings(java.lang.String extraSettings) {
695                    _dlFileEntry.setExtraSettings(extraSettings);
696            }
697    
698            /**
699            * Returns the file entry type ID of this document library file entry.
700            *
701            * @return the file entry type ID of this document library file entry
702            */
703            @Override
704            public long getFileEntryTypeId() {
705                    return _dlFileEntry.getFileEntryTypeId();
706            }
707    
708            /**
709            * Sets the file entry type ID of this document library file entry.
710            *
711            * @param fileEntryTypeId the file entry type ID of this document library file entry
712            */
713            @Override
714            public void setFileEntryTypeId(long fileEntryTypeId) {
715                    _dlFileEntry.setFileEntryTypeId(fileEntryTypeId);
716            }
717    
718            /**
719            * Returns the version of this document library file entry.
720            *
721            * @return the version of this document library file entry
722            */
723            @Override
724            public java.lang.String getVersion() {
725                    return _dlFileEntry.getVersion();
726            }
727    
728            /**
729            * Sets the version of this document library file entry.
730            *
731            * @param version the version of this document library file entry
732            */
733            @Override
734            public void setVersion(java.lang.String version) {
735                    _dlFileEntry.setVersion(version);
736            }
737    
738            /**
739            * Returns the size of this document library file entry.
740            *
741            * @return the size of this document library file entry
742            */
743            @Override
744            public long getSize() {
745                    return _dlFileEntry.getSize();
746            }
747    
748            /**
749            * Sets the size of this document library file entry.
750            *
751            * @param size the size of this document library file entry
752            */
753            @Override
754            public void setSize(long size) {
755                    _dlFileEntry.setSize(size);
756            }
757    
758            /**
759            * Returns the read count of this document library file entry.
760            *
761            * @return the read count of this document library file entry
762            */
763            @Override
764            public int getReadCount() {
765                    return _dlFileEntry.getReadCount();
766            }
767    
768            /**
769            * Sets the read count of this document library file entry.
770            *
771            * @param readCount the read count of this document library file entry
772            */
773            @Override
774            public void setReadCount(int readCount) {
775                    _dlFileEntry.setReadCount(readCount);
776            }
777    
778            /**
779            * Returns the small image ID of this document library file entry.
780            *
781            * @return the small image ID of this document library file entry
782            */
783            @Override
784            public long getSmallImageId() {
785                    return _dlFileEntry.getSmallImageId();
786            }
787    
788            /**
789            * Sets the small image ID of this document library file entry.
790            *
791            * @param smallImageId the small image ID of this document library file entry
792            */
793            @Override
794            public void setSmallImageId(long smallImageId) {
795                    _dlFileEntry.setSmallImageId(smallImageId);
796            }
797    
798            /**
799            * Returns the large image ID of this document library file entry.
800            *
801            * @return the large image ID of this document library file entry
802            */
803            @Override
804            public long getLargeImageId() {
805                    return _dlFileEntry.getLargeImageId();
806            }
807    
808            /**
809            * Sets the large image ID of this document library file entry.
810            *
811            * @param largeImageId the large image ID of this document library file entry
812            */
813            @Override
814            public void setLargeImageId(long largeImageId) {
815                    _dlFileEntry.setLargeImageId(largeImageId);
816            }
817    
818            /**
819            * Returns the custom1 image ID of this document library file entry.
820            *
821            * @return the custom1 image ID of this document library file entry
822            */
823            @Override
824            public long getCustom1ImageId() {
825                    return _dlFileEntry.getCustom1ImageId();
826            }
827    
828            /**
829            * Sets the custom1 image ID of this document library file entry.
830            *
831            * @param custom1ImageId the custom1 image ID of this document library file entry
832            */
833            @Override
834            public void setCustom1ImageId(long custom1ImageId) {
835                    _dlFileEntry.setCustom1ImageId(custom1ImageId);
836            }
837    
838            /**
839            * Returns the custom2 image ID of this document library file entry.
840            *
841            * @return the custom2 image ID of this document library file entry
842            */
843            @Override
844            public long getCustom2ImageId() {
845                    return _dlFileEntry.getCustom2ImageId();
846            }
847    
848            /**
849            * Sets the custom2 image ID of this document library file entry.
850            *
851            * @param custom2ImageId the custom2 image ID of this document library file entry
852            */
853            @Override
854            public void setCustom2ImageId(long custom2ImageId) {
855                    _dlFileEntry.setCustom2ImageId(custom2ImageId);
856            }
857    
858            /**
859            * Returns the manual check in required of this document library file entry.
860            *
861            * @return the manual check in required of this document library file entry
862            */
863            @Override
864            public boolean getManualCheckInRequired() {
865                    return _dlFileEntry.getManualCheckInRequired();
866            }
867    
868            /**
869            * Returns <code>true</code> if this document library file entry is manual check in required.
870            *
871            * @return <code>true</code> if this document library file entry is manual check in required; <code>false</code> otherwise
872            */
873            @Override
874            public boolean isManualCheckInRequired() {
875                    return _dlFileEntry.isManualCheckInRequired();
876            }
877    
878            /**
879            * Sets whether this document library file entry is manual check in required.
880            *
881            * @param manualCheckInRequired the manual check in required of this document library file entry
882            */
883            @Override
884            public void setManualCheckInRequired(boolean manualCheckInRequired) {
885                    _dlFileEntry.setManualCheckInRequired(manualCheckInRequired);
886            }
887    
888            /**
889            * Returns the status of this document library file entry.
890            *
891            * @return the status of this document library file entry
892            */
893            @Override
894            public int getStatus() {
895                    return _dlFileEntry.getStatus();
896            }
897    
898            /**
899            * Returns the trash entry created when this document library file entry was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this document library file entry.
900            *
901            * @return the trash entry created when this document library file entry was moved to the Recycle Bin
902            * @throws SystemException if a system exception occurred
903            */
904            @Override
905            public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
906                    throws com.liferay.portal.kernel.exception.PortalException,
907                            com.liferay.portal.kernel.exception.SystemException {
908                    return _dlFileEntry.getTrashEntry();
909            }
910    
911            /**
912            * Returns the class primary key of the trash entry for this document library file entry.
913            *
914            * @return the class primary key of the trash entry for this document library file entry
915            */
916            @Override
917            public long getTrashEntryClassPK() {
918                    return _dlFileEntry.getTrashEntryClassPK();
919            }
920    
921            /**
922            * Returns the trash handler for this document library file entry.
923            *
924            * @return the trash handler for this document library file entry
925            */
926            @Override
927            public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
928                    return _dlFileEntry.getTrashHandler();
929            }
930    
931            /**
932            * Returns <code>true</code> if this document library file entry is in the Recycle Bin.
933            *
934            * @return <code>true</code> if this document library file entry is in the Recycle Bin; <code>false</code> otherwise
935            */
936            @Override
937            public boolean isInTrash() {
938                    return _dlFileEntry.isInTrash();
939            }
940    
941            /**
942            * Returns <code>true</code> if the parent of this document library file entry is in the Recycle Bin.
943            *
944            * @return <code>true</code> if the parent of this document library file entry is in the Recycle Bin; <code>false</code> otherwise
945            * @throws SystemException if a system exception occurred
946            */
947            @Override
948            public boolean isInTrashContainer() {
949                    return _dlFileEntry.isInTrashContainer();
950            }
951    
952            @Override
953            public boolean isNew() {
954                    return _dlFileEntry.isNew();
955            }
956    
957            @Override
958            public void setNew(boolean n) {
959                    _dlFileEntry.setNew(n);
960            }
961    
962            @Override
963            public boolean isCachedModel() {
964                    return _dlFileEntry.isCachedModel();
965            }
966    
967            @Override
968            public void setCachedModel(boolean cachedModel) {
969                    _dlFileEntry.setCachedModel(cachedModel);
970            }
971    
972            @Override
973            public boolean isEscapedModel() {
974                    return _dlFileEntry.isEscapedModel();
975            }
976    
977            @Override
978            public java.io.Serializable getPrimaryKeyObj() {
979                    return _dlFileEntry.getPrimaryKeyObj();
980            }
981    
982            @Override
983            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
984                    _dlFileEntry.setPrimaryKeyObj(primaryKeyObj);
985            }
986    
987            @Override
988            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
989                    return _dlFileEntry.getExpandoBridge();
990            }
991    
992            @Override
993            public void setExpandoBridgeAttributes(
994                    com.liferay.portal.model.BaseModel<?> baseModel) {
995                    _dlFileEntry.setExpandoBridgeAttributes(baseModel);
996            }
997    
998            @Override
999            public void setExpandoBridgeAttributes(
1000                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
1001                    _dlFileEntry.setExpandoBridgeAttributes(expandoBridge);
1002            }
1003    
1004            @Override
1005            public void setExpandoBridgeAttributes(
1006                    com.liferay.portal.service.ServiceContext serviceContext) {
1007                    _dlFileEntry.setExpandoBridgeAttributes(serviceContext);
1008            }
1009    
1010            @Override
1011            public java.lang.Object clone() {
1012                    return new DLFileEntryWrapper((DLFileEntry)_dlFileEntry.clone());
1013            }
1014    
1015            @Override
1016            public int compareTo(
1017                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
1018                    return _dlFileEntry.compareTo(dlFileEntry);
1019            }
1020    
1021            @Override
1022            public int hashCode() {
1023                    return _dlFileEntry.hashCode();
1024            }
1025    
1026            @Override
1027            public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileEntry> toCacheModel() {
1028                    return _dlFileEntry.toCacheModel();
1029            }
1030    
1031            @Override
1032            public com.liferay.portlet.documentlibrary.model.DLFileEntry toEscapedModel() {
1033                    return new DLFileEntryWrapper(_dlFileEntry.toEscapedModel());
1034            }
1035    
1036            @Override
1037            public com.liferay.portlet.documentlibrary.model.DLFileEntry toUnescapedModel() {
1038                    return new DLFileEntryWrapper(_dlFileEntry.toUnescapedModel());
1039            }
1040    
1041            @Override
1042            public java.lang.String toString() {
1043                    return _dlFileEntry.toString();
1044            }
1045    
1046            @Override
1047            public java.lang.String toXmlString() {
1048                    return _dlFileEntry.toXmlString();
1049            }
1050    
1051            @Override
1052            public void persist()
1053                    throws com.liferay.portal.kernel.exception.SystemException {
1054                    _dlFileEntry.persist();
1055            }
1056    
1057            @Override
1058            public void updateTreePath(java.lang.String treePath)
1059                    throws com.liferay.portal.kernel.exception.SystemException {
1060                    _dlFileEntry.updateTreePath(treePath);
1061            }
1062    
1063            @Override
1064            public java.lang.String buildTreePath()
1065                    throws com.liferay.portal.kernel.exception.PortalException,
1066                            com.liferay.portal.kernel.exception.SystemException {
1067                    return _dlFileEntry.buildTreePath();
1068            }
1069    
1070            @Override
1071            public java.io.InputStream getContentStream()
1072                    throws com.liferay.portal.kernel.exception.PortalException,
1073                            com.liferay.portal.kernel.exception.SystemException {
1074                    return _dlFileEntry.getContentStream();
1075            }
1076    
1077            @Override
1078            public java.io.InputStream getContentStream(java.lang.String version)
1079                    throws com.liferay.portal.kernel.exception.PortalException,
1080                            com.liferay.portal.kernel.exception.SystemException {
1081                    return _dlFileEntry.getContentStream(version);
1082            }
1083    
1084            @Override
1085            public long getDataRepositoryId() {
1086                    return _dlFileEntry.getDataRepositoryId();
1087            }
1088    
1089            @Override
1090            public com.liferay.portal.kernel.util.UnicodeProperties getExtraSettingsProperties() {
1091                    return _dlFileEntry.getExtraSettingsProperties();
1092            }
1093    
1094            @Override
1095            public java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> getFieldsMap(
1096                    long fileVersionId)
1097                    throws com.liferay.portal.kernel.exception.PortalException,
1098                            com.liferay.portal.kernel.exception.SystemException {
1099                    return _dlFileEntry.getFieldsMap(fileVersionId);
1100            }
1101    
1102            @Override
1103            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion()
1104                    throws com.liferay.portal.kernel.exception.PortalException,
1105                            com.liferay.portal.kernel.exception.SystemException {
1106                    return _dlFileEntry.getFileVersion();
1107            }
1108    
1109            @Override
1110            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
1111                    java.lang.String version)
1112                    throws com.liferay.portal.kernel.exception.PortalException,
1113                            com.liferay.portal.kernel.exception.SystemException {
1114                    return _dlFileEntry.getFileVersion(version);
1115            }
1116    
1117            @Override
1118            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(
1119                    int status) throws com.liferay.portal.kernel.exception.SystemException {
1120                    return _dlFileEntry.getFileVersions(status);
1121            }
1122    
1123            @Override
1124            public int getFileVersionsCount(int status)
1125                    throws com.liferay.portal.kernel.exception.SystemException {
1126                    return _dlFileEntry.getFileVersionsCount(status);
1127            }
1128    
1129            @Override
1130            public com.liferay.portlet.documentlibrary.model.DLFolder getFolder()
1131                    throws com.liferay.portal.kernel.exception.PortalException,
1132                            com.liferay.portal.kernel.exception.SystemException {
1133                    return _dlFileEntry.getFolder();
1134            }
1135    
1136            @Override
1137            public java.lang.String getIcon() {
1138                    return _dlFileEntry.getIcon();
1139            }
1140    
1141            @Override
1142            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
1143                    boolean trusted)
1144                    throws com.liferay.portal.kernel.exception.PortalException,
1145                            com.liferay.portal.kernel.exception.SystemException {
1146                    return _dlFileEntry.getLatestFileVersion(trusted);
1147            }
1148    
1149            @Override
1150            public com.liferay.portal.model.Lock getLock() {
1151                    return _dlFileEntry.getLock();
1152            }
1153    
1154            @Override
1155            public java.lang.String getLuceneProperties() {
1156                    return _dlFileEntry.getLuceneProperties();
1157            }
1158    
1159            /**
1160            * @deprecated As of 6.2.0, replaced by {@link DLFileVersion#getUserId()}
1161            */
1162            @Override
1163            public long getVersionUserId() {
1164                    return _dlFileEntry.getVersionUserId();
1165            }
1166    
1167            /**
1168            * @deprecated As of 6.2.0, replaced by {@link DLFileVersion#getUserName()}
1169            */
1170            @Override
1171            public java.lang.String getVersionUserName() {
1172                    return _dlFileEntry.getVersionUserName();
1173            }
1174    
1175            /**
1176            * @deprecated As of 6.2.0, replaced by {@link DLFileVersion#getUserUuid()}
1177            */
1178            @Override
1179            public java.lang.String getVersionUserUuid() {
1180                    return _dlFileEntry.getVersionUserUuid();
1181            }
1182    
1183            @Override
1184            public boolean hasLock() {
1185                    return _dlFileEntry.hasLock();
1186            }
1187    
1188            @Override
1189            public boolean isCheckedOut() {
1190                    return _dlFileEntry.isCheckedOut();
1191            }
1192    
1193            @Override
1194            public boolean isInHiddenFolder() {
1195                    return _dlFileEntry.isInHiddenFolder();
1196            }
1197    
1198            @Override
1199            public boolean isInTrashExplicitly()
1200                    throws com.liferay.portal.kernel.exception.SystemException {
1201                    return _dlFileEntry.isInTrashExplicitly();
1202            }
1203    
1204            @Override
1205            public void setExtraSettingsProperties(
1206                    com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties) {
1207                    _dlFileEntry.setExtraSettingsProperties(extraSettingsProperties);
1208            }
1209    
1210            @Override
1211            public boolean equals(Object obj) {
1212                    if (this == obj) {
1213                            return true;
1214                    }
1215    
1216                    if (!(obj instanceof DLFileEntryWrapper)) {
1217                            return false;
1218                    }
1219    
1220                    DLFileEntryWrapper dlFileEntryWrapper = (DLFileEntryWrapper)obj;
1221    
1222                    if (Validator.equals(_dlFileEntry, dlFileEntryWrapper._dlFileEntry)) {
1223                            return true;
1224                    }
1225    
1226                    return false;
1227            }
1228    
1229            @Override
1230            public StagedModelType getStagedModelType() {
1231                    return _dlFileEntry.getStagedModelType();
1232            }
1233    
1234            /**
1235             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1236             */
1237            public DLFileEntry getWrappedDLFileEntry() {
1238                    return _dlFileEntry;
1239            }
1240    
1241            @Override
1242            public DLFileEntry getWrappedModel() {
1243                    return _dlFileEntry;
1244            }
1245    
1246            @Override
1247            public void resetOriginalValues() {
1248                    _dlFileEntry.resetOriginalValues();
1249            }
1250    
1251            private DLFileEntry _dlFileEntry;
1252    }