001
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
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
188 @Override
189 public long getPrimaryKey() {
190 return _dlFileShortcut.getPrimaryKey();
191 }
192
193
198 @Override
199 public void setPrimaryKey(long primaryKey) {
200 _dlFileShortcut.setPrimaryKey(primaryKey);
201 }
202
203
208 @Override
209 public java.lang.String getUuid() {
210 return _dlFileShortcut.getUuid();
211 }
212
213
218 @Override
219 public void setUuid(java.lang.String uuid) {
220 _dlFileShortcut.setUuid(uuid);
221 }
222
223
228 @Override
229 public long getFileShortcutId() {
230 return _dlFileShortcut.getFileShortcutId();
231 }
232
233
238 @Override
239 public void setFileShortcutId(long fileShortcutId) {
240 _dlFileShortcut.setFileShortcutId(fileShortcutId);
241 }
242
243
248 @Override
249 public long getGroupId() {
250 return _dlFileShortcut.getGroupId();
251 }
252
253
258 @Override
259 public void setGroupId(long groupId) {
260 _dlFileShortcut.setGroupId(groupId);
261 }
262
263
268 @Override
269 public long getCompanyId() {
270 return _dlFileShortcut.getCompanyId();
271 }
272
273
278 @Override
279 public void setCompanyId(long companyId) {
280 _dlFileShortcut.setCompanyId(companyId);
281 }
282
283
288 @Override
289 public long getUserId() {
290 return _dlFileShortcut.getUserId();
291 }
292
293
298 @Override
299 public void setUserId(long userId) {
300 _dlFileShortcut.setUserId(userId);
301 }
302
303
309 @Override
310 public java.lang.String getUserUuid()
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return _dlFileShortcut.getUserUuid();
313 }
314
315
320 @Override
321 public void setUserUuid(java.lang.String userUuid) {
322 _dlFileShortcut.setUserUuid(userUuid);
323 }
324
325
330 @Override
331 public java.lang.String getUserName() {
332 return _dlFileShortcut.getUserName();
333 }
334
335
340 @Override
341 public void setUserName(java.lang.String userName) {
342 _dlFileShortcut.setUserName(userName);
343 }
344
345
350 @Override
351 public java.util.Date getCreateDate() {
352 return _dlFileShortcut.getCreateDate();
353 }
354
355
360 @Override
361 public void setCreateDate(java.util.Date createDate) {
362 _dlFileShortcut.setCreateDate(createDate);
363 }
364
365
370 @Override
371 public java.util.Date getModifiedDate() {
372 return _dlFileShortcut.getModifiedDate();
373 }
374
375
380 @Override
381 public void setModifiedDate(java.util.Date modifiedDate) {
382 _dlFileShortcut.setModifiedDate(modifiedDate);
383 }
384
385
390 @Override
391 public long getRepositoryId() {
392 return _dlFileShortcut.getRepositoryId();
393 }
394
395
400 @Override
401 public void setRepositoryId(long repositoryId) {
402 _dlFileShortcut.setRepositoryId(repositoryId);
403 }
404
405
410 @Override
411 public long getFolderId() {
412 return _dlFileShortcut.getFolderId();
413 }
414
415
420 @Override
421 public void setFolderId(long folderId) {
422 _dlFileShortcut.setFolderId(folderId);
423 }
424
425
430 @Override
431 public long getToFileEntryId() {
432 return _dlFileShortcut.getToFileEntryId();
433 }
434
435
440 @Override
441 public void setToFileEntryId(long toFileEntryId) {
442 _dlFileShortcut.setToFileEntryId(toFileEntryId);
443 }
444
445
450 @Override
451 public java.lang.String getTreePath() {
452 return _dlFileShortcut.getTreePath();
453 }
454
455
460 @Override
461 public void setTreePath(java.lang.String treePath) {
462 _dlFileShortcut.setTreePath(treePath);
463 }
464
465
470 @Override
471 public boolean getActive() {
472 return _dlFileShortcut.getActive();
473 }
474
475
480 @Override
481 public boolean isActive() {
482 return _dlFileShortcut.isActive();
483 }
484
485
490 @Override
491 public void setActive(boolean active) {
492 _dlFileShortcut.setActive(active);
493 }
494
495
500 @Override
501 public int getStatus() {
502 return _dlFileShortcut.getStatus();
503 }
504
505
510 @Override
511 public void setStatus(int status) {
512 _dlFileShortcut.setStatus(status);
513 }
514
515
520 @Override
521 public long getStatusByUserId() {
522 return _dlFileShortcut.getStatusByUserId();
523 }
524
525
530 @Override
531 public void setStatusByUserId(long statusByUserId) {
532 _dlFileShortcut.setStatusByUserId(statusByUserId);
533 }
534
535
541 @Override
542 public java.lang.String getStatusByUserUuid()
543 throws com.liferay.portal.kernel.exception.SystemException {
544 return _dlFileShortcut.getStatusByUserUuid();
545 }
546
547
552 @Override
553 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
554 _dlFileShortcut.setStatusByUserUuid(statusByUserUuid);
555 }
556
557
562 @Override
563 public java.lang.String getStatusByUserName() {
564 return _dlFileShortcut.getStatusByUserName();
565 }
566
567
572 @Override
573 public void setStatusByUserName(java.lang.String statusByUserName) {
574 _dlFileShortcut.setStatusByUserName(statusByUserName);
575 }
576
577
582 @Override
583 public java.util.Date getStatusDate() {
584 return _dlFileShortcut.getStatusDate();
585 }
586
587
592 @Override
593 public void setStatusDate(java.util.Date statusDate) {
594 _dlFileShortcut.setStatusDate(statusDate);
595 }
596
597
603 @Override
604 public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
605 throws com.liferay.portal.kernel.exception.PortalException,
606 com.liferay.portal.kernel.exception.SystemException {
607 return _dlFileShortcut.getTrashEntry();
608 }
609
610
615 @Override
616 public long getTrashEntryClassPK() {
617 return _dlFileShortcut.getTrashEntryClassPK();
618 }
619
620
625 @Override
626 public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
627 return _dlFileShortcut.getTrashHandler();
628 }
629
630
635 @Override
636 public boolean isInTrash() {
637 return _dlFileShortcut.isInTrash();
638 }
639
640
646 @Override
647 public boolean isInTrashContainer() {
648 return _dlFileShortcut.isInTrashContainer();
649 }
650
651
654 @Override
655 public boolean getApproved() {
656 return _dlFileShortcut.getApproved();
657 }
658
659
664 @Override
665 public boolean isApproved() {
666 return _dlFileShortcut.isApproved();
667 }
668
669
674 @Override
675 public boolean isDenied() {
676 return _dlFileShortcut.isDenied();
677 }
678
679
684 @Override
685 public boolean isDraft() {
686 return _dlFileShortcut.isDraft();
687 }
688
689
694 @Override
695 public boolean isExpired() {
696 return _dlFileShortcut.isExpired();
697 }
698
699
704 @Override
705 public boolean isInactive() {
706 return _dlFileShortcut.isInactive();
707 }
708
709
714 @Override
715 public boolean isIncomplete() {
716 return _dlFileShortcut.isIncomplete();
717 }
718
719
724 @Override
725 public boolean isPending() {
726 return _dlFileShortcut.isPending();
727 }
728
729
734 @Override
735 public boolean isScheduled() {
736 return _dlFileShortcut.isScheduled();
737 }
738
739 @Override
740 public boolean isNew() {
741 return _dlFileShortcut.isNew();
742 }
743
744 @Override
745 public void setNew(boolean n) {
746 _dlFileShortcut.setNew(n);
747 }
748
749 @Override
750 public boolean isCachedModel() {
751 return _dlFileShortcut.isCachedModel();
752 }
753
754 @Override
755 public void setCachedModel(boolean cachedModel) {
756 _dlFileShortcut.setCachedModel(cachedModel);
757 }
758
759 @Override
760 public boolean isEscapedModel() {
761 return _dlFileShortcut.isEscapedModel();
762 }
763
764 @Override
765 public java.io.Serializable getPrimaryKeyObj() {
766 return _dlFileShortcut.getPrimaryKeyObj();
767 }
768
769 @Override
770 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
771 _dlFileShortcut.setPrimaryKeyObj(primaryKeyObj);
772 }
773
774 @Override
775 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
776 return _dlFileShortcut.getExpandoBridge();
777 }
778
779 @Override
780 public void setExpandoBridgeAttributes(
781 com.liferay.portal.model.BaseModel<?> baseModel) {
782 _dlFileShortcut.setExpandoBridgeAttributes(baseModel);
783 }
784
785 @Override
786 public void setExpandoBridgeAttributes(
787 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
788 _dlFileShortcut.setExpandoBridgeAttributes(expandoBridge);
789 }
790
791 @Override
792 public void setExpandoBridgeAttributes(
793 com.liferay.portal.service.ServiceContext serviceContext) {
794 _dlFileShortcut.setExpandoBridgeAttributes(serviceContext);
795 }
796
797 @Override
798 public java.lang.Object clone() {
799 return new DLFileShortcutWrapper((DLFileShortcut)_dlFileShortcut.clone());
800 }
801
802 @Override
803 public int compareTo(
804 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) {
805 return _dlFileShortcut.compareTo(dlFileShortcut);
806 }
807
808 @Override
809 public int hashCode() {
810 return _dlFileShortcut.hashCode();
811 }
812
813 @Override
814 public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileShortcut> toCacheModel() {
815 return _dlFileShortcut.toCacheModel();
816 }
817
818 @Override
819 public com.liferay.portlet.documentlibrary.model.DLFileShortcut toEscapedModel() {
820 return new DLFileShortcutWrapper(_dlFileShortcut.toEscapedModel());
821 }
822
823 @Override
824 public com.liferay.portlet.documentlibrary.model.DLFileShortcut toUnescapedModel() {
825 return new DLFileShortcutWrapper(_dlFileShortcut.toUnescapedModel());
826 }
827
828 @Override
829 public java.lang.String toString() {
830 return _dlFileShortcut.toString();
831 }
832
833 @Override
834 public java.lang.String toXmlString() {
835 return _dlFileShortcut.toXmlString();
836 }
837
838 @Override
839 public void persist()
840 throws com.liferay.portal.kernel.exception.SystemException {
841 _dlFileShortcut.persist();
842 }
843
844 @Override
845 public void updateTreePath(java.lang.String treePath)
846 throws com.liferay.portal.kernel.exception.SystemException {
847 _dlFileShortcut.updateTreePath(treePath);
848 }
849
850 @Override
851 public java.lang.String buildTreePath()
852 throws com.liferay.portal.kernel.exception.PortalException,
853 com.liferay.portal.kernel.exception.SystemException {
854 return _dlFileShortcut.buildTreePath();
855 }
856
857 @Override
858 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder()
859 throws com.liferay.portal.kernel.exception.PortalException,
860 com.liferay.portal.kernel.exception.SystemException {
861 return _dlFileShortcut.getDLFolder();
862 }
863
864 @Override
865 public com.liferay.portal.kernel.repository.model.Folder getFolder()
866 throws com.liferay.portal.kernel.exception.PortalException,
867 com.liferay.portal.kernel.exception.SystemException {
868 return _dlFileShortcut.getFolder();
869 }
870
871 @Override
872 public java.lang.String getToTitle() {
873 return _dlFileShortcut.getToTitle();
874 }
875
876 @Override
877 public boolean isInHiddenFolder() {
878 return _dlFileShortcut.isInHiddenFolder();
879 }
880
881 @Override
882 public boolean isInTrashExplicitly()
883 throws com.liferay.portal.kernel.exception.SystemException {
884 return _dlFileShortcut.isInTrashExplicitly();
885 }
886
887 @Override
888 public boolean equals(Object obj) {
889 if (this == obj) {
890 return true;
891 }
892
893 if (!(obj instanceof DLFileShortcutWrapper)) {
894 return false;
895 }
896
897 DLFileShortcutWrapper dlFileShortcutWrapper = (DLFileShortcutWrapper)obj;
898
899 if (Validator.equals(_dlFileShortcut,
900 dlFileShortcutWrapper._dlFileShortcut)) {
901 return true;
902 }
903
904 return false;
905 }
906
907 @Override
908 public StagedModelType getStagedModelType() {
909 return _dlFileShortcut.getStagedModelType();
910 }
911
912
915 public DLFileShortcut getWrappedDLFileShortcut() {
916 return _dlFileShortcut;
917 }
918
919 @Override
920 public DLFileShortcut getWrappedModel() {
921 return _dlFileShortcut;
922 }
923
924 @Override
925 public void resetOriginalValues() {
926 _dlFileShortcut.resetOriginalValues();
927 }
928
929 private DLFileShortcut _dlFileShortcut;
930 }