001
014
015 package com.liferay.portlet.asset.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018 import com.liferay.portal.model.ModelWrapper;
019
020 import java.util.Date;
021 import java.util.HashMap;
022 import java.util.Map;
023
024
033 public class AssetEntryWrapper implements AssetEntry, ModelWrapper<AssetEntry> {
034 public AssetEntryWrapper(AssetEntry assetEntry) {
035 _assetEntry = assetEntry;
036 }
037
038 public Class<?> getModelClass() {
039 return AssetEntry.class;
040 }
041
042 public String getModelClassName() {
043 return AssetEntry.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("entryId", getEntryId());
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("classNameId", getClassNameId());
057 attributes.put("classPK", getClassPK());
058 attributes.put("classUuid", getClassUuid());
059 attributes.put("classTypeId", getClassTypeId());
060 attributes.put("visible", getVisible());
061 attributes.put("startDate", getStartDate());
062 attributes.put("endDate", getEndDate());
063 attributes.put("publishDate", getPublishDate());
064 attributes.put("expirationDate", getExpirationDate());
065 attributes.put("mimeType", getMimeType());
066 attributes.put("title", getTitle());
067 attributes.put("description", getDescription());
068 attributes.put("summary", getSummary());
069 attributes.put("url", getUrl());
070 attributes.put("layoutUuid", getLayoutUuid());
071 attributes.put("height", getHeight());
072 attributes.put("width", getWidth());
073 attributes.put("priority", getPriority());
074 attributes.put("viewCount", getViewCount());
075
076 return attributes;
077 }
078
079 public void setModelAttributes(Map<String, Object> attributes) {
080 Long entryId = (Long)attributes.get("entryId");
081
082 if (entryId != null) {
083 setEntryId(entryId);
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 classNameId = (Long)attributes.get("classNameId");
123
124 if (classNameId != null) {
125 setClassNameId(classNameId);
126 }
127
128 Long classPK = (Long)attributes.get("classPK");
129
130 if (classPK != null) {
131 setClassPK(classPK);
132 }
133
134 String classUuid = (String)attributes.get("classUuid");
135
136 if (classUuid != null) {
137 setClassUuid(classUuid);
138 }
139
140 Long classTypeId = (Long)attributes.get("classTypeId");
141
142 if (classTypeId != null) {
143 setClassTypeId(classTypeId);
144 }
145
146 Boolean visible = (Boolean)attributes.get("visible");
147
148 if (visible != null) {
149 setVisible(visible);
150 }
151
152 Date startDate = (Date)attributes.get("startDate");
153
154 if (startDate != null) {
155 setStartDate(startDate);
156 }
157
158 Date endDate = (Date)attributes.get("endDate");
159
160 if (endDate != null) {
161 setEndDate(endDate);
162 }
163
164 Date publishDate = (Date)attributes.get("publishDate");
165
166 if (publishDate != null) {
167 setPublishDate(publishDate);
168 }
169
170 Date expirationDate = (Date)attributes.get("expirationDate");
171
172 if (expirationDate != null) {
173 setExpirationDate(expirationDate);
174 }
175
176 String mimeType = (String)attributes.get("mimeType");
177
178 if (mimeType != null) {
179 setMimeType(mimeType);
180 }
181
182 String title = (String)attributes.get("title");
183
184 if (title != null) {
185 setTitle(title);
186 }
187
188 String description = (String)attributes.get("description");
189
190 if (description != null) {
191 setDescription(description);
192 }
193
194 String summary = (String)attributes.get("summary");
195
196 if (summary != null) {
197 setSummary(summary);
198 }
199
200 String url = (String)attributes.get("url");
201
202 if (url != null) {
203 setUrl(url);
204 }
205
206 String layoutUuid = (String)attributes.get("layoutUuid");
207
208 if (layoutUuid != null) {
209 setLayoutUuid(layoutUuid);
210 }
211
212 Integer height = (Integer)attributes.get("height");
213
214 if (height != null) {
215 setHeight(height);
216 }
217
218 Integer width = (Integer)attributes.get("width");
219
220 if (width != null) {
221 setWidth(width);
222 }
223
224 Double priority = (Double)attributes.get("priority");
225
226 if (priority != null) {
227 setPriority(priority);
228 }
229
230 Integer viewCount = (Integer)attributes.get("viewCount");
231
232 if (viewCount != null) {
233 setViewCount(viewCount);
234 }
235 }
236
237
242 public long getPrimaryKey() {
243 return _assetEntry.getPrimaryKey();
244 }
245
246
251 public void setPrimaryKey(long primaryKey) {
252 _assetEntry.setPrimaryKey(primaryKey);
253 }
254
255
260 public long getEntryId() {
261 return _assetEntry.getEntryId();
262 }
263
264
269 public void setEntryId(long entryId) {
270 _assetEntry.setEntryId(entryId);
271 }
272
273
278 public long getGroupId() {
279 return _assetEntry.getGroupId();
280 }
281
282
287 public void setGroupId(long groupId) {
288 _assetEntry.setGroupId(groupId);
289 }
290
291
296 public long getCompanyId() {
297 return _assetEntry.getCompanyId();
298 }
299
300
305 public void setCompanyId(long companyId) {
306 _assetEntry.setCompanyId(companyId);
307 }
308
309
314 public long getUserId() {
315 return _assetEntry.getUserId();
316 }
317
318
323 public void setUserId(long userId) {
324 _assetEntry.setUserId(userId);
325 }
326
327
333 public java.lang.String getUserUuid()
334 throws com.liferay.portal.kernel.exception.SystemException {
335 return _assetEntry.getUserUuid();
336 }
337
338
343 public void setUserUuid(java.lang.String userUuid) {
344 _assetEntry.setUserUuid(userUuid);
345 }
346
347
352 public java.lang.String getUserName() {
353 return _assetEntry.getUserName();
354 }
355
356
361 public void setUserName(java.lang.String userName) {
362 _assetEntry.setUserName(userName);
363 }
364
365
370 public java.util.Date getCreateDate() {
371 return _assetEntry.getCreateDate();
372 }
373
374
379 public void setCreateDate(java.util.Date createDate) {
380 _assetEntry.setCreateDate(createDate);
381 }
382
383
388 public java.util.Date getModifiedDate() {
389 return _assetEntry.getModifiedDate();
390 }
391
392
397 public void setModifiedDate(java.util.Date modifiedDate) {
398 _assetEntry.setModifiedDate(modifiedDate);
399 }
400
401
406 public java.lang.String getClassName() {
407 return _assetEntry.getClassName();
408 }
409
410 public void setClassName(java.lang.String className) {
411 _assetEntry.setClassName(className);
412 }
413
414
419 public long getClassNameId() {
420 return _assetEntry.getClassNameId();
421 }
422
423
428 public void setClassNameId(long classNameId) {
429 _assetEntry.setClassNameId(classNameId);
430 }
431
432
437 public long getClassPK() {
438 return _assetEntry.getClassPK();
439 }
440
441
446 public void setClassPK(long classPK) {
447 _assetEntry.setClassPK(classPK);
448 }
449
450
455 public java.lang.String getClassUuid() {
456 return _assetEntry.getClassUuid();
457 }
458
459
464 public void setClassUuid(java.lang.String classUuid) {
465 _assetEntry.setClassUuid(classUuid);
466 }
467
468
473 public long getClassTypeId() {
474 return _assetEntry.getClassTypeId();
475 }
476
477
482 public void setClassTypeId(long classTypeId) {
483 _assetEntry.setClassTypeId(classTypeId);
484 }
485
486
491 public boolean getVisible() {
492 return _assetEntry.getVisible();
493 }
494
495
500 public boolean isVisible() {
501 return _assetEntry.isVisible();
502 }
503
504
509 public void setVisible(boolean visible) {
510 _assetEntry.setVisible(visible);
511 }
512
513
518 public java.util.Date getStartDate() {
519 return _assetEntry.getStartDate();
520 }
521
522
527 public void setStartDate(java.util.Date startDate) {
528 _assetEntry.setStartDate(startDate);
529 }
530
531
536 public java.util.Date getEndDate() {
537 return _assetEntry.getEndDate();
538 }
539
540
545 public void setEndDate(java.util.Date endDate) {
546 _assetEntry.setEndDate(endDate);
547 }
548
549
554 public java.util.Date getPublishDate() {
555 return _assetEntry.getPublishDate();
556 }
557
558
563 public void setPublishDate(java.util.Date publishDate) {
564 _assetEntry.setPublishDate(publishDate);
565 }
566
567
572 public java.util.Date getExpirationDate() {
573 return _assetEntry.getExpirationDate();
574 }
575
576
581 public void setExpirationDate(java.util.Date expirationDate) {
582 _assetEntry.setExpirationDate(expirationDate);
583 }
584
585
590 public java.lang.String getMimeType() {
591 return _assetEntry.getMimeType();
592 }
593
594
599 public void setMimeType(java.lang.String mimeType) {
600 _assetEntry.setMimeType(mimeType);
601 }
602
603
608 public java.lang.String getTitle() {
609 return _assetEntry.getTitle();
610 }
611
612
618 public java.lang.String getTitle(java.util.Locale locale) {
619 return _assetEntry.getTitle(locale);
620 }
621
622
629 public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
630 return _assetEntry.getTitle(locale, useDefault);
631 }
632
633
639 public java.lang.String getTitle(java.lang.String languageId) {
640 return _assetEntry.getTitle(languageId);
641 }
642
643
650 public java.lang.String getTitle(java.lang.String languageId,
651 boolean useDefault) {
652 return _assetEntry.getTitle(languageId, useDefault);
653 }
654
655 public java.lang.String getTitleCurrentLanguageId() {
656 return _assetEntry.getTitleCurrentLanguageId();
657 }
658
659 public java.lang.String getTitleCurrentValue() {
660 return _assetEntry.getTitleCurrentValue();
661 }
662
663
668 public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
669 return _assetEntry.getTitleMap();
670 }
671
672
677 public void setTitle(java.lang.String title) {
678 _assetEntry.setTitle(title);
679 }
680
681
687 public void setTitle(java.lang.String title, java.util.Locale locale) {
688 _assetEntry.setTitle(title, locale);
689 }
690
691
698 public void setTitle(java.lang.String title, java.util.Locale locale,
699 java.util.Locale defaultLocale) {
700 _assetEntry.setTitle(title, locale, defaultLocale);
701 }
702
703 public void setTitleCurrentLanguageId(java.lang.String languageId) {
704 _assetEntry.setTitleCurrentLanguageId(languageId);
705 }
706
707
712 public void setTitleMap(
713 java.util.Map<java.util.Locale, java.lang.String> titleMap) {
714 _assetEntry.setTitleMap(titleMap);
715 }
716
717
723 public void setTitleMap(
724 java.util.Map<java.util.Locale, java.lang.String> titleMap,
725 java.util.Locale defaultLocale) {
726 _assetEntry.setTitleMap(titleMap, defaultLocale);
727 }
728
729
734 public java.lang.String getDescription() {
735 return _assetEntry.getDescription();
736 }
737
738
744 public java.lang.String getDescription(java.util.Locale locale) {
745 return _assetEntry.getDescription(locale);
746 }
747
748
755 public java.lang.String getDescription(java.util.Locale locale,
756 boolean useDefault) {
757 return _assetEntry.getDescription(locale, useDefault);
758 }
759
760
766 public java.lang.String getDescription(java.lang.String languageId) {
767 return _assetEntry.getDescription(languageId);
768 }
769
770
777 public java.lang.String getDescription(java.lang.String languageId,
778 boolean useDefault) {
779 return _assetEntry.getDescription(languageId, useDefault);
780 }
781
782 public java.lang.String getDescriptionCurrentLanguageId() {
783 return _assetEntry.getDescriptionCurrentLanguageId();
784 }
785
786 public java.lang.String getDescriptionCurrentValue() {
787 return _assetEntry.getDescriptionCurrentValue();
788 }
789
790
795 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
796 return _assetEntry.getDescriptionMap();
797 }
798
799
804 public void setDescription(java.lang.String description) {
805 _assetEntry.setDescription(description);
806 }
807
808
814 public void setDescription(java.lang.String description,
815 java.util.Locale locale) {
816 _assetEntry.setDescription(description, locale);
817 }
818
819
826 public void setDescription(java.lang.String description,
827 java.util.Locale locale, java.util.Locale defaultLocale) {
828 _assetEntry.setDescription(description, locale, defaultLocale);
829 }
830
831 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
832 _assetEntry.setDescriptionCurrentLanguageId(languageId);
833 }
834
835
840 public void setDescriptionMap(
841 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
842 _assetEntry.setDescriptionMap(descriptionMap);
843 }
844
845
851 public void setDescriptionMap(
852 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
853 java.util.Locale defaultLocale) {
854 _assetEntry.setDescriptionMap(descriptionMap, defaultLocale);
855 }
856
857
862 public java.lang.String getSummary() {
863 return _assetEntry.getSummary();
864 }
865
866
872 public java.lang.String getSummary(java.util.Locale locale) {
873 return _assetEntry.getSummary(locale);
874 }
875
876
883 public java.lang.String getSummary(java.util.Locale locale,
884 boolean useDefault) {
885 return _assetEntry.getSummary(locale, useDefault);
886 }
887
888
894 public java.lang.String getSummary(java.lang.String languageId) {
895 return _assetEntry.getSummary(languageId);
896 }
897
898
905 public java.lang.String getSummary(java.lang.String languageId,
906 boolean useDefault) {
907 return _assetEntry.getSummary(languageId, useDefault);
908 }
909
910 public java.lang.String getSummaryCurrentLanguageId() {
911 return _assetEntry.getSummaryCurrentLanguageId();
912 }
913
914 public java.lang.String getSummaryCurrentValue() {
915 return _assetEntry.getSummaryCurrentValue();
916 }
917
918
923 public java.util.Map<java.util.Locale, java.lang.String> getSummaryMap() {
924 return _assetEntry.getSummaryMap();
925 }
926
927
932 public void setSummary(java.lang.String summary) {
933 _assetEntry.setSummary(summary);
934 }
935
936
942 public void setSummary(java.lang.String summary, java.util.Locale locale) {
943 _assetEntry.setSummary(summary, locale);
944 }
945
946
953 public void setSummary(java.lang.String summary, java.util.Locale locale,
954 java.util.Locale defaultLocale) {
955 _assetEntry.setSummary(summary, locale, defaultLocale);
956 }
957
958 public void setSummaryCurrentLanguageId(java.lang.String languageId) {
959 _assetEntry.setSummaryCurrentLanguageId(languageId);
960 }
961
962
967 public void setSummaryMap(
968 java.util.Map<java.util.Locale, java.lang.String> summaryMap) {
969 _assetEntry.setSummaryMap(summaryMap);
970 }
971
972
978 public void setSummaryMap(
979 java.util.Map<java.util.Locale, java.lang.String> summaryMap,
980 java.util.Locale defaultLocale) {
981 _assetEntry.setSummaryMap(summaryMap, defaultLocale);
982 }
983
984
989 public java.lang.String getUrl() {
990 return _assetEntry.getUrl();
991 }
992
993
998 public void setUrl(java.lang.String url) {
999 _assetEntry.setUrl(url);
1000 }
1001
1002
1007 public java.lang.String getLayoutUuid() {
1008 return _assetEntry.getLayoutUuid();
1009 }
1010
1011
1016 public void setLayoutUuid(java.lang.String layoutUuid) {
1017 _assetEntry.setLayoutUuid(layoutUuid);
1018 }
1019
1020
1025 public int getHeight() {
1026 return _assetEntry.getHeight();
1027 }
1028
1029
1034 public void setHeight(int height) {
1035 _assetEntry.setHeight(height);
1036 }
1037
1038
1043 public int getWidth() {
1044 return _assetEntry.getWidth();
1045 }
1046
1047
1052 public void setWidth(int width) {
1053 _assetEntry.setWidth(width);
1054 }
1055
1056
1061 public double getPriority() {
1062 return _assetEntry.getPriority();
1063 }
1064
1065
1070 public void setPriority(double priority) {
1071 _assetEntry.setPriority(priority);
1072 }
1073
1074
1079 public int getViewCount() {
1080 return _assetEntry.getViewCount();
1081 }
1082
1083
1088 public void setViewCount(int viewCount) {
1089 _assetEntry.setViewCount(viewCount);
1090 }
1091
1092 public boolean isNew() {
1093 return _assetEntry.isNew();
1094 }
1095
1096 public void setNew(boolean n) {
1097 _assetEntry.setNew(n);
1098 }
1099
1100 public boolean isCachedModel() {
1101 return _assetEntry.isCachedModel();
1102 }
1103
1104 public void setCachedModel(boolean cachedModel) {
1105 _assetEntry.setCachedModel(cachedModel);
1106 }
1107
1108 public boolean isEscapedModel() {
1109 return _assetEntry.isEscapedModel();
1110 }
1111
1112 public java.io.Serializable getPrimaryKeyObj() {
1113 return _assetEntry.getPrimaryKeyObj();
1114 }
1115
1116 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1117 _assetEntry.setPrimaryKeyObj(primaryKeyObj);
1118 }
1119
1120 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1121 return _assetEntry.getExpandoBridge();
1122 }
1123
1124 public void setExpandoBridgeAttributes(
1125 com.liferay.portal.service.ServiceContext serviceContext) {
1126 _assetEntry.setExpandoBridgeAttributes(serviceContext);
1127 }
1128
1129 public void prepareLocalizedFieldsForImport(
1130 java.util.Locale defaultImportLocale)
1131 throws com.liferay.portal.LocaleException {
1132 _assetEntry.prepareLocalizedFieldsForImport(defaultImportLocale);
1133 }
1134
1135 @Override
1136 public java.lang.Object clone() {
1137 return new AssetEntryWrapper((AssetEntry)_assetEntry.clone());
1138 }
1139
1140 public int compareTo(com.liferay.portlet.asset.model.AssetEntry assetEntry) {
1141 return _assetEntry.compareTo(assetEntry);
1142 }
1143
1144 @Override
1145 public int hashCode() {
1146 return _assetEntry.hashCode();
1147 }
1148
1149 public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetEntry> toCacheModel() {
1150 return _assetEntry.toCacheModel();
1151 }
1152
1153 public com.liferay.portlet.asset.model.AssetEntry toEscapedModel() {
1154 return new AssetEntryWrapper(_assetEntry.toEscapedModel());
1155 }
1156
1157 public com.liferay.portlet.asset.model.AssetEntry toUnescapedModel() {
1158 return new AssetEntryWrapper(_assetEntry.toUnescapedModel());
1159 }
1160
1161 @Override
1162 public java.lang.String toString() {
1163 return _assetEntry.toString();
1164 }
1165
1166 public java.lang.String toXmlString() {
1167 return _assetEntry.toXmlString();
1168 }
1169
1170 public void persist()
1171 throws com.liferay.portal.kernel.exception.SystemException {
1172 _assetEntry.persist();
1173 }
1174
1175 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
1176 throws com.liferay.portal.kernel.exception.SystemException {
1177 return _assetEntry.getCategories();
1178 }
1179
1180 public long[] getCategoryIds()
1181 throws com.liferay.portal.kernel.exception.SystemException {
1182 return _assetEntry.getCategoryIds();
1183 }
1184
1185 public java.lang.String[] getTagNames()
1186 throws com.liferay.portal.kernel.exception.SystemException {
1187 return _assetEntry.getTagNames();
1188 }
1189
1190 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
1191 throws com.liferay.portal.kernel.exception.SystemException {
1192 return _assetEntry.getTags();
1193 }
1194
1195 @Override
1196 public boolean equals(Object obj) {
1197 if (this == obj) {
1198 return true;
1199 }
1200
1201 if (!(obj instanceof AssetEntryWrapper)) {
1202 return false;
1203 }
1204
1205 AssetEntryWrapper assetEntryWrapper = (AssetEntryWrapper)obj;
1206
1207 if (Validator.equals(_assetEntry, assetEntryWrapper._assetEntry)) {
1208 return true;
1209 }
1210
1211 return false;
1212 }
1213
1214
1217 public AssetEntry getWrappedAssetEntry() {
1218 return _assetEntry;
1219 }
1220
1221 public AssetEntry getWrappedModel() {
1222 return _assetEntry;
1223 }
1224
1225 public void resetOriginalValues() {
1226 _assetEntry.resetOriginalValues();
1227 }
1228
1229 private AssetEntry _assetEntry;
1230 }