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 DLFileEntryWrapper implements DLFileEntry,
033 ModelWrapper<DLFileEntry> {
034 public DLFileEntryWrapper(DLFileEntry dlFileEntry) {
035 _dlFileEntry = dlFileEntry;
036 }
037
038 public Class<?> getModelClass() {
039 return DLFileEntry.class;
040 }
041
042 public String getModelClassName() {
043 return DLFileEntry.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("uuid", getUuid());
050 attributes.put("fileEntryId", getFileEntryId());
051 attributes.put("groupId", getGroupId());
052 attributes.put("companyId", getCompanyId());
053 attributes.put("userId", getUserId());
054 attributes.put("userName", getUserName());
055 attributes.put("versionUserId", getVersionUserId());
056 attributes.put("versionUserName", getVersionUserName());
057 attributes.put("createDate", getCreateDate());
058 attributes.put("modifiedDate", getModifiedDate());
059 attributes.put("classNameId", getClassNameId());
060 attributes.put("classPK", getClassPK());
061 attributes.put("repositoryId", getRepositoryId());
062 attributes.put("folderId", getFolderId());
063 attributes.put("name", getName());
064 attributes.put("extension", getExtension());
065 attributes.put("mimeType", getMimeType());
066 attributes.put("title", getTitle());
067 attributes.put("description", getDescription());
068 attributes.put("extraSettings", getExtraSettings());
069 attributes.put("fileEntryTypeId", getFileEntryTypeId());
070 attributes.put("version", getVersion());
071 attributes.put("size", getSize());
072 attributes.put("readCount", getReadCount());
073 attributes.put("smallImageId", getSmallImageId());
074 attributes.put("largeImageId", getLargeImageId());
075 attributes.put("custom1ImageId", getCustom1ImageId());
076 attributes.put("custom2ImageId", getCustom2ImageId());
077 attributes.put("manualCheckInRequired", getManualCheckInRequired());
078
079 return attributes;
080 }
081
082 public void setModelAttributes(Map<String, Object> attributes) {
083 String uuid = (String)attributes.get("uuid");
084
085 if (uuid != null) {
086 setUuid(uuid);
087 }
088
089 Long fileEntryId = (Long)attributes.get("fileEntryId");
090
091 if (fileEntryId != null) {
092 setFileEntryId(fileEntryId);
093 }
094
095 Long groupId = (Long)attributes.get("groupId");
096
097 if (groupId != null) {
098 setGroupId(groupId);
099 }
100
101 Long companyId = (Long)attributes.get("companyId");
102
103 if (companyId != null) {
104 setCompanyId(companyId);
105 }
106
107 Long userId = (Long)attributes.get("userId");
108
109 if (userId != null) {
110 setUserId(userId);
111 }
112
113 String userName = (String)attributes.get("userName");
114
115 if (userName != null) {
116 setUserName(userName);
117 }
118
119 Long versionUserId = (Long)attributes.get("versionUserId");
120
121 if (versionUserId != null) {
122 setVersionUserId(versionUserId);
123 }
124
125 String versionUserName = (String)attributes.get("versionUserName");
126
127 if (versionUserName != null) {
128 setVersionUserName(versionUserName);
129 }
130
131 Date createDate = (Date)attributes.get("createDate");
132
133 if (createDate != null) {
134 setCreateDate(createDate);
135 }
136
137 Date modifiedDate = (Date)attributes.get("modifiedDate");
138
139 if (modifiedDate != null) {
140 setModifiedDate(modifiedDate);
141 }
142
143 Long classNameId = (Long)attributes.get("classNameId");
144
145 if (classNameId != null) {
146 setClassNameId(classNameId);
147 }
148
149 Long classPK = (Long)attributes.get("classPK");
150
151 if (classPK != null) {
152 setClassPK(classPK);
153 }
154
155 Long repositoryId = (Long)attributes.get("repositoryId");
156
157 if (repositoryId != null) {
158 setRepositoryId(repositoryId);
159 }
160
161 Long folderId = (Long)attributes.get("folderId");
162
163 if (folderId != null) {
164 setFolderId(folderId);
165 }
166
167 String name = (String)attributes.get("name");
168
169 if (name != null) {
170 setName(name);
171 }
172
173 String extension = (String)attributes.get("extension");
174
175 if (extension != null) {
176 setExtension(extension);
177 }
178
179 String mimeType = (String)attributes.get("mimeType");
180
181 if (mimeType != null) {
182 setMimeType(mimeType);
183 }
184
185 String title = (String)attributes.get("title");
186
187 if (title != null) {
188 setTitle(title);
189 }
190
191 String description = (String)attributes.get("description");
192
193 if (description != null) {
194 setDescription(description);
195 }
196
197 String extraSettings = (String)attributes.get("extraSettings");
198
199 if (extraSettings != null) {
200 setExtraSettings(extraSettings);
201 }
202
203 Long fileEntryTypeId = (Long)attributes.get("fileEntryTypeId");
204
205 if (fileEntryTypeId != null) {
206 setFileEntryTypeId(fileEntryTypeId);
207 }
208
209 String version = (String)attributes.get("version");
210
211 if (version != null) {
212 setVersion(version);
213 }
214
215 Long size = (Long)attributes.get("size");
216
217 if (size != null) {
218 setSize(size);
219 }
220
221 Integer readCount = (Integer)attributes.get("readCount");
222
223 if (readCount != null) {
224 setReadCount(readCount);
225 }
226
227 Long smallImageId = (Long)attributes.get("smallImageId");
228
229 if (smallImageId != null) {
230 setSmallImageId(smallImageId);
231 }
232
233 Long largeImageId = (Long)attributes.get("largeImageId");
234
235 if (largeImageId != null) {
236 setLargeImageId(largeImageId);
237 }
238
239 Long custom1ImageId = (Long)attributes.get("custom1ImageId");
240
241 if (custom1ImageId != null) {
242 setCustom1ImageId(custom1ImageId);
243 }
244
245 Long custom2ImageId = (Long)attributes.get("custom2ImageId");
246
247 if (custom2ImageId != null) {
248 setCustom2ImageId(custom2ImageId);
249 }
250
251 Boolean manualCheckInRequired = (Boolean)attributes.get(
252 "manualCheckInRequired");
253
254 if (manualCheckInRequired != null) {
255 setManualCheckInRequired(manualCheckInRequired);
256 }
257 }
258
259
264 public long getPrimaryKey() {
265 return _dlFileEntry.getPrimaryKey();
266 }
267
268
273 public void setPrimaryKey(long primaryKey) {
274 _dlFileEntry.setPrimaryKey(primaryKey);
275 }
276
277
282 public java.lang.String getUuid() {
283 return _dlFileEntry.getUuid();
284 }
285
286
291 public void setUuid(java.lang.String uuid) {
292 _dlFileEntry.setUuid(uuid);
293 }
294
295
300 public long getFileEntryId() {
301 return _dlFileEntry.getFileEntryId();
302 }
303
304
309 public void setFileEntryId(long fileEntryId) {
310 _dlFileEntry.setFileEntryId(fileEntryId);
311 }
312
313
318 public long getGroupId() {
319 return _dlFileEntry.getGroupId();
320 }
321
322
327 public void setGroupId(long groupId) {
328 _dlFileEntry.setGroupId(groupId);
329 }
330
331
336 public long getCompanyId() {
337 return _dlFileEntry.getCompanyId();
338 }
339
340
345 public void setCompanyId(long companyId) {
346 _dlFileEntry.setCompanyId(companyId);
347 }
348
349
354 public long getUserId() {
355 return _dlFileEntry.getUserId();
356 }
357
358
363 public void setUserId(long userId) {
364 _dlFileEntry.setUserId(userId);
365 }
366
367
373 public java.lang.String getUserUuid()
374 throws com.liferay.portal.kernel.exception.SystemException {
375 return _dlFileEntry.getUserUuid();
376 }
377
378
383 public void setUserUuid(java.lang.String userUuid) {
384 _dlFileEntry.setUserUuid(userUuid);
385 }
386
387
392 public java.lang.String getUserName() {
393 return _dlFileEntry.getUserName();
394 }
395
396
401 public void setUserName(java.lang.String userName) {
402 _dlFileEntry.setUserName(userName);
403 }
404
405
410 public long getVersionUserId() {
411 return _dlFileEntry.getVersionUserId();
412 }
413
414
419 public void setVersionUserId(long versionUserId) {
420 _dlFileEntry.setVersionUserId(versionUserId);
421 }
422
423
429 public java.lang.String getVersionUserUuid()
430 throws com.liferay.portal.kernel.exception.SystemException {
431 return _dlFileEntry.getVersionUserUuid();
432 }
433
434
439 public void setVersionUserUuid(java.lang.String versionUserUuid) {
440 _dlFileEntry.setVersionUserUuid(versionUserUuid);
441 }
442
443
448 public java.lang.String getVersionUserName() {
449 return _dlFileEntry.getVersionUserName();
450 }
451
452
457 public void setVersionUserName(java.lang.String versionUserName) {
458 _dlFileEntry.setVersionUserName(versionUserName);
459 }
460
461
466 public java.util.Date getCreateDate() {
467 return _dlFileEntry.getCreateDate();
468 }
469
470
475 public void setCreateDate(java.util.Date createDate) {
476 _dlFileEntry.setCreateDate(createDate);
477 }
478
479
484 public java.util.Date getModifiedDate() {
485 return _dlFileEntry.getModifiedDate();
486 }
487
488
493 public void setModifiedDate(java.util.Date modifiedDate) {
494 _dlFileEntry.setModifiedDate(modifiedDate);
495 }
496
497
502 public java.lang.String getClassName() {
503 return _dlFileEntry.getClassName();
504 }
505
506 public void setClassName(java.lang.String className) {
507 _dlFileEntry.setClassName(className);
508 }
509
510
515 public long getClassNameId() {
516 return _dlFileEntry.getClassNameId();
517 }
518
519
524 public void setClassNameId(long classNameId) {
525 _dlFileEntry.setClassNameId(classNameId);
526 }
527
528
533 public long getClassPK() {
534 return _dlFileEntry.getClassPK();
535 }
536
537
542 public void setClassPK(long classPK) {
543 _dlFileEntry.setClassPK(classPK);
544 }
545
546
551 public long getRepositoryId() {
552 return _dlFileEntry.getRepositoryId();
553 }
554
555
560 public void setRepositoryId(long repositoryId) {
561 _dlFileEntry.setRepositoryId(repositoryId);
562 }
563
564
569 public long getFolderId() {
570 return _dlFileEntry.getFolderId();
571 }
572
573
578 public void setFolderId(long folderId) {
579 _dlFileEntry.setFolderId(folderId);
580 }
581
582
587 public java.lang.String getName() {
588 return _dlFileEntry.getName();
589 }
590
591
596 public void setName(java.lang.String name) {
597 _dlFileEntry.setName(name);
598 }
599
600
605 public java.lang.String getExtension() {
606 return _dlFileEntry.getExtension();
607 }
608
609
614 public void setExtension(java.lang.String extension) {
615 _dlFileEntry.setExtension(extension);
616 }
617
618
623 public java.lang.String getMimeType() {
624 return _dlFileEntry.getMimeType();
625 }
626
627
632 public void setMimeType(java.lang.String mimeType) {
633 _dlFileEntry.setMimeType(mimeType);
634 }
635
636
641 public java.lang.String getTitle() {
642 return _dlFileEntry.getTitle();
643 }
644
645
650 public void setTitle(java.lang.String title) {
651 _dlFileEntry.setTitle(title);
652 }
653
654
659 public java.lang.String getDescription() {
660 return _dlFileEntry.getDescription();
661 }
662
663
668 public void setDescription(java.lang.String description) {
669 _dlFileEntry.setDescription(description);
670 }
671
672
677 public java.lang.String getExtraSettings() {
678 return _dlFileEntry.getExtraSettings();
679 }
680
681
686 public void setExtraSettings(java.lang.String extraSettings) {
687 _dlFileEntry.setExtraSettings(extraSettings);
688 }
689
690
695 public long getFileEntryTypeId() {
696 return _dlFileEntry.getFileEntryTypeId();
697 }
698
699
704 public void setFileEntryTypeId(long fileEntryTypeId) {
705 _dlFileEntry.setFileEntryTypeId(fileEntryTypeId);
706 }
707
708
713 public java.lang.String getVersion() {
714 return _dlFileEntry.getVersion();
715 }
716
717
722 public void setVersion(java.lang.String version) {
723 _dlFileEntry.setVersion(version);
724 }
725
726
731 public long getSize() {
732 return _dlFileEntry.getSize();
733 }
734
735
740 public void setSize(long size) {
741 _dlFileEntry.setSize(size);
742 }
743
744
749 public int getReadCount() {
750 return _dlFileEntry.getReadCount();
751 }
752
753
758 public void setReadCount(int readCount) {
759 _dlFileEntry.setReadCount(readCount);
760 }
761
762
767 public long getSmallImageId() {
768 return _dlFileEntry.getSmallImageId();
769 }
770
771
776 public void setSmallImageId(long smallImageId) {
777 _dlFileEntry.setSmallImageId(smallImageId);
778 }
779
780
785 public long getLargeImageId() {
786 return _dlFileEntry.getLargeImageId();
787 }
788
789
794 public void setLargeImageId(long largeImageId) {
795 _dlFileEntry.setLargeImageId(largeImageId);
796 }
797
798
803 public long getCustom1ImageId() {
804 return _dlFileEntry.getCustom1ImageId();
805 }
806
807
812 public void setCustom1ImageId(long custom1ImageId) {
813 _dlFileEntry.setCustom1ImageId(custom1ImageId);
814 }
815
816
821 public long getCustom2ImageId() {
822 return _dlFileEntry.getCustom2ImageId();
823 }
824
825
830 public void setCustom2ImageId(long custom2ImageId) {
831 _dlFileEntry.setCustom2ImageId(custom2ImageId);
832 }
833
834
839 public boolean getManualCheckInRequired() {
840 return _dlFileEntry.getManualCheckInRequired();
841 }
842
843
848 public boolean isManualCheckInRequired() {
849 return _dlFileEntry.isManualCheckInRequired();
850 }
851
852
857 public void setManualCheckInRequired(boolean manualCheckInRequired) {
858 _dlFileEntry.setManualCheckInRequired(manualCheckInRequired);
859 }
860
861 public boolean isNew() {
862 return _dlFileEntry.isNew();
863 }
864
865 public void setNew(boolean n) {
866 _dlFileEntry.setNew(n);
867 }
868
869 public boolean isCachedModel() {
870 return _dlFileEntry.isCachedModel();
871 }
872
873 public void setCachedModel(boolean cachedModel) {
874 _dlFileEntry.setCachedModel(cachedModel);
875 }
876
877 public boolean isEscapedModel() {
878 return _dlFileEntry.isEscapedModel();
879 }
880
881 public java.io.Serializable getPrimaryKeyObj() {
882 return _dlFileEntry.getPrimaryKeyObj();
883 }
884
885 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
886 _dlFileEntry.setPrimaryKeyObj(primaryKeyObj);
887 }
888
889 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
890 return _dlFileEntry.getExpandoBridge();
891 }
892
893 public void setExpandoBridgeAttributes(
894 com.liferay.portal.service.ServiceContext serviceContext) {
895 _dlFileEntry.setExpandoBridgeAttributes(serviceContext);
896 }
897
898 @Override
899 public java.lang.Object clone() {
900 return new DLFileEntryWrapper((DLFileEntry)_dlFileEntry.clone());
901 }
902
903 public int compareTo(
904 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
905 return _dlFileEntry.compareTo(dlFileEntry);
906 }
907
908 @Override
909 public int hashCode() {
910 return _dlFileEntry.hashCode();
911 }
912
913 public com.liferay.portal.model.CacheModel<com.liferay.portlet.documentlibrary.model.DLFileEntry> toCacheModel() {
914 return _dlFileEntry.toCacheModel();
915 }
916
917 public com.liferay.portlet.documentlibrary.model.DLFileEntry toEscapedModel() {
918 return new DLFileEntryWrapper(_dlFileEntry.toEscapedModel());
919 }
920
921 public com.liferay.portlet.documentlibrary.model.DLFileEntry toUnescapedModel() {
922 return new DLFileEntryWrapper(_dlFileEntry.toUnescapedModel());
923 }
924
925 @Override
926 public java.lang.String toString() {
927 return _dlFileEntry.toString();
928 }
929
930 public java.lang.String toXmlString() {
931 return _dlFileEntry.toXmlString();
932 }
933
934 public void persist()
935 throws com.liferay.portal.kernel.exception.SystemException {
936 _dlFileEntry.persist();
937 }
938
939 public java.io.InputStream getContentStream()
940 throws com.liferay.portal.kernel.exception.PortalException,
941 com.liferay.portal.kernel.exception.SystemException {
942 return _dlFileEntry.getContentStream();
943 }
944
945 public java.io.InputStream getContentStream(java.lang.String version)
946 throws com.liferay.portal.kernel.exception.PortalException,
947 com.liferay.portal.kernel.exception.SystemException {
948 return _dlFileEntry.getContentStream(version);
949 }
950
951 public long getDataRepositoryId() {
952 return _dlFileEntry.getDataRepositoryId();
953 }
954
955 public com.liferay.portal.kernel.util.UnicodeProperties getExtraSettingsProperties() {
956 return _dlFileEntry.getExtraSettingsProperties();
957 }
958
959 public java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> getFieldsMap(
960 long fileVersionId)
961 throws com.liferay.portal.kernel.exception.PortalException,
962 com.liferay.portal.kernel.exception.SystemException {
963 return _dlFileEntry.getFieldsMap(fileVersionId);
964 }
965
966 public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion()
967 throws com.liferay.portal.kernel.exception.PortalException,
968 com.liferay.portal.kernel.exception.SystemException {
969 return _dlFileEntry.getFileVersion();
970 }
971
972 public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
973 java.lang.String version)
974 throws com.liferay.portal.kernel.exception.PortalException,
975 com.liferay.portal.kernel.exception.SystemException {
976 return _dlFileEntry.getFileVersion(version);
977 }
978
979 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(
980 int status) throws com.liferay.portal.kernel.exception.SystemException {
981 return _dlFileEntry.getFileVersions(status);
982 }
983
984 public int getFileVersionsCount(int status)
985 throws com.liferay.portal.kernel.exception.SystemException {
986 return _dlFileEntry.getFileVersionsCount(status);
987 }
988
989 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder() {
990 return _dlFileEntry.getFolder();
991 }
992
993 public java.lang.String getIcon() {
994 return _dlFileEntry.getIcon();
995 }
996
997 public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
998 boolean trusted)
999 throws com.liferay.portal.kernel.exception.PortalException,
1000 com.liferay.portal.kernel.exception.SystemException {
1001 return _dlFileEntry.getLatestFileVersion(trusted);
1002 }
1003
1004 public com.liferay.portal.model.Lock getLock() {
1005 return _dlFileEntry.getLock();
1006 }
1007
1008 public java.lang.String getLuceneProperties() {
1009 return _dlFileEntry.getLuceneProperties();
1010 }
1011
1012 public com.liferay.portlet.documentlibrary.model.DLFolder getTrashContainer() {
1013 return _dlFileEntry.getTrashContainer();
1014 }
1015
1016 public boolean hasLock() {
1017 return _dlFileEntry.hasLock();
1018 }
1019
1020 public boolean isCheckedOut() {
1021 return _dlFileEntry.isCheckedOut();
1022 }
1023
1024 public boolean isInHiddenFolder() {
1025 return _dlFileEntry.isInHiddenFolder();
1026 }
1027
1028 public boolean isInTrashContainer() {
1029 return _dlFileEntry.isInTrashContainer();
1030 }
1031
1032 public void setExtraSettingsProperties(
1033 com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties) {
1034 _dlFileEntry.setExtraSettingsProperties(extraSettingsProperties);
1035 }
1036
1037
1040 public DLFileEntry getWrappedDLFileEntry() {
1041 return _dlFileEntry;
1042 }
1043
1044 public DLFileEntry getWrappedModel() {
1045 return _dlFileEntry;
1046 }
1047
1048 public void resetOriginalValues() {
1049 _dlFileEntry.resetOriginalValues();
1050 }
1051
1052 private DLFileEntry _dlFileEntry;
1053 }