001    /**
002     * Copyright (c) 2000-present 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 DLFileShortcut}.
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see DLFileShortcut
034     * @generated
035     */
036    @ProviderType
037    public class DLFileShortcutWrapper implements DLFileShortcut,
038            ModelWrapper<DLFileShortcut> {
039            public DLFileShortcutWrapper(DLFileShortcut dlFileShortcut) {
040                    _dlFileShortcut = dlFileShortcut;
041            }
042    
043            @Override
044            public Class<?> getModelClass() {
045                    return DLFileShortcut.class;
046            }
047    
048            @Override
049            public String getModelClassName() {
050                    return DLFileShortcut.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("fileShortcutId", getFileShortcutId());
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("repositoryId", getRepositoryId());
066                    attributes.put("folderId", getFolderId());
067                    attributes.put("toFileEntryId", getToFileEntryId());
068                    attributes.put("treePath", getTreePath());
069                    attributes.put("active", getActive());
070                    attributes.put("status", getStatus());
071                    attributes.put("statusByUserId", getStatusByUserId());
072                    attributes.put("statusByUserName", getStatusByUserName());
073                    attributes.put("statusDate", getStatusDate());
074    
075                    return attributes;
076            }
077    
078            @Override
079            public void setModelAttributes(Map<String, Object> attributes) {
080                    String uuid = (String)attributes.get("uuid");
081    
082                    if (uuid != null) {
083                            setUuid(uuid);
084                    }
085    
086                    Long fileShortcutId = (Long)attributes.get("fileShortcutId");
087    
088                    if (fileShortcutId != null) {
089                            setFileShortcutId(fileShortcutId);
090                    }
091    
092                    Long groupId = (Long)attributes.get("groupId");
093    
094                    if (groupId != null) {
095                            setGroupId(groupId);
096                    }
097    
098                    Long companyId = (Long)attributes.get("companyId");
099    
100                    if (companyId != null) {
101                            setCompanyId(companyId);
102                    }
103    
104                    Long userId = (Long)attributes.get("userId");
105    
106                    if (userId != null) {
107                            setUserId(userId);
108                    }
109    
110                    String userName = (String)attributes.get("userName");
111    
112                    if (userName != null) {
113                            setUserName(userName);
114                    }
115    
116                    Date createDate = (Date)attributes.get("createDate");
117    
118                    if (createDate != null) {
119                            setCreateDate(createDate);
120                    }
121    
122                    Date modifiedDate = (Date)attributes.get("modifiedDate");
123    
124                    if (modifiedDate != null) {
125                            setModifiedDate(modifiedDate);
126                    }
127    
128                    Long repositoryId = (Long)attributes.get("repositoryId");
129    
130                    if (repositoryId != null) {
131                            setRepositoryId(repositoryId);
132                    }
133    
134                    Long folderId = (Long)attributes.get("folderId");
135    
136                    if (folderId != null) {
137                            setFolderId(folderId);
138                    }
139    
140                    Long toFileEntryId = (Long)attributes.get("toFileEntryId");
141    
142                    if (toFileEntryId != null) {
143                            setToFileEntryId(toFileEntryId);
144                    }
145    
146                    String treePath = (String)attributes.get("treePath");
147    
148                    if (treePath != null) {
149                            setTreePath(treePath);
150                    }
151    
152                    Boolean active = (Boolean)attributes.get("active");
153    
154                    if (active != null) {
155                            setActive(active);
156                    }
157    
158                    Integer status = (Integer)attributes.get("status");
159    
160                    if (status != null) {
161                            setStatus(status);
162                    }
163    
164                    Long statusByUserId = (Long)attributes.get("statusByUserId");
165    
166                    if (statusByUserId != null) {
167                            setStatusByUserId(statusByUserId);
168                    }
169    
170                    String statusByUserName = (String)attributes.get("statusByUserName");
171    
172                    if (statusByUserName != null) {
173                            setStatusByUserName(statusByUserName);
174                    }
175    
176                    Date statusDate = (Date)attributes.get("statusDate");
177    
178                    if (statusDate != null) {
179                            setStatusDate(statusDate);
180                    }
181            }
182    
183            @Override
184            public java.lang.String buildTreePath()
185                    throws com.liferay.portal.kernel.exception.PortalException {
186                    return _dlFileShortcut.buildTreePath();
187            }
188    
189            @Override
190            public java.lang.Object clone() {
191                    return new DLFileShortcutWrapper((DLFileShortcut)_dlFileShortcut.clone());
192            }
193    
194            @Override
195            public int compareTo(
196                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) {
197                    return _dlFileShortcut.compareTo(dlFileShortcut);
198            }
199    
200            /**
201            * Returns the active of this document library file shortcut.
202            *
203            * @return the active of this document library file shortcut
204            */
205            @Override
206            public boolean getActive() {
207                    return _dlFileShortcut.getActive();
208            }
209    
210            /**
211            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
212            */
213            @Deprecated
214            @Override
215            public boolean getApproved() {
216                    return _dlFileShortcut.getApproved();
217            }
218    
219            /**
220            * Returns the company ID of this document library file shortcut.
221            *
222            * @return the company ID of this document library file shortcut
223            */
224            @Override
225            public long getCompanyId() {
226                    return _dlFileShortcut.getCompanyId();
227            }
228    
229            /**
230            * Returns the create date of this document library file shortcut.
231            *
232            * @return the create date of this document library file shortcut
233            */
234            @Override
235            public java.util.Date getCreateDate() {
236                    return _dlFileShortcut.getCreateDate();
237            }
238    
239            @Override
240            public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder()
241                    throws com.liferay.portal.kernel.exception.PortalException {
242                    return _dlFileShortcut.getDLFolder();
243            }
244    
245            @Override
246            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
247                    return _dlFileShortcut.getExpandoBridge();
248            }
249    
250            /**
251            * Returns the file shortcut ID of this document library file shortcut.
252            *
253            * @return the file shortcut ID of this document library file shortcut
254            */
255            @Override
256            public long getFileShortcutId() {
257                    return _dlFileShortcut.getFileShortcutId();
258            }
259    
260            @Override
261            public com.liferay.portal.kernel.repository.model.Folder getFolder()
262                    throws com.liferay.portal.kernel.exception.PortalException {
263                    return _dlFileShortcut.getFolder();
264            }
265    
266            /**
267            * Returns the folder ID of this document library file shortcut.
268            *
269            * @return the folder ID of this document library file shortcut
270            */
271            @Override
272            public long getFolderId() {
273                    return _dlFileShortcut.getFolderId();
274            }
275    
276            /**
277            * Returns the group ID of this document library file shortcut.
278            *
279            * @return the group ID of this document library file shortcut
280            */
281            @Override
282            public long getGroupId() {
283                    return _dlFileShortcut.getGroupId();
284            }
285    
286            /**
287            * Returns the modified date of this document library file shortcut.
288            *
289            * @return the modified date of this document library file shortcut
290            */
291            @Override
292            public java.util.Date getModifiedDate() {
293                    return _dlFileShortcut.getModifiedDate();
294            }
295    
296            /**
297            * Returns the primary key of this document library file shortcut.
298            *
299            * @return the primary key of this document library file shortcut
300            */
301            @Override
302            public long getPrimaryKey() {
303                    return _dlFileShortcut.getPrimaryKey();
304            }
305    
306            @Override
307            public java.io.Serializable getPrimaryKeyObj() {
308                    return _dlFileShortcut.getPrimaryKeyObj();
309            }
310    
311            /**
312            * Returns the repository ID of this document library file shortcut.
313            *
314            * @return the repository ID of this document library file shortcut
315            */
316            @Override
317            public long getRepositoryId() {
318                    return _dlFileShortcut.getRepositoryId();
319            }
320    
321            /**
322            * Returns the status of this document library file shortcut.
323            *
324            * @return the status of this document library file shortcut
325            */
326            @Override
327            public int getStatus() {
328                    return _dlFileShortcut.getStatus();
329            }
330    
331            /**
332            * Returns the status by user ID of this document library file shortcut.
333            *
334            * @return the status by user ID of this document library file shortcut
335            */
336            @Override
337            public long getStatusByUserId() {
338                    return _dlFileShortcut.getStatusByUserId();
339            }
340    
341            /**
342            * Returns the status by user name of this document library file shortcut.
343            *
344            * @return the status by user name of this document library file shortcut
345            */
346            @Override
347            public java.lang.String getStatusByUserName() {
348                    return _dlFileShortcut.getStatusByUserName();
349            }
350    
351            /**
352            * Returns the status by user uuid of this document library file shortcut.
353            *
354            * @return the status by user uuid of this document library file shortcut
355            */
356            @Override
357            public java.lang.String getStatusByUserUuid() {
358                    return _dlFileShortcut.getStatusByUserUuid();
359            }
360    
361            /**
362            * Returns the status date of this document library file shortcut.
363            *
364            * @return the status date of this document library file shortcut
365            */
366            @Override
367            public java.util.Date getStatusDate() {
368                    return _dlFileShortcut.getStatusDate();
369            }
370    
371            /**
372            * Returns the to file entry ID of this document library file shortcut.
373            *
374            * @return the to file entry ID of this document library file shortcut
375            */
376            @Override
377            public long getToFileEntryId() {
378                    return _dlFileShortcut.getToFileEntryId();
379            }
380    
381            @Override
382            public java.lang.String getToTitle() {
383                    return _dlFileShortcut.getToTitle();
384            }
385    
386            /**
387            * Returns the trash entry created when this document library file shortcut was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this document library file shortcut.
388            *
389            * @return the trash entry created when this document library file shortcut was moved to the Recycle Bin
390            */
391            @Override
392            public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
393                    throws com.liferay.portal.kernel.exception.PortalException {
394                    return _dlFileShortcut.getTrashEntry();
395            }
396    
397            /**
398            * Returns the class primary key of the trash entry for this document library file shortcut.
399            *
400            * @return the class primary key of the trash entry for this document library file shortcut
401            */
402            @Override
403            public long getTrashEntryClassPK() {
404                    return _dlFileShortcut.getTrashEntryClassPK();
405            }
406    
407            /**
408            * Returns the trash handler for this document library file shortcut.
409            *
410            * @return the trash handler for this document library file shortcut
411            */
412            @Override
413            public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
414                    return _dlFileShortcut.getTrashHandler();
415            }
416    
417            /**
418            * Returns the tree path of this document library file shortcut.
419            *
420            * @return the tree path of this document library file shortcut
421            */
422            @Override
423            public java.lang.String getTreePath() {
424                    return _dlFileShortcut.getTreePath();
425            }
426    
427            /**
428            * Returns the user ID of this document library file shortcut.
429            *
430            * @return the user ID of this document library file shortcut
431            */
432            @Override
433            public long getUserId() {
434                    return _dlFileShortcut.getUserId();
435            }
436    
437            /**
438            * Returns the user name of this document library file shortcut.
439            *
440            * @return the user name of this document library file shortcut
441            */
442            @Override
443            public java.lang.String getUserName() {
444                    return _dlFileShortcut.getUserName();
445            }
446    
447            /**
448            * Returns the user uuid of this document library file shortcut.
449            *
450            * @return the user uuid of this document library file shortcut
451            */
452            @Override
453            public java.lang.String getUserUuid() {
454                    return _dlFileShortcut.getUserUuid();
455            }
456    
457            /**
458            * Returns the uuid of this document library file shortcut.
459            *
460            * @return the uuid of this document library file shortcut
461            */
462            @Override
463            public java.lang.String getUuid() {
464                    return _dlFileShortcut.getUuid();
465            }
466    
467            @Override
468            public int hashCode() {
469                    return _dlFileShortcut.hashCode();
470            }
471    
472            /**
473            * Returns <code>true</code> if this document library file shortcut is active.
474            *
475            * @return <code>true</code> if this document library file shortcut is active; <code>false</code> otherwise
476            */
477            @Override
478            public boolean isActive() {
479                    return _dlFileShortcut.isActive();
480            }
481    
482            /**
483            * Returns <code>true</code> if this document library file shortcut is approved.
484            *
485            * @return <code>true</code> if this document library file shortcut is approved; <code>false</code> otherwise
486            */
487            @Override
488            public boolean isApproved() {
489                    return _dlFileShortcut.isApproved();
490            }
491    
492            @Override
493            public boolean isCachedModel() {
494                    return _dlFileShortcut.isCachedModel();
495            }
496    
497            /**
498            * Returns <code>true</code> if this document library file shortcut is denied.
499            *
500            * @return <code>true</code> if this document library file shortcut is denied; <code>false</code> otherwise
501            */
502            @Override
503            public boolean isDenied() {
504                    return _dlFileShortcut.isDenied();
505            }
506    
507            /**
508            * Returns <code>true</code> if this document library file shortcut is a draft.
509            *
510            * @return <code>true</code> if this document library file shortcut is a draft; <code>false</code> otherwise
511            */
512            @Override
513            public boolean isDraft() {
514                    return _dlFileShortcut.isDraft();
515            }
516    
517            @Override
518            public boolean isEscapedModel() {
519                    return _dlFileShortcut.isEscapedModel();
520            }
521    
522            /**
523            * Returns <code>true</code> if this document library file shortcut is expired.
524            *
525            * @return <code>true</code> if this document library file shortcut is expired; <code>false</code> otherwise
526            */
527            @Override
528            public boolean isExpired() {
529                    return _dlFileShortcut.isExpired();
530            }
531    
532            @Override
533            public boolean isInHiddenFolder() {
534                    return _dlFileShortcut.isInHiddenFolder();
535            }
536    
537            /**
538            * Returns <code>true</code> if this document library file shortcut is in the Recycle Bin.
539            *
540            * @return <code>true</code> if this document library file shortcut is in the Recycle Bin; <code>false</code> otherwise
541            */
542            @Override
543            public boolean isInTrash() {
544                    return _dlFileShortcut.isInTrash();
545            }
546    
547            /**
548            * Returns <code>true</code> if the parent of this document library file shortcut is in the Recycle Bin.
549            *
550            * @return <code>true</code> if the parent of this document library file shortcut is in the Recycle Bin; <code>false</code> otherwise
551            */
552            @Override
553            public boolean isInTrashContainer() {
554                    return _dlFileShortcut.isInTrashContainer();
555            }
556    
557            @Override
558            public boolean isInTrashExplicitly() {
559                    return _dlFileShortcut.isInTrashExplicitly();
560            }
561    
562            @Override
563            public boolean isInTrashImplicitly() {
564                    return _dlFileShortcut.isInTrashImplicitly();
565            }
566    
567            /**
568            * Returns <code>true</code> if this document library file shortcut is inactive.
569            *
570            * @return <code>true</code> if this document library file shortcut is inactive; <code>false</code> otherwise
571            */
572            @Override
573            public boolean isInactive() {
574                    return _dlFileShortcut.isInactive();
575            }
576    
577            /**
578            * Returns <code>true</code> if this document library file shortcut is incomplete.
579            *
580            * @return <code>true</code> if this document library file shortcut is incomplete; <code>false</code> otherwise
581            */
582            @Override
583            public boolean isIncomplete() {
584                    return _dlFileShortcut.isIncomplete();
585            }
586    
587            @Override
588            public boolean isNew() {
589                    return _dlFileShortcut.isNew();
590            }
591    
592            /**
593            * Returns <code>true</code> if this document library file shortcut is pending.
594            *
595            * @return <code>true</code> if this document library file shortcut is pending; <code>false</code> otherwise
596            */
597            @Override
598            public boolean isPending() {
599                    return _dlFileShortcut.isPending();
600            }
601    
602            /**
603            * Returns <code>true</code> if this document library file shortcut is scheduled.
604            *
605            * @return <code>true</code> if this document library file shortcut is scheduled; <code>false</code> otherwise
606            */
607            @Override
608            public boolean isScheduled() {
609                    return _dlFileShortcut.isScheduled();
610            }
611    
612            @Override
613            public void persist() {
614                    _dlFileShortcut.persist();
615            }
616    
617            /**
618            * Sets whether this document library file shortcut is active.
619            *
620            * @param active the active of this document library file shortcut
621            */
622            @Override
623            public void setActive(boolean active) {
624                    _dlFileShortcut.setActive(active);
625            }
626    
627            @Override
628            public void setCachedModel(boolean cachedModel) {
629                    _dlFileShortcut.setCachedModel(cachedModel);
630            }
631    
632            /**
633            * Sets the company ID of this document library file shortcut.
634            *
635            * @param companyId the company ID of this document library file shortcut
636            */
637            @Override
638            public void setCompanyId(long companyId) {
639                    _dlFileShortcut.setCompanyId(companyId);
640            }
641    
642            /**
643            * Sets the create date of this document library file shortcut.
644            *
645            * @param createDate the create date of this document library file shortcut
646            */
647            @Override
648            public void setCreateDate(java.util.Date createDate) {
649                    _dlFileShortcut.setCreateDate(createDate);
650            }
651    
652            @Override
653            public void setExpandoBridgeAttributes(
654                    com.liferay.portal.model.BaseModel<?> baseModel) {
655                    _dlFileShortcut.setExpandoBridgeAttributes(baseModel);
656            }
657    
658            @Override
659            public void setExpandoBridgeAttributes(
660                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
661                    _dlFileShortcut.setExpandoBridgeAttributes(expandoBridge);
662            }
663    
664            @Override
665            public void setExpandoBridgeAttributes(
666                    com.liferay.portal.service.ServiceContext serviceContext) {
667                    _dlFileShortcut.setExpandoBridgeAttributes(serviceContext);
668            }
669    
670            /**
671            * Sets the file shortcut ID of this document library file shortcut.
672            *
673            * @param fileShortcutId the file shortcut ID of this document library file shortcut
674            */
675            @Override
676            public void setFileShortcutId(long fileShortcutId) {
677                    _dlFileShortcut.setFileShortcutId(fileShortcutId);
678            }
679    
680            /**
681            * Sets the folder ID of this document library file shortcut.
682            *
683            * @param folderId the folder ID of this document library file shortcut
684            */
685            @Override
686            public void setFolderId(long folderId) {
687                    _dlFileShortcut.setFolderId(folderId);
688            }
689    
690            /**
691            * Sets the group ID of this document library file shortcut.
692            *
693            * @param groupId the group ID of this document library file shortcut
694            */
695            @Override
696            public void setGroupId(long groupId) {
697                    _dlFileShortcut.setGroupId(groupId);
698            }
699    
700            /**
701            * Sets the modified date of this document library file shortcut.
702            *
703            * @param modifiedDate the modified date of this document library file shortcut
704            */
705            @Override
706            public void setModifiedDate(java.util.Date modifiedDate) {
707                    _dlFileShortcut.setModifiedDate(modifiedDate);
708            }
709    
710            @Override
711            public void setNew(boolean n) {
712                    _dlFileShortcut.setNew(n);
713            }
714    
715            /**
716            * Sets the primary key of this document library file shortcut.
717            *
718            * @param primaryKey the primary key of this document library file shortcut
719            */
720            @Override
721            public void setPrimaryKey(long primaryKey) {
722                    _dlFileShortcut.setPrimaryKey(primaryKey);
723            }
724    
725            @Override
726            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
727                    _dlFileShortcut.setPrimaryKeyObj(primaryKeyObj);
728            }
729    
730            /**
731            * Sets the repository ID of this document library file shortcut.
732            *
733            * @param repositoryId the repository ID of this document library file shortcut
734            */
735            @Override
736            public void setRepositoryId(long repositoryId) {
737                    _dlFileShortcut.setRepositoryId(repositoryId);
738            }
739    
740            /**
741            * Sets the status of this document library file shortcut.
742            *
743            * @param status the status of this document library file shortcut
744            */
745            @Override
746            public void setStatus(int status) {
747                    _dlFileShortcut.setStatus(status);
748            }
749    
750            /**
751            * Sets the status by user ID of this document library file shortcut.
752            *
753            * @param statusByUserId the status by user ID of this document library file shortcut
754            */
755            @Override
756            public void setStatusByUserId(long statusByUserId) {
757                    _dlFileShortcut.setStatusByUserId(statusByUserId);
758            }
759    
760            /**
761            * Sets the status by user name of this document library file shortcut.
762            *
763            * @param statusByUserName the status by user name of this document library file shortcut
764            */
765            @Override
766            public void setStatusByUserName(java.lang.String statusByUserName) {
767                    _dlFileShortcut.setStatusByUserName(statusByUserName);
768            }
769    
770            /**
771            * Sets the status by user uuid of this document library file shortcut.
772            *
773            * @param statusByUserUuid the status by user uuid of this document library file shortcut
774            */
775            @Override
776            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
777                    _dlFileShortcut.setStatusByUserUuid(statusByUserUuid);
778            }
779    
780            /**
781            * Sets the status date of this document library file shortcut.
782            *
783            * @param statusDate the status date of this document library file shortcut
784            */
785            @Override
786            public void setStatusDate(java.util.Date statusDate) {
787                    _dlFileShortcut.setStatusDate(statusDate);
788            }
789    
790            /**
791            * Sets the to file entry ID of this document library file shortcut.
792            *
793            * @param toFileEntryId the to file entry ID of this document library file shortcut
794            */
795            @Override
796            public void setToFileEntryId(long toFileEntryId) {
797                    _dlFileShortcut.setToFileEntryId(toFileEntryId);
798            }
799    
800            /**
801            * Sets the tree path of this document library file shortcut.
802            *
803            * @param treePath the tree path of this document library file shortcut
804            */
805            @Override
806            public void setTreePath(java.lang.String treePath) {
807                    _dlFileShortcut.setTreePath(treePath);
808            }
809    
810            /**
811            * Sets the user ID of this document library file shortcut.
812            *
813            * @param userId the user ID of this document library file shortcut
814            */
815            @Override
816            public void setUserId(long userId) {
817                    _dlFileShortcut.setUserId(userId);
818            }
819    
820            /**
821            * Sets the user name of this document library file shortcut.
822            *
823            * @param userName the user name of this document library file shortcut
824            */
825            @Override
826            public void setUserName(java.lang.String userName) {
827                    _dlFileShortcut.setUserName(userName);
828            }
829    
830            /**
831            * Sets the user uuid of this document library file shortcut.
832            *
833            * @param userUuid the user uuid of this document library file shortcut
834            */
835            @Override
836            public void setUserUuid(java.lang.String userUuid) {
837                    _dlFileShortcut.setUserUuid(userUuid);
838            }
839    
840            /**
841            * Sets the uuid of this document library file shortcut.
842            *
843            * @param uuid the uuid of this document library file shortcut
844            */
845            @Override
846            public void setUuid(java.lang.String uuid) {
847                    _dlFileShortcut.setUuid(uuid);
848            }
849    
850            @Override
851            public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileShortcut> toCacheModel() {
852                    return _dlFileShortcut.toCacheModel();
853            }
854    
855            @Override
856            public com.liferay.portlet.documentlibrary.model.DLFileShortcut toEscapedModel() {
857                    return new DLFileShortcutWrapper(_dlFileShortcut.toEscapedModel());
858            }
859    
860            @Override
861            public java.lang.String toString() {
862                    return _dlFileShortcut.toString();
863            }
864    
865            @Override
866            public com.liferay.portlet.documentlibrary.model.DLFileShortcut toUnescapedModel() {
867                    return new DLFileShortcutWrapper(_dlFileShortcut.toUnescapedModel());
868            }
869    
870            @Override
871            public java.lang.String toXmlString() {
872                    return _dlFileShortcut.toXmlString();
873            }
874    
875            @Override
876            public void updateTreePath(java.lang.String treePath) {
877                    _dlFileShortcut.updateTreePath(treePath);
878            }
879    
880            @Override
881            public boolean equals(Object obj) {
882                    if (this == obj) {
883                            return true;
884                    }
885    
886                    if (!(obj instanceof DLFileShortcutWrapper)) {
887                            return false;
888                    }
889    
890                    DLFileShortcutWrapper dlFileShortcutWrapper = (DLFileShortcutWrapper)obj;
891    
892                    if (Validator.equals(_dlFileShortcut,
893                                            dlFileShortcutWrapper._dlFileShortcut)) {
894                            return true;
895                    }
896    
897                    return false;
898            }
899    
900            @Override
901            public StagedModelType getStagedModelType() {
902                    return _dlFileShortcut.getStagedModelType();
903            }
904    
905            /**
906             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
907             */
908            @Deprecated
909            public DLFileShortcut getWrappedDLFileShortcut() {
910                    return _dlFileShortcut;
911            }
912    
913            @Override
914            public DLFileShortcut getWrappedModel() {
915                    return _dlFileShortcut;
916            }
917    
918            @Override
919            public boolean isEntityCacheEnabled() {
920                    return _dlFileShortcut.isEntityCacheEnabled();
921            }
922    
923            @Override
924            public boolean isFinderCacheEnabled() {
925                    return _dlFileShortcut.isFinderCacheEnabled();
926            }
927    
928            @Override
929            public void resetOriginalValues() {
930                    _dlFileShortcut.resetOriginalValues();
931            }
932    
933            private final DLFileShortcut _dlFileShortcut;
934    }