001
014
015 package com.liferay.portlet.asset.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 AssetEntryWrapper implements AssetEntry, ModelWrapper<AssetEntry> {
033 public AssetEntryWrapper(AssetEntry assetEntry) {
034 _assetEntry = assetEntry;
035 }
036
037 public Class<?> getModelClass() {
038 return AssetEntry.class;
039 }
040
041 public String getModelClassName() {
042 return AssetEntry.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("entryId", getEntryId());
049 attributes.put("groupId", getGroupId());
050 attributes.put("companyId", getCompanyId());
051 attributes.put("userId", getUserId());
052 attributes.put("userName", getUserName());
053 attributes.put("createDate", getCreateDate());
054 attributes.put("modifiedDate", getModifiedDate());
055 attributes.put("classNameId", getClassNameId());
056 attributes.put("classPK", getClassPK());
057 attributes.put("classUuid", getClassUuid());
058 attributes.put("classTypeId", getClassTypeId());
059 attributes.put("visible", getVisible());
060 attributes.put("startDate", getStartDate());
061 attributes.put("endDate", getEndDate());
062 attributes.put("publishDate", getPublishDate());
063 attributes.put("expirationDate", getExpirationDate());
064 attributes.put("mimeType", getMimeType());
065 attributes.put("title", getTitle());
066 attributes.put("description", getDescription());
067 attributes.put("summary", getSummary());
068 attributes.put("url", getUrl());
069 attributes.put("layoutUuid", getLayoutUuid());
070 attributes.put("height", getHeight());
071 attributes.put("width", getWidth());
072 attributes.put("priority", getPriority());
073 attributes.put("viewCount", getViewCount());
074
075 return attributes;
076 }
077
078 public void setModelAttributes(Map<String, Object> attributes) {
079 Long entryId = (Long)attributes.get("entryId");
080
081 if (entryId != null) {
082 setEntryId(entryId);
083 }
084
085 Long groupId = (Long)attributes.get("groupId");
086
087 if (groupId != null) {
088 setGroupId(groupId);
089 }
090
091 Long companyId = (Long)attributes.get("companyId");
092
093 if (companyId != null) {
094 setCompanyId(companyId);
095 }
096
097 Long userId = (Long)attributes.get("userId");
098
099 if (userId != null) {
100 setUserId(userId);
101 }
102
103 String userName = (String)attributes.get("userName");
104
105 if (userName != null) {
106 setUserName(userName);
107 }
108
109 Date createDate = (Date)attributes.get("createDate");
110
111 if (createDate != null) {
112 setCreateDate(createDate);
113 }
114
115 Date modifiedDate = (Date)attributes.get("modifiedDate");
116
117 if (modifiedDate != null) {
118 setModifiedDate(modifiedDate);
119 }
120
121 Long classNameId = (Long)attributes.get("classNameId");
122
123 if (classNameId != null) {
124 setClassNameId(classNameId);
125 }
126
127 Long classPK = (Long)attributes.get("classPK");
128
129 if (classPK != null) {
130 setClassPK(classPK);
131 }
132
133 String classUuid = (String)attributes.get("classUuid");
134
135 if (classUuid != null) {
136 setClassUuid(classUuid);
137 }
138
139 Long classTypeId = (Long)attributes.get("classTypeId");
140
141 if (classTypeId != null) {
142 setClassTypeId(classTypeId);
143 }
144
145 Boolean visible = (Boolean)attributes.get("visible");
146
147 if (visible != null) {
148 setVisible(visible);
149 }
150
151 Date startDate = (Date)attributes.get("startDate");
152
153 if (startDate != null) {
154 setStartDate(startDate);
155 }
156
157 Date endDate = (Date)attributes.get("endDate");
158
159 if (endDate != null) {
160 setEndDate(endDate);
161 }
162
163 Date publishDate = (Date)attributes.get("publishDate");
164
165 if (publishDate != null) {
166 setPublishDate(publishDate);
167 }
168
169 Date expirationDate = (Date)attributes.get("expirationDate");
170
171 if (expirationDate != null) {
172 setExpirationDate(expirationDate);
173 }
174
175 String mimeType = (String)attributes.get("mimeType");
176
177 if (mimeType != null) {
178 setMimeType(mimeType);
179 }
180
181 String title = (String)attributes.get("title");
182
183 if (title != null) {
184 setTitle(title);
185 }
186
187 String description = (String)attributes.get("description");
188
189 if (description != null) {
190 setDescription(description);
191 }
192
193 String summary = (String)attributes.get("summary");
194
195 if (summary != null) {
196 setSummary(summary);
197 }
198
199 String url = (String)attributes.get("url");
200
201 if (url != null) {
202 setUrl(url);
203 }
204
205 String layoutUuid = (String)attributes.get("layoutUuid");
206
207 if (layoutUuid != null) {
208 setLayoutUuid(layoutUuid);
209 }
210
211 Integer height = (Integer)attributes.get("height");
212
213 if (height != null) {
214 setHeight(height);
215 }
216
217 Integer width = (Integer)attributes.get("width");
218
219 if (width != null) {
220 setWidth(width);
221 }
222
223 Double priority = (Double)attributes.get("priority");
224
225 if (priority != null) {
226 setPriority(priority);
227 }
228
229 Integer viewCount = (Integer)attributes.get("viewCount");
230
231 if (viewCount != null) {
232 setViewCount(viewCount);
233 }
234 }
235
236
241 public long getPrimaryKey() {
242 return _assetEntry.getPrimaryKey();
243 }
244
245
250 public void setPrimaryKey(long primaryKey) {
251 _assetEntry.setPrimaryKey(primaryKey);
252 }
253
254
259 public long getEntryId() {
260 return _assetEntry.getEntryId();
261 }
262
263
268 public void setEntryId(long entryId) {
269 _assetEntry.setEntryId(entryId);
270 }
271
272
277 public long getGroupId() {
278 return _assetEntry.getGroupId();
279 }
280
281
286 public void setGroupId(long groupId) {
287 _assetEntry.setGroupId(groupId);
288 }
289
290
295 public long getCompanyId() {
296 return _assetEntry.getCompanyId();
297 }
298
299
304 public void setCompanyId(long companyId) {
305 _assetEntry.setCompanyId(companyId);
306 }
307
308
313 public long getUserId() {
314 return _assetEntry.getUserId();
315 }
316
317
322 public void setUserId(long userId) {
323 _assetEntry.setUserId(userId);
324 }
325
326
332 public java.lang.String getUserUuid()
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return _assetEntry.getUserUuid();
335 }
336
337
342 public void setUserUuid(java.lang.String userUuid) {
343 _assetEntry.setUserUuid(userUuid);
344 }
345
346
351 public java.lang.String getUserName() {
352 return _assetEntry.getUserName();
353 }
354
355
360 public void setUserName(java.lang.String userName) {
361 _assetEntry.setUserName(userName);
362 }
363
364
369 public java.util.Date getCreateDate() {
370 return _assetEntry.getCreateDate();
371 }
372
373
378 public void setCreateDate(java.util.Date createDate) {
379 _assetEntry.setCreateDate(createDate);
380 }
381
382
387 public java.util.Date getModifiedDate() {
388 return _assetEntry.getModifiedDate();
389 }
390
391
396 public void setModifiedDate(java.util.Date modifiedDate) {
397 _assetEntry.setModifiedDate(modifiedDate);
398 }
399
400
405 public java.lang.String getClassName() {
406 return _assetEntry.getClassName();
407 }
408
409 public void setClassName(java.lang.String className) {
410 _assetEntry.setClassName(className);
411 }
412
413
418 public long getClassNameId() {
419 return _assetEntry.getClassNameId();
420 }
421
422
427 public void setClassNameId(long classNameId) {
428 _assetEntry.setClassNameId(classNameId);
429 }
430
431
436 public long getClassPK() {
437 return _assetEntry.getClassPK();
438 }
439
440
445 public void setClassPK(long classPK) {
446 _assetEntry.setClassPK(classPK);
447 }
448
449
454 public java.lang.String getClassUuid() {
455 return _assetEntry.getClassUuid();
456 }
457
458
463 public void setClassUuid(java.lang.String classUuid) {
464 _assetEntry.setClassUuid(classUuid);
465 }
466
467
472 public long getClassTypeId() {
473 return _assetEntry.getClassTypeId();
474 }
475
476
481 public void setClassTypeId(long classTypeId) {
482 _assetEntry.setClassTypeId(classTypeId);
483 }
484
485
490 public boolean getVisible() {
491 return _assetEntry.getVisible();
492 }
493
494
499 public boolean isVisible() {
500 return _assetEntry.isVisible();
501 }
502
503
508 public void setVisible(boolean visible) {
509 _assetEntry.setVisible(visible);
510 }
511
512
517 public java.util.Date getStartDate() {
518 return _assetEntry.getStartDate();
519 }
520
521
526 public void setStartDate(java.util.Date startDate) {
527 _assetEntry.setStartDate(startDate);
528 }
529
530
535 public java.util.Date getEndDate() {
536 return _assetEntry.getEndDate();
537 }
538
539
544 public void setEndDate(java.util.Date endDate) {
545 _assetEntry.setEndDate(endDate);
546 }
547
548
553 public java.util.Date getPublishDate() {
554 return _assetEntry.getPublishDate();
555 }
556
557
562 public void setPublishDate(java.util.Date publishDate) {
563 _assetEntry.setPublishDate(publishDate);
564 }
565
566
571 public java.util.Date getExpirationDate() {
572 return _assetEntry.getExpirationDate();
573 }
574
575
580 public void setExpirationDate(java.util.Date expirationDate) {
581 _assetEntry.setExpirationDate(expirationDate);
582 }
583
584
589 public java.lang.String getMimeType() {
590 return _assetEntry.getMimeType();
591 }
592
593
598 public void setMimeType(java.lang.String mimeType) {
599 _assetEntry.setMimeType(mimeType);
600 }
601
602
607 public java.lang.String getTitle() {
608 return _assetEntry.getTitle();
609 }
610
611
617 public java.lang.String getTitle(java.util.Locale locale) {
618 return _assetEntry.getTitle(locale);
619 }
620
621
628 public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
629 return _assetEntry.getTitle(locale, useDefault);
630 }
631
632
638 public java.lang.String getTitle(java.lang.String languageId) {
639 return _assetEntry.getTitle(languageId);
640 }
641
642
649 public java.lang.String getTitle(java.lang.String languageId,
650 boolean useDefault) {
651 return _assetEntry.getTitle(languageId, useDefault);
652 }
653
654 public java.lang.String getTitleCurrentLanguageId() {
655 return _assetEntry.getTitleCurrentLanguageId();
656 }
657
658 public java.lang.String getTitleCurrentValue() {
659 return _assetEntry.getTitleCurrentValue();
660 }
661
662
667 public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
668 return _assetEntry.getTitleMap();
669 }
670
671
676 public void setTitle(java.lang.String title) {
677 _assetEntry.setTitle(title);
678 }
679
680
686 public void setTitle(java.lang.String title, java.util.Locale locale) {
687 _assetEntry.setTitle(title, locale);
688 }
689
690
697 public void setTitle(java.lang.String title, java.util.Locale locale,
698 java.util.Locale defaultLocale) {
699 _assetEntry.setTitle(title, locale, defaultLocale);
700 }
701
702 public void setTitleCurrentLanguageId(java.lang.String languageId) {
703 _assetEntry.setTitleCurrentLanguageId(languageId);
704 }
705
706
711 public void setTitleMap(
712 java.util.Map<java.util.Locale, java.lang.String> titleMap) {
713 _assetEntry.setTitleMap(titleMap);
714 }
715
716
722 public void setTitleMap(
723 java.util.Map<java.util.Locale, java.lang.String> titleMap,
724 java.util.Locale defaultLocale) {
725 _assetEntry.setTitleMap(titleMap, defaultLocale);
726 }
727
728
733 public java.lang.String getDescription() {
734 return _assetEntry.getDescription();
735 }
736
737
743 public java.lang.String getDescription(java.util.Locale locale) {
744 return _assetEntry.getDescription(locale);
745 }
746
747
754 public java.lang.String getDescription(java.util.Locale locale,
755 boolean useDefault) {
756 return _assetEntry.getDescription(locale, useDefault);
757 }
758
759
765 public java.lang.String getDescription(java.lang.String languageId) {
766 return _assetEntry.getDescription(languageId);
767 }
768
769
776 public java.lang.String getDescription(java.lang.String languageId,
777 boolean useDefault) {
778 return _assetEntry.getDescription(languageId, useDefault);
779 }
780
781 public java.lang.String getDescriptionCurrentLanguageId() {
782 return _assetEntry.getDescriptionCurrentLanguageId();
783 }
784
785 public java.lang.String getDescriptionCurrentValue() {
786 return _assetEntry.getDescriptionCurrentValue();
787 }
788
789
794 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
795 return _assetEntry.getDescriptionMap();
796 }
797
798
803 public void setDescription(java.lang.String description) {
804 _assetEntry.setDescription(description);
805 }
806
807
813 public void setDescription(java.lang.String description,
814 java.util.Locale locale) {
815 _assetEntry.setDescription(description, locale);
816 }
817
818
825 public void setDescription(java.lang.String description,
826 java.util.Locale locale, java.util.Locale defaultLocale) {
827 _assetEntry.setDescription(description, locale, defaultLocale);
828 }
829
830 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
831 _assetEntry.setDescriptionCurrentLanguageId(languageId);
832 }
833
834
839 public void setDescriptionMap(
840 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
841 _assetEntry.setDescriptionMap(descriptionMap);
842 }
843
844
850 public void setDescriptionMap(
851 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
852 java.util.Locale defaultLocale) {
853 _assetEntry.setDescriptionMap(descriptionMap, defaultLocale);
854 }
855
856
861 public java.lang.String getSummary() {
862 return _assetEntry.getSummary();
863 }
864
865
871 public java.lang.String getSummary(java.util.Locale locale) {
872 return _assetEntry.getSummary(locale);
873 }
874
875
882 public java.lang.String getSummary(java.util.Locale locale,
883 boolean useDefault) {
884 return _assetEntry.getSummary(locale, useDefault);
885 }
886
887
893 public java.lang.String getSummary(java.lang.String languageId) {
894 return _assetEntry.getSummary(languageId);
895 }
896
897
904 public java.lang.String getSummary(java.lang.String languageId,
905 boolean useDefault) {
906 return _assetEntry.getSummary(languageId, useDefault);
907 }
908
909 public java.lang.String getSummaryCurrentLanguageId() {
910 return _assetEntry.getSummaryCurrentLanguageId();
911 }
912
913 public java.lang.String getSummaryCurrentValue() {
914 return _assetEntry.getSummaryCurrentValue();
915 }
916
917
922 public java.util.Map<java.util.Locale, java.lang.String> getSummaryMap() {
923 return _assetEntry.getSummaryMap();
924 }
925
926
931 public void setSummary(java.lang.String summary) {
932 _assetEntry.setSummary(summary);
933 }
934
935
941 public void setSummary(java.lang.String summary, java.util.Locale locale) {
942 _assetEntry.setSummary(summary, locale);
943 }
944
945
952 public void setSummary(java.lang.String summary, java.util.Locale locale,
953 java.util.Locale defaultLocale) {
954 _assetEntry.setSummary(summary, locale, defaultLocale);
955 }
956
957 public void setSummaryCurrentLanguageId(java.lang.String languageId) {
958 _assetEntry.setSummaryCurrentLanguageId(languageId);
959 }
960
961
966 public void setSummaryMap(
967 java.util.Map<java.util.Locale, java.lang.String> summaryMap) {
968 _assetEntry.setSummaryMap(summaryMap);
969 }
970
971
977 public void setSummaryMap(
978 java.util.Map<java.util.Locale, java.lang.String> summaryMap,
979 java.util.Locale defaultLocale) {
980 _assetEntry.setSummaryMap(summaryMap, defaultLocale);
981 }
982
983
988 public java.lang.String getUrl() {
989 return _assetEntry.getUrl();
990 }
991
992
997 public void setUrl(java.lang.String url) {
998 _assetEntry.setUrl(url);
999 }
1000
1001
1006 public java.lang.String getLayoutUuid() {
1007 return _assetEntry.getLayoutUuid();
1008 }
1009
1010
1015 public void setLayoutUuid(java.lang.String layoutUuid) {
1016 _assetEntry.setLayoutUuid(layoutUuid);
1017 }
1018
1019
1024 public int getHeight() {
1025 return _assetEntry.getHeight();
1026 }
1027
1028
1033 public void setHeight(int height) {
1034 _assetEntry.setHeight(height);
1035 }
1036
1037
1042 public int getWidth() {
1043 return _assetEntry.getWidth();
1044 }
1045
1046
1051 public void setWidth(int width) {
1052 _assetEntry.setWidth(width);
1053 }
1054
1055
1060 public double getPriority() {
1061 return _assetEntry.getPriority();
1062 }
1063
1064
1069 public void setPriority(double priority) {
1070 _assetEntry.setPriority(priority);
1071 }
1072
1073
1078 public int getViewCount() {
1079 return _assetEntry.getViewCount();
1080 }
1081
1082
1087 public void setViewCount(int viewCount) {
1088 _assetEntry.setViewCount(viewCount);
1089 }
1090
1091 public boolean isNew() {
1092 return _assetEntry.isNew();
1093 }
1094
1095 public void setNew(boolean n) {
1096 _assetEntry.setNew(n);
1097 }
1098
1099 public boolean isCachedModel() {
1100 return _assetEntry.isCachedModel();
1101 }
1102
1103 public void setCachedModel(boolean cachedModel) {
1104 _assetEntry.setCachedModel(cachedModel);
1105 }
1106
1107 public boolean isEscapedModel() {
1108 return _assetEntry.isEscapedModel();
1109 }
1110
1111 public java.io.Serializable getPrimaryKeyObj() {
1112 return _assetEntry.getPrimaryKeyObj();
1113 }
1114
1115 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1116 _assetEntry.setPrimaryKeyObj(primaryKeyObj);
1117 }
1118
1119 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1120 return _assetEntry.getExpandoBridge();
1121 }
1122
1123 public void setExpandoBridgeAttributes(
1124 com.liferay.portal.service.ServiceContext serviceContext) {
1125 _assetEntry.setExpandoBridgeAttributes(serviceContext);
1126 }
1127
1128 public void prepareLocalizedFieldsForImport(
1129 java.util.Locale defaultImportLocale)
1130 throws com.liferay.portal.LocaleException {
1131 _assetEntry.prepareLocalizedFieldsForImport(defaultImportLocale);
1132 }
1133
1134 @Override
1135 public java.lang.Object clone() {
1136 return new AssetEntryWrapper((AssetEntry)_assetEntry.clone());
1137 }
1138
1139 public int compareTo(com.liferay.portlet.asset.model.AssetEntry assetEntry) {
1140 return _assetEntry.compareTo(assetEntry);
1141 }
1142
1143 @Override
1144 public int hashCode() {
1145 return _assetEntry.hashCode();
1146 }
1147
1148 public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetEntry> toCacheModel() {
1149 return _assetEntry.toCacheModel();
1150 }
1151
1152 public com.liferay.portlet.asset.model.AssetEntry toEscapedModel() {
1153 return new AssetEntryWrapper(_assetEntry.toEscapedModel());
1154 }
1155
1156 @Override
1157 public java.lang.String toString() {
1158 return _assetEntry.toString();
1159 }
1160
1161 public java.lang.String toXmlString() {
1162 return _assetEntry.toXmlString();
1163 }
1164
1165 public void persist()
1166 throws com.liferay.portal.kernel.exception.SystemException {
1167 _assetEntry.persist();
1168 }
1169
1170 public com.liferay.portlet.asset.model.AssetRenderer getAssetRenderer() {
1171 return _assetEntry.getAssetRenderer();
1172 }
1173
1174 public com.liferay.portlet.asset.model.AssetRendererFactory getAssetRendererFactory() {
1175 return _assetEntry.getAssetRendererFactory();
1176 }
1177
1178 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
1179 throws com.liferay.portal.kernel.exception.SystemException {
1180 return _assetEntry.getCategories();
1181 }
1182
1183 public long[] getCategoryIds()
1184 throws com.liferay.portal.kernel.exception.SystemException {
1185 return _assetEntry.getCategoryIds();
1186 }
1187
1188 public java.lang.String[] getTagNames()
1189 throws com.liferay.portal.kernel.exception.SystemException {
1190 return _assetEntry.getTagNames();
1191 }
1192
1193 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
1194 throws com.liferay.portal.kernel.exception.SystemException {
1195 return _assetEntry.getTags();
1196 }
1197
1198
1201 public AssetEntry getWrappedAssetEntry() {
1202 return _assetEntry;
1203 }
1204
1205 public AssetEntry getWrappedModel() {
1206 return _assetEntry;
1207 }
1208
1209 public void resetOriginalValues() {
1210 _assetEntry.resetOriginalValues();
1211 }
1212
1213 private AssetEntry _assetEntry;
1214 }