001
014
015 package com.liferay.portlet.documentlibrary.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class DLFolderWrapper implements DLFolder, ModelWrapper<DLFolder> {
033 public DLFolderWrapper(DLFolder dlFolder) {
034 _dlFolder = dlFolder;
035 }
036
037 public Class<?> getModelClass() {
038 return DLFolder.class;
039 }
040
041 public String getModelClassName() {
042 return DLFolder.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("uuid", getUuid());
049 attributes.put("folderId", getFolderId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("userId", getUserId());
053 attributes.put("userName", getUserName());
054 attributes.put("createDate", getCreateDate());
055 attributes.put("modifiedDate", getModifiedDate());
056 attributes.put("repositoryId", getRepositoryId());
057 attributes.put("mountPoint", getMountPoint());
058 attributes.put("parentFolderId", getParentFolderId());
059 attributes.put("name", getName());
060 attributes.put("description", getDescription());
061 attributes.put("lastPostDate", getLastPostDate());
062 attributes.put("defaultFileEntryTypeId", getDefaultFileEntryTypeId());
063 attributes.put("hidden", getHidden());
064 attributes.put("overrideFileEntryTypes", getOverrideFileEntryTypes());
065 attributes.put("status", getStatus());
066 attributes.put("statusByUserId", getStatusByUserId());
067 attributes.put("statusByUserName", getStatusByUserName());
068 attributes.put("statusDate", getStatusDate());
069
070 return attributes;
071 }
072
073 public void setModelAttributes(Map<String, Object> attributes) {
074 String uuid = (String)attributes.get("uuid");
075
076 if (uuid != null) {
077 setUuid(uuid);
078 }
079
080 Long folderId = (Long)attributes.get("folderId");
081
082 if (folderId != null) {
083 setFolderId(folderId);
084 }
085
086 Long groupId = (Long)attributes.get("groupId");
087
088 if (groupId != null) {
089 setGroupId(groupId);
090 }
091
092 Long companyId = (Long)attributes.get("companyId");
093
094 if (companyId != null) {
095 setCompanyId(companyId);
096 }
097
098 Long userId = (Long)attributes.get("userId");
099
100 if (userId != null) {
101 setUserId(userId);
102 }
103
104 String userName = (String)attributes.get("userName");
105
106 if (userName != null) {
107 setUserName(userName);
108 }
109
110 Date createDate = (Date)attributes.get("createDate");
111
112 if (createDate != null) {
113 setCreateDate(createDate);
114 }
115
116 Date modifiedDate = (Date)attributes.get("modifiedDate");
117
118 if (modifiedDate != null) {
119 setModifiedDate(modifiedDate);
120 }
121
122 Long repositoryId = (Long)attributes.get("repositoryId");
123
124 if (repositoryId != null) {
125 setRepositoryId(repositoryId);
126 }
127
128 Boolean mountPoint = (Boolean)attributes.get("mountPoint");
129
130 if (mountPoint != null) {
131 setMountPoint(mountPoint);
132 }
133
134 Long parentFolderId = (Long)attributes.get("parentFolderId");
135
136 if (parentFolderId != null) {
137 setParentFolderId(parentFolderId);
138 }
139
140 String name = (String)attributes.get("name");
141
142 if (name != null) {
143 setName(name);
144 }
145
146 String description = (String)attributes.get("description");
147
148 if (description != null) {
149 setDescription(description);
150 }
151
152 Date lastPostDate = (Date)attributes.get("lastPostDate");
153
154 if (lastPostDate != null) {
155 setLastPostDate(lastPostDate);
156 }
157
158 Long defaultFileEntryTypeId = (Long)attributes.get(
159 "defaultFileEntryTypeId");
160
161 if (defaultFileEntryTypeId != null) {
162 setDefaultFileEntryTypeId(defaultFileEntryTypeId);
163 }
164
165 Boolean hidden = (Boolean)attributes.get("hidden");
166
167 if (hidden != null) {
168 setHidden(hidden);
169 }
170
171 Boolean overrideFileEntryTypes = (Boolean)attributes.get(
172 "overrideFileEntryTypes");
173
174 if (overrideFileEntryTypes != null) {
175 setOverrideFileEntryTypes(overrideFileEntryTypes);
176 }
177
178 Integer status = (Integer)attributes.get("status");
179
180 if (status != null) {
181 setStatus(status);
182 }
183
184 Long statusByUserId = (Long)attributes.get("statusByUserId");
185
186 if (statusByUserId != null) {
187 setStatusByUserId(statusByUserId);
188 }
189
190 String statusByUserName = (String)attributes.get("statusByUserName");
191
192 if (statusByUserName != null) {
193 setStatusByUserName(statusByUserName);
194 }
195
196 Date statusDate = (Date)attributes.get("statusDate");
197
198 if (statusDate != null) {
199 setStatusDate(statusDate);
200 }
201 }
202
203
208 public long getPrimaryKey() {
209 return _dlFolder.getPrimaryKey();
210 }
211
212
217 public void setPrimaryKey(long primaryKey) {
218 _dlFolder.setPrimaryKey(primaryKey);
219 }
220
221
226 public java.lang.String getUuid() {
227 return _dlFolder.getUuid();
228 }
229
230
235 public void setUuid(java.lang.String uuid) {
236 _dlFolder.setUuid(uuid);
237 }
238
239
244 public long getFolderId() {
245 return _dlFolder.getFolderId();
246 }
247
248
253 public void setFolderId(long folderId) {
254 _dlFolder.setFolderId(folderId);
255 }
256
257
262 public long getGroupId() {
263 return _dlFolder.getGroupId();
264 }
265
266
271 public void setGroupId(long groupId) {
272 _dlFolder.setGroupId(groupId);
273 }
274
275
280 public long getCompanyId() {
281 return _dlFolder.getCompanyId();
282 }
283
284
289 public void setCompanyId(long companyId) {
290 _dlFolder.setCompanyId(companyId);
291 }
292
293
298 public long getUserId() {
299 return _dlFolder.getUserId();
300 }
301
302
307 public void setUserId(long userId) {
308 _dlFolder.setUserId(userId);
309 }
310
311
317 public java.lang.String getUserUuid()
318 throws com.liferay.portal.kernel.exception.SystemException {
319 return _dlFolder.getUserUuid();
320 }
321
322
327 public void setUserUuid(java.lang.String userUuid) {
328 _dlFolder.setUserUuid(userUuid);
329 }
330
331
336 public java.lang.String getUserName() {
337 return _dlFolder.getUserName();
338 }
339
340
345 public void setUserName(java.lang.String userName) {
346 _dlFolder.setUserName(userName);
347 }
348
349
354 public java.util.Date getCreateDate() {
355 return _dlFolder.getCreateDate();
356 }
357
358
363 public void setCreateDate(java.util.Date createDate) {
364 _dlFolder.setCreateDate(createDate);
365 }
366
367
372 public java.util.Date getModifiedDate() {
373 return _dlFolder.getModifiedDate();
374 }
375
376
381 public void setModifiedDate(java.util.Date modifiedDate) {
382 _dlFolder.setModifiedDate(modifiedDate);
383 }
384
385
390 public long getRepositoryId() {
391 return _dlFolder.getRepositoryId();
392 }
393
394
399 public void setRepositoryId(long repositoryId) {
400 _dlFolder.setRepositoryId(repositoryId);
401 }
402
403
408 public boolean getMountPoint() {
409 return _dlFolder.getMountPoint();
410 }
411
412
417 public boolean isMountPoint() {
418 return _dlFolder.isMountPoint();
419 }
420
421
426 public void setMountPoint(boolean mountPoint) {
427 _dlFolder.setMountPoint(mountPoint);
428 }
429
430
435 public long getParentFolderId() {
436 return _dlFolder.getParentFolderId();
437 }
438
439
444 public void setParentFolderId(long parentFolderId) {
445 _dlFolder.setParentFolderId(parentFolderId);
446 }
447
448
453 public java.lang.String getName() {
454 return _dlFolder.getName();
455 }
456
457
462 public void setName(java.lang.String name) {
463 _dlFolder.setName(name);
464 }
465
466
471 public java.lang.String getDescription() {
472 return _dlFolder.getDescription();
473 }
474
475
480 public void setDescription(java.lang.String description) {
481 _dlFolder.setDescription(description);
482 }
483
484
489 public java.util.Date getLastPostDate() {
490 return _dlFolder.getLastPostDate();
491 }
492
493
498 public void setLastPostDate(java.util.Date lastPostDate) {
499 _dlFolder.setLastPostDate(lastPostDate);
500 }
501
502
507 public long getDefaultFileEntryTypeId() {
508 return _dlFolder.getDefaultFileEntryTypeId();
509 }
510
511
516 public void setDefaultFileEntryTypeId(long defaultFileEntryTypeId) {
517 _dlFolder.setDefaultFileEntryTypeId(defaultFileEntryTypeId);
518 }
519
520
525 public boolean getHidden() {
526 return _dlFolder.getHidden();
527 }
528
529
534 public boolean isHidden() {
535 return _dlFolder.isHidden();
536 }
537
538
543 public void setHidden(boolean hidden) {
544 _dlFolder.setHidden(hidden);
545 }
546
547
552 public boolean getOverrideFileEntryTypes() {
553 return _dlFolder.getOverrideFileEntryTypes();
554 }
555
556
561 public boolean isOverrideFileEntryTypes() {
562 return _dlFolder.isOverrideFileEntryTypes();
563 }
564
565
570 public void setOverrideFileEntryTypes(boolean overrideFileEntryTypes) {
571 _dlFolder.setOverrideFileEntryTypes(overrideFileEntryTypes);
572 }
573
574
579 public int getStatus() {
580 return _dlFolder.getStatus();
581 }
582
583
588 public void setStatus(int status) {
589 _dlFolder.setStatus(status);
590 }
591
592
597 public long getStatusByUserId() {
598 return _dlFolder.getStatusByUserId();
599 }
600
601
606 public void setStatusByUserId(long statusByUserId) {
607 _dlFolder.setStatusByUserId(statusByUserId);
608 }
609
610
616 public java.lang.String getStatusByUserUuid()
617 throws com.liferay.portal.kernel.exception.SystemException {
618 return _dlFolder.getStatusByUserUuid();
619 }
620
621
626 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
627 _dlFolder.setStatusByUserUuid(statusByUserUuid);
628 }
629
630
635 public java.lang.String getStatusByUserName() {
636 return _dlFolder.getStatusByUserName();
637 }
638
639
644 public void setStatusByUserName(java.lang.String statusByUserName) {
645 _dlFolder.setStatusByUserName(statusByUserName);
646 }
647
648
653 public java.util.Date getStatusDate() {
654 return _dlFolder.getStatusDate();
655 }
656
657
662 public void setStatusDate(java.util.Date statusDate) {
663 _dlFolder.setStatusDate(statusDate);
664 }
665
666
669 public boolean getApproved() {
670 return _dlFolder.getApproved();
671 }
672
673
678 public boolean isApproved() {
679 return _dlFolder.isApproved();
680 }
681
682
687 public boolean isDenied() {
688 return _dlFolder.isDenied();
689 }
690
691
696 public boolean isDraft() {
697 return _dlFolder.isDraft();
698 }
699
700
705 public boolean isExpired() {
706 return _dlFolder.isExpired();
707 }
708
709
714 public boolean isInactive() {
715 return _dlFolder.isInactive();
716 }
717
718
723 public boolean isIncomplete() {
724 return _dlFolder.isIncomplete();
725 }
726
727
732 public boolean isInTrash() {
733 return _dlFolder.isInTrash();
734 }
735
736
741 public boolean isPending() {
742 return _dlFolder.isPending();
743 }
744
745
750 public boolean isScheduled() {
751 return _dlFolder.isScheduled();
752 }
753
754
759 public long getContainerModelId() {
760 return _dlFolder.getContainerModelId();
761 }
762
763
768 public void setContainerModelId(long containerModelId) {
769 _dlFolder.setContainerModelId(containerModelId);
770 }
771
772
777 public java.lang.String getContainerModelName() {
778 return _dlFolder.getContainerModelName();
779 }
780
781
786 public long getParentContainerModelId() {
787 return _dlFolder.getParentContainerModelId();
788 }
789
790
795 public void setParentContainerModelId(long parentContainerModelId) {
796 _dlFolder.setParentContainerModelId(parentContainerModelId);
797 }
798
799 public boolean isNew() {
800 return _dlFolder.isNew();
801 }
802
803 public void setNew(boolean n) {
804 _dlFolder.setNew(n);
805 }
806
807 public boolean isCachedModel() {
808 return _dlFolder.isCachedModel();
809 }
810
811 public void setCachedModel(boolean cachedModel) {
812 _dlFolder.setCachedModel(cachedModel);
813 }
814
815 public boolean isEscapedModel() {
816 return _dlFolder.isEscapedModel();
817 }
818
819 public java.io.Serializable getPrimaryKeyObj() {
820 return _dlFolder.getPrimaryKeyObj();
821 }
822
823 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
824 _dlFolder.setPrimaryKeyObj(primaryKeyObj);
825 }
826
827 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
828 return _dlFolder.getExpandoBridge();
829 }
830
831 public void setExpandoBridgeAttributes(
832 com.liferay.portal.service.ServiceContext serviceContext) {
833 _dlFolder.setExpandoBridgeAttributes(serviceContext);
834 }
835
836 @Override
837 public java.lang.Object clone() {
838 return new DLFolderWrapper((DLFolder)_dlFolder.clone());
839 }
840
841 public int compareTo(
842 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder) {
843 return _dlFolder.compareTo(dlFolder);
844 }
845
846 @Override
847 public int hashCode() {
848 return _dlFolder.hashCode();
849 }
850
851 public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFolder> toCacheModel() {
852 return _dlFolder.toCacheModel();
853 }
854
855 public com.liferay.portlet.documentlibrary.model.DLFolder toEscapedModel() {
856 return new DLFolderWrapper(_dlFolder.toEscapedModel());
857 }
858
859 public com.liferay.portlet.documentlibrary.model.DLFolder toUnescapedModel() {
860 return new DLFolderWrapper(_dlFolder.toUnescapedModel());
861 }
862
863 @Override
864 public java.lang.String toString() {
865 return _dlFolder.toString();
866 }
867
868 public java.lang.String toXmlString() {
869 return _dlFolder.toXmlString();
870 }
871
872 public void persist()
873 throws com.liferay.portal.kernel.exception.SystemException {
874 _dlFolder.persist();
875 }
876
877 public java.util.List<java.lang.Long> getAncestorFolderIds()
878 throws com.liferay.portal.kernel.exception.PortalException,
879 com.liferay.portal.kernel.exception.SystemException {
880 return _dlFolder.getAncestorFolderIds();
881 }
882
883 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getAncestors()
884 throws com.liferay.portal.kernel.exception.PortalException,
885 com.liferay.portal.kernel.exception.SystemException {
886 return _dlFolder.getAncestors();
887 }
888
889 public com.liferay.portlet.documentlibrary.model.DLFolder getParentFolder()
890 throws com.liferay.portal.kernel.exception.PortalException,
891 com.liferay.portal.kernel.exception.SystemException {
892 return _dlFolder.getParentFolder();
893 }
894
895 public java.lang.String getPath()
896 throws com.liferay.portal.kernel.exception.PortalException,
897 com.liferay.portal.kernel.exception.SystemException {
898 return _dlFolder.getPath();
899 }
900
901 public java.lang.String[] getPathArray()
902 throws com.liferay.portal.kernel.exception.PortalException,
903 com.liferay.portal.kernel.exception.SystemException {
904 return _dlFolder.getPathArray();
905 }
906
907 public com.liferay.portlet.documentlibrary.model.DLFolder getTrashContainer() {
908 return _dlFolder.getTrashContainer();
909 }
910
911 public boolean hasInheritableLock() {
912 return _dlFolder.hasInheritableLock();
913 }
914
915 public boolean hasLock() {
916 return _dlFolder.hasLock();
917 }
918
919 public boolean isInHiddenFolder() {
920 return _dlFolder.isInHiddenFolder();
921 }
922
923 public boolean isInTrashContainer() {
924 return _dlFolder.isInTrashContainer();
925 }
926
927 public boolean isLocked() {
928 return _dlFolder.isLocked();
929 }
930
931 public boolean isRoot() {
932 return _dlFolder.isRoot();
933 }
934
935
938 public DLFolder getWrappedDLFolder() {
939 return _dlFolder;
940 }
941
942 public DLFolder getWrappedModel() {
943 return _dlFolder;
944 }
945
946 public void resetOriginalValues() {
947 _dlFolder.resetOriginalValues();
948 }
949
950 private DLFolder _dlFolder;
951 }