001
014
015 package com.liferay.asset.kernel.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.expando.kernel.model.ExpandoBridge;
020
021 import com.liferay.exportimport.kernel.lar.StagedModelType;
022
023 import com.liferay.portal.kernel.model.ModelWrapper;
024 import com.liferay.portal.kernel.service.ServiceContext;
025 import com.liferay.portal.kernel.util.Validator;
026
027 import java.io.Serializable;
028
029 import java.util.Date;
030 import java.util.HashMap;
031 import java.util.Map;
032
033
042 @ProviderType
043 public class AssetVocabularyWrapper implements AssetVocabulary,
044 ModelWrapper<AssetVocabulary> {
045 public AssetVocabularyWrapper(AssetVocabulary assetVocabulary) {
046 _assetVocabulary = assetVocabulary;
047 }
048
049 @Override
050 public Class<?> getModelClass() {
051 return AssetVocabulary.class;
052 }
053
054 @Override
055 public String getModelClassName() {
056 return AssetVocabulary.class.getName();
057 }
058
059 @Override
060 public Map<String, Object> getModelAttributes() {
061 Map<String, Object> attributes = new HashMap<String, Object>();
062
063 attributes.put("uuid", getUuid());
064 attributes.put("vocabularyId", getVocabularyId());
065 attributes.put("groupId", getGroupId());
066 attributes.put("companyId", getCompanyId());
067 attributes.put("userId", getUserId());
068 attributes.put("userName", getUserName());
069 attributes.put("createDate", getCreateDate());
070 attributes.put("modifiedDate", getModifiedDate());
071 attributes.put("name", getName());
072 attributes.put("title", getTitle());
073 attributes.put("description", getDescription());
074 attributes.put("settings", getSettings());
075 attributes.put("lastPublishDate", getLastPublishDate());
076
077 return attributes;
078 }
079
080 @Override
081 public void setModelAttributes(Map<String, Object> attributes) {
082 String uuid = (String)attributes.get("uuid");
083
084 if (uuid != null) {
085 setUuid(uuid);
086 }
087
088 Long vocabularyId = (Long)attributes.get("vocabularyId");
089
090 if (vocabularyId != null) {
091 setVocabularyId(vocabularyId);
092 }
093
094 Long groupId = (Long)attributes.get("groupId");
095
096 if (groupId != null) {
097 setGroupId(groupId);
098 }
099
100 Long companyId = (Long)attributes.get("companyId");
101
102 if (companyId != null) {
103 setCompanyId(companyId);
104 }
105
106 Long userId = (Long)attributes.get("userId");
107
108 if (userId != null) {
109 setUserId(userId);
110 }
111
112 String userName = (String)attributes.get("userName");
113
114 if (userName != null) {
115 setUserName(userName);
116 }
117
118 Date createDate = (Date)attributes.get("createDate");
119
120 if (createDate != null) {
121 setCreateDate(createDate);
122 }
123
124 Date modifiedDate = (Date)attributes.get("modifiedDate");
125
126 if (modifiedDate != null) {
127 setModifiedDate(modifiedDate);
128 }
129
130 String name = (String)attributes.get("name");
131
132 if (name != null) {
133 setName(name);
134 }
135
136 String title = (String)attributes.get("title");
137
138 if (title != null) {
139 setTitle(title);
140 }
141
142 String description = (String)attributes.get("description");
143
144 if (description != null) {
145 setDescription(description);
146 }
147
148 String settings = (String)attributes.get("settings");
149
150 if (settings != null) {
151 setSettings(settings);
152 }
153
154 Date lastPublishDate = (Date)attributes.get("lastPublishDate");
155
156 if (lastPublishDate != null) {
157 setLastPublishDate(lastPublishDate);
158 }
159 }
160
161 @Override
162 public java.lang.Object clone() {
163 return new AssetVocabularyWrapper((AssetVocabulary)_assetVocabulary.clone());
164 }
165
166 @Override
167 public int compareTo(
168 com.liferay.asset.kernel.model.AssetVocabulary assetVocabulary) {
169 return _assetVocabulary.compareTo(assetVocabulary);
170 }
171
172 @Override
173 public java.lang.String[] getAvailableLanguageIds() {
174 return _assetVocabulary.getAvailableLanguageIds();
175 }
176
177 @Override
178 public java.util.List<com.liferay.asset.kernel.model.AssetCategory> getCategories() {
179 return _assetVocabulary.getCategories();
180 }
181
182 @Override
183 public int getCategoriesCount() {
184 return _assetVocabulary.getCategoriesCount();
185 }
186
187
192 @Override
193 public long getCompanyId() {
194 return _assetVocabulary.getCompanyId();
195 }
196
197
202 @Override
203 public Date getCreateDate() {
204 return _assetVocabulary.getCreateDate();
205 }
206
207 @Override
208 public java.lang.String getDefaultLanguageId() {
209 return _assetVocabulary.getDefaultLanguageId();
210 }
211
212
217 @Override
218 public java.lang.String getDescription() {
219 return _assetVocabulary.getDescription();
220 }
221
222
228 @Override
229 public java.lang.String getDescription(java.lang.String languageId) {
230 return _assetVocabulary.getDescription(languageId);
231 }
232
233
240 @Override
241 public java.lang.String getDescription(java.lang.String languageId,
242 boolean useDefault) {
243 return _assetVocabulary.getDescription(languageId, useDefault);
244 }
245
246
252 @Override
253 public java.lang.String getDescription(java.util.Locale locale) {
254 return _assetVocabulary.getDescription(locale);
255 }
256
257
264 @Override
265 public java.lang.String getDescription(java.util.Locale locale,
266 boolean useDefault) {
267 return _assetVocabulary.getDescription(locale, useDefault);
268 }
269
270 @Override
271 public java.lang.String getDescriptionCurrentLanguageId() {
272 return _assetVocabulary.getDescriptionCurrentLanguageId();
273 }
274
275 @Override
276 public java.lang.String getDescriptionCurrentValue() {
277 return _assetVocabulary.getDescriptionCurrentValue();
278 }
279
280
285 @Override
286 public Map<java.util.Locale, java.lang.String> getDescriptionMap() {
287 return _assetVocabulary.getDescriptionMap();
288 }
289
290 @Override
291 public ExpandoBridge getExpandoBridge() {
292 return _assetVocabulary.getExpandoBridge();
293 }
294
295
300 @Override
301 public long getGroupId() {
302 return _assetVocabulary.getGroupId();
303 }
304
305
310 @Override
311 public Date getLastPublishDate() {
312 return _assetVocabulary.getLastPublishDate();
313 }
314
315
320 @Override
321 public Date getModifiedDate() {
322 return _assetVocabulary.getModifiedDate();
323 }
324
325
330 @Override
331 public java.lang.String getName() {
332 return _assetVocabulary.getName();
333 }
334
335
340 @Override
341 public long getPrimaryKey() {
342 return _assetVocabulary.getPrimaryKey();
343 }
344
345 @Override
346 public Serializable getPrimaryKeyObj() {
347 return _assetVocabulary.getPrimaryKeyObj();
348 }
349
350 @Override
351 public long[] getRequiredClassNameIds() {
352 return _assetVocabulary.getRequiredClassNameIds();
353 }
354
355 @Override
356 public long[] getSelectedClassNameIds() {
357 return _assetVocabulary.getSelectedClassNameIds();
358 }
359
360 @Override
361 public long[] getSelectedClassTypePKs() {
362 return _assetVocabulary.getSelectedClassTypePKs();
363 }
364
365
370 @Override
371 public java.lang.String getSettings() {
372 return _assetVocabulary.getSettings();
373 }
374
375
378 @Deprecated
379 @Override
380 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
381 return _assetVocabulary.getSettingsProperties();
382 }
383
384
389 @Override
390 public java.lang.String getTitle() {
391 return _assetVocabulary.getTitle();
392 }
393
394
400 @Override
401 public java.lang.String getTitle(java.lang.String languageId) {
402 return _assetVocabulary.getTitle(languageId);
403 }
404
405
412 @Override
413 public java.lang.String getTitle(java.lang.String languageId,
414 boolean useDefault) {
415 return _assetVocabulary.getTitle(languageId, useDefault);
416 }
417
418
424 @Override
425 public java.lang.String getTitle(java.util.Locale locale) {
426 return _assetVocabulary.getTitle(locale);
427 }
428
429
436 @Override
437 public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
438 return _assetVocabulary.getTitle(locale, useDefault);
439 }
440
441 @Override
442 public java.lang.String getTitleCurrentLanguageId() {
443 return _assetVocabulary.getTitleCurrentLanguageId();
444 }
445
446 @Override
447 public java.lang.String getTitleCurrentValue() {
448 return _assetVocabulary.getTitleCurrentValue();
449 }
450
451
456 @Override
457 public Map<java.util.Locale, java.lang.String> getTitleMap() {
458 return _assetVocabulary.getTitleMap();
459 }
460
461 @Override
462 public java.lang.String getUnambiguousTitle(
463 java.util.List<com.liferay.asset.kernel.model.AssetVocabulary> vocabularies,
464 long groupId, java.util.Locale locale)
465 throws com.liferay.portal.kernel.exception.PortalException {
466 return _assetVocabulary.getUnambiguousTitle(vocabularies, groupId,
467 locale);
468 }
469
470
475 @Override
476 public long getUserId() {
477 return _assetVocabulary.getUserId();
478 }
479
480
485 @Override
486 public java.lang.String getUserName() {
487 return _assetVocabulary.getUserName();
488 }
489
490
495 @Override
496 public java.lang.String getUserUuid() {
497 return _assetVocabulary.getUserUuid();
498 }
499
500
505 @Override
506 public java.lang.String getUuid() {
507 return _assetVocabulary.getUuid();
508 }
509
510
515 @Override
516 public long getVocabularyId() {
517 return _assetVocabulary.getVocabularyId();
518 }
519
520 @Override
521 public boolean hasMoreThanOneCategorySelected(long[] categoryIds) {
522 return _assetVocabulary.hasMoreThanOneCategorySelected(categoryIds);
523 }
524
525 @Override
526 public int hashCode() {
527 return _assetVocabulary.hashCode();
528 }
529
530 @Override
531 public boolean isAssociatedToClassNameId(long classNameId) {
532 return _assetVocabulary.isAssociatedToClassNameId(classNameId);
533 }
534
535 @Override
536 public boolean isAssociatedToClassNameIdAndClassTypePK(long classNameId,
537 long classTypePK) {
538 return _assetVocabulary.isAssociatedToClassNameIdAndClassTypePK(classNameId,
539 classTypePK);
540 }
541
542 @Override
543 public boolean isCachedModel() {
544 return _assetVocabulary.isCachedModel();
545 }
546
547 @Override
548 public boolean isEscapedModel() {
549 return _assetVocabulary.isEscapedModel();
550 }
551
552 @Override
553 public boolean isMissingRequiredCategory(long classNameId,
554 long classTypePK, long[] categoryIds) {
555 return _assetVocabulary.isMissingRequiredCategory(classNameId,
556 classTypePK, categoryIds);
557 }
558
559 @Override
560 public boolean isMultiValued() {
561 return _assetVocabulary.isMultiValued();
562 }
563
564 @Override
565 public boolean isNew() {
566 return _assetVocabulary.isNew();
567 }
568
569
572 @Deprecated
573 @Override
574 public boolean isRequired(long classNameId) {
575 return _assetVocabulary.isRequired(classNameId);
576 }
577
578 @Override
579 public boolean isRequired(long classNameId, long classTypePK) {
580 return _assetVocabulary.isRequired(classNameId, classTypePK);
581 }
582
583 @Override
584 public void persist() {
585 _assetVocabulary.persist();
586 }
587
588 @Override
589 public void prepareLocalizedFieldsForImport()
590 throws com.liferay.portal.kernel.exception.LocaleException {
591 _assetVocabulary.prepareLocalizedFieldsForImport();
592 }
593
594 @Override
595 public void prepareLocalizedFieldsForImport(
596 java.util.Locale defaultImportLocale)
597 throws com.liferay.portal.kernel.exception.LocaleException {
598 _assetVocabulary.prepareLocalizedFieldsForImport(defaultImportLocale);
599 }
600
601 @Override
602 public void setCachedModel(boolean cachedModel) {
603 _assetVocabulary.setCachedModel(cachedModel);
604 }
605
606
611 @Override
612 public void setCompanyId(long companyId) {
613 _assetVocabulary.setCompanyId(companyId);
614 }
615
616
621 @Override
622 public void setCreateDate(Date createDate) {
623 _assetVocabulary.setCreateDate(createDate);
624 }
625
626
631 @Override
632 public void setDescription(java.lang.String description) {
633 _assetVocabulary.setDescription(description);
634 }
635
636
642 @Override
643 public void setDescription(java.lang.String description,
644 java.util.Locale locale) {
645 _assetVocabulary.setDescription(description, locale);
646 }
647
648
655 @Override
656 public void setDescription(java.lang.String description,
657 java.util.Locale locale, java.util.Locale defaultLocale) {
658 _assetVocabulary.setDescription(description, locale, defaultLocale);
659 }
660
661 @Override
662 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
663 _assetVocabulary.setDescriptionCurrentLanguageId(languageId);
664 }
665
666
671 @Override
672 public void setDescriptionMap(
673 Map<java.util.Locale, java.lang.String> descriptionMap) {
674 _assetVocabulary.setDescriptionMap(descriptionMap);
675 }
676
677
683 @Override
684 public void setDescriptionMap(
685 Map<java.util.Locale, java.lang.String> descriptionMap,
686 java.util.Locale defaultLocale) {
687 _assetVocabulary.setDescriptionMap(descriptionMap, defaultLocale);
688 }
689
690 @Override
691 public void setExpandoBridgeAttributes(
692 com.liferay.portal.kernel.model.BaseModel<?> baseModel) {
693 _assetVocabulary.setExpandoBridgeAttributes(baseModel);
694 }
695
696 @Override
697 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
698 _assetVocabulary.setExpandoBridgeAttributes(expandoBridge);
699 }
700
701 @Override
702 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
703 _assetVocabulary.setExpandoBridgeAttributes(serviceContext);
704 }
705
706
711 @Override
712 public void setGroupId(long groupId) {
713 _assetVocabulary.setGroupId(groupId);
714 }
715
716
721 @Override
722 public void setLastPublishDate(Date lastPublishDate) {
723 _assetVocabulary.setLastPublishDate(lastPublishDate);
724 }
725
726
731 @Override
732 public void setModifiedDate(Date modifiedDate) {
733 _assetVocabulary.setModifiedDate(modifiedDate);
734 }
735
736
741 @Override
742 public void setName(java.lang.String name) {
743 _assetVocabulary.setName(name);
744 }
745
746 @Override
747 public void setNew(boolean n) {
748 _assetVocabulary.setNew(n);
749 }
750
751
756 @Override
757 public void setPrimaryKey(long primaryKey) {
758 _assetVocabulary.setPrimaryKey(primaryKey);
759 }
760
761 @Override
762 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
763 _assetVocabulary.setPrimaryKeyObj(primaryKeyObj);
764 }
765
766
771 @Override
772 public void setSettings(java.lang.String settings) {
773 _assetVocabulary.setSettings(settings);
774 }
775
776
779 @Deprecated
780 @Override
781 public void setSettingsProperties(
782 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
783 _assetVocabulary.setSettingsProperties(settingsProperties);
784 }
785
786
791 @Override
792 public void setTitle(java.lang.String title) {
793 _assetVocabulary.setTitle(title);
794 }
795
796
802 @Override
803 public void setTitle(java.lang.String title, java.util.Locale locale) {
804 _assetVocabulary.setTitle(title, locale);
805 }
806
807
814 @Override
815 public void setTitle(java.lang.String title, java.util.Locale locale,
816 java.util.Locale defaultLocale) {
817 _assetVocabulary.setTitle(title, locale, defaultLocale);
818 }
819
820 @Override
821 public void setTitleCurrentLanguageId(java.lang.String languageId) {
822 _assetVocabulary.setTitleCurrentLanguageId(languageId);
823 }
824
825
830 @Override
831 public void setTitleMap(Map<java.util.Locale, java.lang.String> titleMap) {
832 _assetVocabulary.setTitleMap(titleMap);
833 }
834
835
841 @Override
842 public void setTitleMap(Map<java.util.Locale, java.lang.String> titleMap,
843 java.util.Locale defaultLocale) {
844 _assetVocabulary.setTitleMap(titleMap, defaultLocale);
845 }
846
847
852 @Override
853 public void setUserId(long userId) {
854 _assetVocabulary.setUserId(userId);
855 }
856
857
862 @Override
863 public void setUserName(java.lang.String userName) {
864 _assetVocabulary.setUserName(userName);
865 }
866
867
872 @Override
873 public void setUserUuid(java.lang.String userUuid) {
874 _assetVocabulary.setUserUuid(userUuid);
875 }
876
877
882 @Override
883 public void setUuid(java.lang.String uuid) {
884 _assetVocabulary.setUuid(uuid);
885 }
886
887
892 @Override
893 public void setVocabularyId(long vocabularyId) {
894 _assetVocabulary.setVocabularyId(vocabularyId);
895 }
896
897 @Override
898 public com.liferay.portal.kernel.model.CacheModel<com.liferay.asset.kernel.model.AssetVocabulary> toCacheModel() {
899 return _assetVocabulary.toCacheModel();
900 }
901
902 @Override
903 public com.liferay.asset.kernel.model.AssetVocabulary toEscapedModel() {
904 return new AssetVocabularyWrapper(_assetVocabulary.toEscapedModel());
905 }
906
907 @Override
908 public java.lang.String toString() {
909 return _assetVocabulary.toString();
910 }
911
912 @Override
913 public com.liferay.asset.kernel.model.AssetVocabulary toUnescapedModel() {
914 return new AssetVocabularyWrapper(_assetVocabulary.toUnescapedModel());
915 }
916
917 @Override
918 public java.lang.String toXmlString() {
919 return _assetVocabulary.toXmlString();
920 }
921
922 @Override
923 public boolean equals(Object obj) {
924 if (this == obj) {
925 return true;
926 }
927
928 if (!(obj instanceof AssetVocabularyWrapper)) {
929 return false;
930 }
931
932 AssetVocabularyWrapper assetVocabularyWrapper = (AssetVocabularyWrapper)obj;
933
934 if (Validator.equals(_assetVocabulary,
935 assetVocabularyWrapper._assetVocabulary)) {
936 return true;
937 }
938
939 return false;
940 }
941
942 @Override
943 public StagedModelType getStagedModelType() {
944 return _assetVocabulary.getStagedModelType();
945 }
946
947 @Override
948 public AssetVocabulary getWrappedModel() {
949 return _assetVocabulary;
950 }
951
952 @Override
953 public boolean isEntityCacheEnabled() {
954 return _assetVocabulary.isEntityCacheEnabled();
955 }
956
957 @Override
958 public boolean isFinderCacheEnabled() {
959 return _assetVocabulary.isFinderCacheEnabled();
960 }
961
962 @Override
963 public void resetOriginalValues() {
964 _assetVocabulary.resetOriginalValues();
965 }
966
967 private final AssetVocabulary _assetVocabulary;
968 }