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