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
022 import com.liferay.portlet.exportimport.lar.StagedModelType;
023
024 import java.util.Date;
025 import java.util.HashMap;
026 import java.util.Map;
027
028
037 @ProviderType
038 public class AssetVocabularyWrapper implements AssetVocabulary,
039 ModelWrapper<AssetVocabulary> {
040 public AssetVocabularyWrapper(AssetVocabulary assetVocabulary) {
041 _assetVocabulary = assetVocabulary;
042 }
043
044 @Override
045 public Class<?> getModelClass() {
046 return AssetVocabulary.class;
047 }
048
049 @Override
050 public String getModelClassName() {
051 return AssetVocabulary.class.getName();
052 }
053
054 @Override
055 public Map<String, Object> getModelAttributes() {
056 Map<String, Object> attributes = new HashMap<String, Object>();
057
058 attributes.put("uuid", getUuid());
059 attributes.put("vocabularyId", getVocabularyId());
060 attributes.put("groupId", getGroupId());
061 attributes.put("companyId", getCompanyId());
062 attributes.put("userId", getUserId());
063 attributes.put("userName", getUserName());
064 attributes.put("createDate", getCreateDate());
065 attributes.put("modifiedDate", getModifiedDate());
066 attributes.put("name", getName());
067 attributes.put("title", getTitle());
068 attributes.put("description", getDescription());
069 attributes.put("settings", getSettings());
070 attributes.put("lastPublishDate", getLastPublishDate());
071
072 return attributes;
073 }
074
075 @Override
076 public void setModelAttributes(Map<String, Object> attributes) {
077 String uuid = (String)attributes.get("uuid");
078
079 if (uuid != null) {
080 setUuid(uuid);
081 }
082
083 Long vocabularyId = (Long)attributes.get("vocabularyId");
084
085 if (vocabularyId != null) {
086 setVocabularyId(vocabularyId);
087 }
088
089 Long groupId = (Long)attributes.get("groupId");
090
091 if (groupId != null) {
092 setGroupId(groupId);
093 }
094
095 Long companyId = (Long)attributes.get("companyId");
096
097 if (companyId != null) {
098 setCompanyId(companyId);
099 }
100
101 Long userId = (Long)attributes.get("userId");
102
103 if (userId != null) {
104 setUserId(userId);
105 }
106
107 String userName = (String)attributes.get("userName");
108
109 if (userName != null) {
110 setUserName(userName);
111 }
112
113 Date createDate = (Date)attributes.get("createDate");
114
115 if (createDate != null) {
116 setCreateDate(createDate);
117 }
118
119 Date modifiedDate = (Date)attributes.get("modifiedDate");
120
121 if (modifiedDate != null) {
122 setModifiedDate(modifiedDate);
123 }
124
125 String name = (String)attributes.get("name");
126
127 if (name != null) {
128 setName(name);
129 }
130
131 String title = (String)attributes.get("title");
132
133 if (title != null) {
134 setTitle(title);
135 }
136
137 String description = (String)attributes.get("description");
138
139 if (description != null) {
140 setDescription(description);
141 }
142
143 String settings = (String)attributes.get("settings");
144
145 if (settings != null) {
146 setSettings(settings);
147 }
148
149 Date lastPublishDate = (Date)attributes.get("lastPublishDate");
150
151 if (lastPublishDate != null) {
152 setLastPublishDate(lastPublishDate);
153 }
154 }
155
156 @Override
157 public java.lang.Object clone() {
158 return new AssetVocabularyWrapper((AssetVocabulary)_assetVocabulary.clone());
159 }
160
161 @Override
162 public int compareTo(
163 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
164 return _assetVocabulary.compareTo(assetVocabulary);
165 }
166
167 @Override
168 public java.lang.String[] getAvailableLanguageIds() {
169 return _assetVocabulary.getAvailableLanguageIds();
170 }
171
172 @Override
173 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories() {
174 return _assetVocabulary.getCategories();
175 }
176
177 @Override
178 public int getCategoriesCount() {
179 return _assetVocabulary.getCategoriesCount();
180 }
181
182
187 @Override
188 public long getCompanyId() {
189 return _assetVocabulary.getCompanyId();
190 }
191
192
197 @Override
198 public Date getCreateDate() {
199 return _assetVocabulary.getCreateDate();
200 }
201
202 @Override
203 public java.lang.String getDefaultLanguageId() {
204 return _assetVocabulary.getDefaultLanguageId();
205 }
206
207
212 @Override
213 public java.lang.String getDescription() {
214 return _assetVocabulary.getDescription();
215 }
216
217
223 @Override
224 public java.lang.String getDescription(java.lang.String languageId) {
225 return _assetVocabulary.getDescription(languageId);
226 }
227
228
235 @Override
236 public java.lang.String getDescription(java.lang.String languageId,
237 boolean useDefault) {
238 return _assetVocabulary.getDescription(languageId, useDefault);
239 }
240
241
247 @Override
248 public java.lang.String getDescription(java.util.Locale locale) {
249 return _assetVocabulary.getDescription(locale);
250 }
251
252
259 @Override
260 public java.lang.String getDescription(java.util.Locale locale,
261 boolean useDefault) {
262 return _assetVocabulary.getDescription(locale, useDefault);
263 }
264
265 @Override
266 public java.lang.String getDescriptionCurrentLanguageId() {
267 return _assetVocabulary.getDescriptionCurrentLanguageId();
268 }
269
270 @Override
271 public java.lang.String getDescriptionCurrentValue() {
272 return _assetVocabulary.getDescriptionCurrentValue();
273 }
274
275
280 @Override
281 public Map<java.util.Locale, java.lang.String> getDescriptionMap() {
282 return _assetVocabulary.getDescriptionMap();
283 }
284
285 @Override
286 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
287 return _assetVocabulary.getExpandoBridge();
288 }
289
290
295 @Override
296 public long getGroupId() {
297 return _assetVocabulary.getGroupId();
298 }
299
300
305 @Override
306 public Date getLastPublishDate() {
307 return _assetVocabulary.getLastPublishDate();
308 }
309
310
315 @Override
316 public Date getModifiedDate() {
317 return _assetVocabulary.getModifiedDate();
318 }
319
320
325 @Override
326 public java.lang.String getName() {
327 return _assetVocabulary.getName();
328 }
329
330
335 @Override
336 public long getPrimaryKey() {
337 return _assetVocabulary.getPrimaryKey();
338 }
339
340 @Override
341 public java.io.Serializable getPrimaryKeyObj() {
342 return _assetVocabulary.getPrimaryKeyObj();
343 }
344
345 @Override
346 public long[] getRequiredClassNameIds() {
347 return _assetVocabulary.getRequiredClassNameIds();
348 }
349
350 @Override
351 public long[] getSelectedClassNameIds() {
352 return _assetVocabulary.getSelectedClassNameIds();
353 }
354
355 @Override
356 public long[] getSelectedClassTypePKs() {
357 return _assetVocabulary.getSelectedClassTypePKs();
358 }
359
360
365 @Override
366 public java.lang.String getSettings() {
367 return _assetVocabulary.getSettings();
368 }
369
370
373 @Deprecated
374 @Override
375 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
376 return _assetVocabulary.getSettingsProperties();
377 }
378
379
384 @Override
385 public java.lang.String getTitle() {
386 return _assetVocabulary.getTitle();
387 }
388
389
395 @Override
396 public java.lang.String getTitle(java.lang.String languageId) {
397 return _assetVocabulary.getTitle(languageId);
398 }
399
400
407 @Override
408 public java.lang.String getTitle(java.lang.String languageId,
409 boolean useDefault) {
410 return _assetVocabulary.getTitle(languageId, useDefault);
411 }
412
413
419 @Override
420 public java.lang.String getTitle(java.util.Locale locale) {
421 return _assetVocabulary.getTitle(locale);
422 }
423
424
431 @Override
432 public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
433 return _assetVocabulary.getTitle(locale, useDefault);
434 }
435
436 @Override
437 public java.lang.String getTitleCurrentLanguageId() {
438 return _assetVocabulary.getTitleCurrentLanguageId();
439 }
440
441 @Override
442 public java.lang.String getTitleCurrentValue() {
443 return _assetVocabulary.getTitleCurrentValue();
444 }
445
446
451 @Override
452 public Map<java.util.Locale, java.lang.String> getTitleMap() {
453 return _assetVocabulary.getTitleMap();
454 }
455
456 @Override
457 public java.lang.String getUnambiguousTitle(
458 java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> vocabularies,
459 long groupId, java.util.Locale locale)
460 throws com.liferay.portal.kernel.exception.PortalException {
461 return _assetVocabulary.getUnambiguousTitle(vocabularies, groupId,
462 locale);
463 }
464
465
470 @Override
471 public long getUserId() {
472 return _assetVocabulary.getUserId();
473 }
474
475
480 @Override
481 public java.lang.String getUserName() {
482 return _assetVocabulary.getUserName();
483 }
484
485
490 @Override
491 public java.lang.String getUserUuid() {
492 return _assetVocabulary.getUserUuid();
493 }
494
495
500 @Override
501 public java.lang.String getUuid() {
502 return _assetVocabulary.getUuid();
503 }
504
505
510 @Override
511 public long getVocabularyId() {
512 return _assetVocabulary.getVocabularyId();
513 }
514
515 @Override
516 public boolean hasMoreThanOneCategorySelected(long[] categoryIds) {
517 return _assetVocabulary.hasMoreThanOneCategorySelected(categoryIds);
518 }
519
520 @Override
521 public int hashCode() {
522 return _assetVocabulary.hashCode();
523 }
524
525 @Override
526 public boolean isAssociatedToClassNameId(long classNameId) {
527 return _assetVocabulary.isAssociatedToClassNameId(classNameId);
528 }
529
530 @Override
531 public boolean isAssociatedToClassNameIdAndClassTypePK(long classNameId,
532 long classTypePK) {
533 return _assetVocabulary.isAssociatedToClassNameIdAndClassTypePK(classNameId,
534 classTypePK);
535 }
536
537 @Override
538 public boolean isCachedModel() {
539 return _assetVocabulary.isCachedModel();
540 }
541
542 @Override
543 public boolean isEscapedModel() {
544 return _assetVocabulary.isEscapedModel();
545 }
546
547 @Override
548 public boolean isMissingRequiredCategory(long classNameId,
549 long classTypePK, long[] categoryIds) {
550 return _assetVocabulary.isMissingRequiredCategory(classNameId,
551 classTypePK, categoryIds);
552 }
553
554 @Override
555 public boolean isMultiValued() {
556 return _assetVocabulary.isMultiValued();
557 }
558
559 @Override
560 public boolean isNew() {
561 return _assetVocabulary.isNew();
562 }
563
564
567 @Deprecated
568 @Override
569 public boolean isRequired(long classNameId) {
570 return _assetVocabulary.isRequired(classNameId);
571 }
572
573 @Override
574 public boolean isRequired(long classNameId, long classTypePK) {
575 return _assetVocabulary.isRequired(classNameId, classTypePK);
576 }
577
578 @Override
579 public void persist() {
580 _assetVocabulary.persist();
581 }
582
583 @Override
584 public void prepareLocalizedFieldsForImport()
585 throws com.liferay.portal.LocaleException {
586 _assetVocabulary.prepareLocalizedFieldsForImport();
587 }
588
589 @Override
590 public void prepareLocalizedFieldsForImport(
591 java.util.Locale defaultImportLocale)
592 throws com.liferay.portal.LocaleException {
593 _assetVocabulary.prepareLocalizedFieldsForImport(defaultImportLocale);
594 }
595
596 @Override
597 public void setCachedModel(boolean cachedModel) {
598 _assetVocabulary.setCachedModel(cachedModel);
599 }
600
601
606 @Override
607 public void setCompanyId(long companyId) {
608 _assetVocabulary.setCompanyId(companyId);
609 }
610
611
616 @Override
617 public void setCreateDate(Date createDate) {
618 _assetVocabulary.setCreateDate(createDate);
619 }
620
621
626 @Override
627 public void setDescription(java.lang.String description) {
628 _assetVocabulary.setDescription(description);
629 }
630
631
637 @Override
638 public void setDescription(java.lang.String description,
639 java.util.Locale locale) {
640 _assetVocabulary.setDescription(description, locale);
641 }
642
643
650 @Override
651 public void setDescription(java.lang.String description,
652 java.util.Locale locale, java.util.Locale defaultLocale) {
653 _assetVocabulary.setDescription(description, locale, defaultLocale);
654 }
655
656 @Override
657 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
658 _assetVocabulary.setDescriptionCurrentLanguageId(languageId);
659 }
660
661
666 @Override
667 public void setDescriptionMap(
668 Map<java.util.Locale, java.lang.String> descriptionMap) {
669 _assetVocabulary.setDescriptionMap(descriptionMap);
670 }
671
672
678 @Override
679 public void setDescriptionMap(
680 Map<java.util.Locale, java.lang.String> descriptionMap,
681 java.util.Locale defaultLocale) {
682 _assetVocabulary.setDescriptionMap(descriptionMap, defaultLocale);
683 }
684
685 @Override
686 public void setExpandoBridgeAttributes(
687 com.liferay.portal.model.BaseModel<?> baseModel) {
688 _assetVocabulary.setExpandoBridgeAttributes(baseModel);
689 }
690
691 @Override
692 public void setExpandoBridgeAttributes(
693 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
694 _assetVocabulary.setExpandoBridgeAttributes(expandoBridge);
695 }
696
697 @Override
698 public void setExpandoBridgeAttributes(
699 com.liferay.portal.service.ServiceContext serviceContext) {
700 _assetVocabulary.setExpandoBridgeAttributes(serviceContext);
701 }
702
703
708 @Override
709 public void setGroupId(long groupId) {
710 _assetVocabulary.setGroupId(groupId);
711 }
712
713
718 @Override
719 public void setLastPublishDate(Date lastPublishDate) {
720 _assetVocabulary.setLastPublishDate(lastPublishDate);
721 }
722
723
728 @Override
729 public void setModifiedDate(Date modifiedDate) {
730 _assetVocabulary.setModifiedDate(modifiedDate);
731 }
732
733
738 @Override
739 public void setName(java.lang.String name) {
740 _assetVocabulary.setName(name);
741 }
742
743 @Override
744 public void setNew(boolean n) {
745 _assetVocabulary.setNew(n);
746 }
747
748
753 @Override
754 public void setPrimaryKey(long primaryKey) {
755 _assetVocabulary.setPrimaryKey(primaryKey);
756 }
757
758 @Override
759 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
760 _assetVocabulary.setPrimaryKeyObj(primaryKeyObj);
761 }
762
763
768 @Override
769 public void setSettings(java.lang.String settings) {
770 _assetVocabulary.setSettings(settings);
771 }
772
773
776 @Deprecated
777 @Override
778 public void setSettingsProperties(
779 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
780 _assetVocabulary.setSettingsProperties(settingsProperties);
781 }
782
783
788 @Override
789 public void setTitle(java.lang.String title) {
790 _assetVocabulary.setTitle(title);
791 }
792
793
799 @Override
800 public void setTitle(java.lang.String title, java.util.Locale locale) {
801 _assetVocabulary.setTitle(title, locale);
802 }
803
804
811 @Override
812 public void setTitle(java.lang.String title, java.util.Locale locale,
813 java.util.Locale defaultLocale) {
814 _assetVocabulary.setTitle(title, locale, defaultLocale);
815 }
816
817 @Override
818 public void setTitleCurrentLanguageId(java.lang.String languageId) {
819 _assetVocabulary.setTitleCurrentLanguageId(languageId);
820 }
821
822
827 @Override
828 public void setTitleMap(Map<java.util.Locale, java.lang.String> titleMap) {
829 _assetVocabulary.setTitleMap(titleMap);
830 }
831
832
838 @Override
839 public void setTitleMap(Map<java.util.Locale, java.lang.String> titleMap,
840 java.util.Locale defaultLocale) {
841 _assetVocabulary.setTitleMap(titleMap, defaultLocale);
842 }
843
844
849 @Override
850 public void setUserId(long userId) {
851 _assetVocabulary.setUserId(userId);
852 }
853
854
859 @Override
860 public void setUserName(java.lang.String userName) {
861 _assetVocabulary.setUserName(userName);
862 }
863
864
869 @Override
870 public void setUserUuid(java.lang.String userUuid) {
871 _assetVocabulary.setUserUuid(userUuid);
872 }
873
874
879 @Override
880 public void setUuid(java.lang.String uuid) {
881 _assetVocabulary.setUuid(uuid);
882 }
883
884
889 @Override
890 public void setVocabularyId(long vocabularyId) {
891 _assetVocabulary.setVocabularyId(vocabularyId);
892 }
893
894 @Override
895 public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetVocabulary> toCacheModel() {
896 return _assetVocabulary.toCacheModel();
897 }
898
899 @Override
900 public com.liferay.portlet.asset.model.AssetVocabulary toEscapedModel() {
901 return new AssetVocabularyWrapper(_assetVocabulary.toEscapedModel());
902 }
903
904 @Override
905 public java.lang.String toString() {
906 return _assetVocabulary.toString();
907 }
908
909 @Override
910 public com.liferay.portlet.asset.model.AssetVocabulary toUnescapedModel() {
911 return new AssetVocabularyWrapper(_assetVocabulary.toUnescapedModel());
912 }
913
914 @Override
915 public java.lang.String toXmlString() {
916 return _assetVocabulary.toXmlString();
917 }
918
919 @Override
920 public boolean equals(Object obj) {
921 if (this == obj) {
922 return true;
923 }
924
925 if (!(obj instanceof AssetVocabularyWrapper)) {
926 return false;
927 }
928
929 AssetVocabularyWrapper assetVocabularyWrapper = (AssetVocabularyWrapper)obj;
930
931 if (Validator.equals(_assetVocabulary,
932 assetVocabularyWrapper._assetVocabulary)) {
933 return true;
934 }
935
936 return false;
937 }
938
939 @Override
940 public StagedModelType getStagedModelType() {
941 return _assetVocabulary.getStagedModelType();
942 }
943
944 @Override
945 public AssetVocabulary getWrappedModel() {
946 return _assetVocabulary;
947 }
948
949 @Override
950 public boolean isEntityCacheEnabled() {
951 return _assetVocabulary.isEntityCacheEnabled();
952 }
953
954 @Override
955 public boolean isFinderCacheEnabled() {
956 return _assetVocabulary.isFinderCacheEnabled();
957 }
958
959 @Override
960 public void resetOriginalValues() {
961 _assetVocabulary.resetOriginalValues();
962 }
963
964 private final AssetVocabulary _assetVocabulary;
965 }