001
014
015 package com.liferay.portlet.asset.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.lar.StagedModelType;
020 import com.liferay.portal.kernel.util.Validator;
021 import com.liferay.portal.model.ModelWrapper;
022
023 import java.util.Date;
024 import java.util.HashMap;
025 import java.util.Map;
026
027
036 @ProviderType
037 public class AssetVocabularyWrapper implements AssetVocabulary,
038 ModelWrapper<AssetVocabulary> {
039 public AssetVocabularyWrapper(AssetVocabulary assetVocabulary) {
040 _assetVocabulary = assetVocabulary;
041 }
042
043 @Override
044 public Class<?> getModelClass() {
045 return AssetVocabulary.class;
046 }
047
048 @Override
049 public String getModelClassName() {
050 return AssetVocabulary.class.getName();
051 }
052
053 @Override
054 public Map<String, Object> getModelAttributes() {
055 Map<String, Object> attributes = new HashMap<String, Object>();
056
057 attributes.put("uuid", getUuid());
058 attributes.put("vocabularyId", getVocabularyId());
059 attributes.put("groupId", getGroupId());
060 attributes.put("companyId", getCompanyId());
061 attributes.put("userId", getUserId());
062 attributes.put("userName", getUserName());
063 attributes.put("createDate", getCreateDate());
064 attributes.put("modifiedDate", getModifiedDate());
065 attributes.put("name", getName());
066 attributes.put("title", getTitle());
067 attributes.put("description", getDescription());
068 attributes.put("settings", getSettings());
069
070 return attributes;
071 }
072
073 @Override
074 public void setModelAttributes(Map<String, Object> attributes) {
075 String uuid = (String)attributes.get("uuid");
076
077 if (uuid != null) {
078 setUuid(uuid);
079 }
080
081 Long vocabularyId = (Long)attributes.get("vocabularyId");
082
083 if (vocabularyId != null) {
084 setVocabularyId(vocabularyId);
085 }
086
087 Long groupId = (Long)attributes.get("groupId");
088
089 if (groupId != null) {
090 setGroupId(groupId);
091 }
092
093 Long companyId = (Long)attributes.get("companyId");
094
095 if (companyId != null) {
096 setCompanyId(companyId);
097 }
098
099 Long userId = (Long)attributes.get("userId");
100
101 if (userId != null) {
102 setUserId(userId);
103 }
104
105 String userName = (String)attributes.get("userName");
106
107 if (userName != null) {
108 setUserName(userName);
109 }
110
111 Date createDate = (Date)attributes.get("createDate");
112
113 if (createDate != null) {
114 setCreateDate(createDate);
115 }
116
117 Date modifiedDate = (Date)attributes.get("modifiedDate");
118
119 if (modifiedDate != null) {
120 setModifiedDate(modifiedDate);
121 }
122
123 String name = (String)attributes.get("name");
124
125 if (name != null) {
126 setName(name);
127 }
128
129 String title = (String)attributes.get("title");
130
131 if (title != null) {
132 setTitle(title);
133 }
134
135 String description = (String)attributes.get("description");
136
137 if (description != null) {
138 setDescription(description);
139 }
140
141 String settings = (String)attributes.get("settings");
142
143 if (settings != null) {
144 setSettings(settings);
145 }
146 }
147
148
153 @Override
154 public long getPrimaryKey() {
155 return _assetVocabulary.getPrimaryKey();
156 }
157
158
163 @Override
164 public void setPrimaryKey(long primaryKey) {
165 _assetVocabulary.setPrimaryKey(primaryKey);
166 }
167
168
173 @Override
174 public java.lang.String getUuid() {
175 return _assetVocabulary.getUuid();
176 }
177
178
183 @Override
184 public void setUuid(java.lang.String uuid) {
185 _assetVocabulary.setUuid(uuid);
186 }
187
188
193 @Override
194 public long getVocabularyId() {
195 return _assetVocabulary.getVocabularyId();
196 }
197
198
203 @Override
204 public void setVocabularyId(long vocabularyId) {
205 _assetVocabulary.setVocabularyId(vocabularyId);
206 }
207
208
213 @Override
214 public long getGroupId() {
215 return _assetVocabulary.getGroupId();
216 }
217
218
223 @Override
224 public void setGroupId(long groupId) {
225 _assetVocabulary.setGroupId(groupId);
226 }
227
228
233 @Override
234 public long getCompanyId() {
235 return _assetVocabulary.getCompanyId();
236 }
237
238
243 @Override
244 public void setCompanyId(long companyId) {
245 _assetVocabulary.setCompanyId(companyId);
246 }
247
248
253 @Override
254 public long getUserId() {
255 return _assetVocabulary.getUserId();
256 }
257
258
263 @Override
264 public void setUserId(long userId) {
265 _assetVocabulary.setUserId(userId);
266 }
267
268
274 @Override
275 public java.lang.String getUserUuid()
276 throws com.liferay.portal.kernel.exception.SystemException {
277 return _assetVocabulary.getUserUuid();
278 }
279
280
285 @Override
286 public void setUserUuid(java.lang.String userUuid) {
287 _assetVocabulary.setUserUuid(userUuid);
288 }
289
290
295 @Override
296 public java.lang.String getUserName() {
297 return _assetVocabulary.getUserName();
298 }
299
300
305 @Override
306 public void setUserName(java.lang.String userName) {
307 _assetVocabulary.setUserName(userName);
308 }
309
310
315 @Override
316 public java.util.Date getCreateDate() {
317 return _assetVocabulary.getCreateDate();
318 }
319
320
325 @Override
326 public void setCreateDate(java.util.Date createDate) {
327 _assetVocabulary.setCreateDate(createDate);
328 }
329
330
335 @Override
336 public java.util.Date getModifiedDate() {
337 return _assetVocabulary.getModifiedDate();
338 }
339
340
345 @Override
346 public void setModifiedDate(java.util.Date modifiedDate) {
347 _assetVocabulary.setModifiedDate(modifiedDate);
348 }
349
350
355 @Override
356 public java.lang.String getName() {
357 return _assetVocabulary.getName();
358 }
359
360
365 @Override
366 public void setName(java.lang.String name) {
367 _assetVocabulary.setName(name);
368 }
369
370
375 @Override
376 public java.lang.String getTitle() {
377 return _assetVocabulary.getTitle();
378 }
379
380
386 @Override
387 public java.lang.String getTitle(java.util.Locale locale) {
388 return _assetVocabulary.getTitle(locale);
389 }
390
391
398 @Override
399 public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
400 return _assetVocabulary.getTitle(locale, useDefault);
401 }
402
403
409 @Override
410 public java.lang.String getTitle(java.lang.String languageId) {
411 return _assetVocabulary.getTitle(languageId);
412 }
413
414
421 @Override
422 public java.lang.String getTitle(java.lang.String languageId,
423 boolean useDefault) {
424 return _assetVocabulary.getTitle(languageId, useDefault);
425 }
426
427 @Override
428 public java.lang.String getTitleCurrentLanguageId() {
429 return _assetVocabulary.getTitleCurrentLanguageId();
430 }
431
432 @Override
433 public java.lang.String getTitleCurrentValue() {
434 return _assetVocabulary.getTitleCurrentValue();
435 }
436
437
442 @Override
443 public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
444 return _assetVocabulary.getTitleMap();
445 }
446
447
452 @Override
453 public void setTitle(java.lang.String title) {
454 _assetVocabulary.setTitle(title);
455 }
456
457
463 @Override
464 public void setTitle(java.lang.String title, java.util.Locale locale) {
465 _assetVocabulary.setTitle(title, locale);
466 }
467
468
475 @Override
476 public void setTitle(java.lang.String title, java.util.Locale locale,
477 java.util.Locale defaultLocale) {
478 _assetVocabulary.setTitle(title, locale, defaultLocale);
479 }
480
481 @Override
482 public void setTitleCurrentLanguageId(java.lang.String languageId) {
483 _assetVocabulary.setTitleCurrentLanguageId(languageId);
484 }
485
486
491 @Override
492 public void setTitleMap(
493 java.util.Map<java.util.Locale, java.lang.String> titleMap) {
494 _assetVocabulary.setTitleMap(titleMap);
495 }
496
497
503 @Override
504 public void setTitleMap(
505 java.util.Map<java.util.Locale, java.lang.String> titleMap,
506 java.util.Locale defaultLocale) {
507 _assetVocabulary.setTitleMap(titleMap, defaultLocale);
508 }
509
510
515 @Override
516 public java.lang.String getDescription() {
517 return _assetVocabulary.getDescription();
518 }
519
520
526 @Override
527 public java.lang.String getDescription(java.util.Locale locale) {
528 return _assetVocabulary.getDescription(locale);
529 }
530
531
538 @Override
539 public java.lang.String getDescription(java.util.Locale locale,
540 boolean useDefault) {
541 return _assetVocabulary.getDescription(locale, useDefault);
542 }
543
544
550 @Override
551 public java.lang.String getDescription(java.lang.String languageId) {
552 return _assetVocabulary.getDescription(languageId);
553 }
554
555
562 @Override
563 public java.lang.String getDescription(java.lang.String languageId,
564 boolean useDefault) {
565 return _assetVocabulary.getDescription(languageId, useDefault);
566 }
567
568 @Override
569 public java.lang.String getDescriptionCurrentLanguageId() {
570 return _assetVocabulary.getDescriptionCurrentLanguageId();
571 }
572
573 @Override
574 public java.lang.String getDescriptionCurrentValue() {
575 return _assetVocabulary.getDescriptionCurrentValue();
576 }
577
578
583 @Override
584 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
585 return _assetVocabulary.getDescriptionMap();
586 }
587
588
593 @Override
594 public void setDescription(java.lang.String description) {
595 _assetVocabulary.setDescription(description);
596 }
597
598
604 @Override
605 public void setDescription(java.lang.String description,
606 java.util.Locale locale) {
607 _assetVocabulary.setDescription(description, locale);
608 }
609
610
617 @Override
618 public void setDescription(java.lang.String description,
619 java.util.Locale locale, java.util.Locale defaultLocale) {
620 _assetVocabulary.setDescription(description, locale, defaultLocale);
621 }
622
623 @Override
624 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
625 _assetVocabulary.setDescriptionCurrentLanguageId(languageId);
626 }
627
628
633 @Override
634 public void setDescriptionMap(
635 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
636 _assetVocabulary.setDescriptionMap(descriptionMap);
637 }
638
639
645 @Override
646 public void setDescriptionMap(
647 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
648 java.util.Locale defaultLocale) {
649 _assetVocabulary.setDescriptionMap(descriptionMap, defaultLocale);
650 }
651
652
657 @Override
658 public java.lang.String getSettings() {
659 return _assetVocabulary.getSettings();
660 }
661
662
667 @Override
668 public void setSettings(java.lang.String settings) {
669 _assetVocabulary.setSettings(settings);
670 }
671
672 @Override
673 public boolean isNew() {
674 return _assetVocabulary.isNew();
675 }
676
677 @Override
678 public void setNew(boolean n) {
679 _assetVocabulary.setNew(n);
680 }
681
682 @Override
683 public boolean isCachedModel() {
684 return _assetVocabulary.isCachedModel();
685 }
686
687 @Override
688 public void setCachedModel(boolean cachedModel) {
689 _assetVocabulary.setCachedModel(cachedModel);
690 }
691
692 @Override
693 public boolean isEscapedModel() {
694 return _assetVocabulary.isEscapedModel();
695 }
696
697 @Override
698 public java.io.Serializable getPrimaryKeyObj() {
699 return _assetVocabulary.getPrimaryKeyObj();
700 }
701
702 @Override
703 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
704 _assetVocabulary.setPrimaryKeyObj(primaryKeyObj);
705 }
706
707 @Override
708 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
709 return _assetVocabulary.getExpandoBridge();
710 }
711
712 @Override
713 public void setExpandoBridgeAttributes(
714 com.liferay.portal.model.BaseModel<?> baseModel) {
715 _assetVocabulary.setExpandoBridgeAttributes(baseModel);
716 }
717
718 @Override
719 public void setExpandoBridgeAttributes(
720 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
721 _assetVocabulary.setExpandoBridgeAttributes(expandoBridge);
722 }
723
724 @Override
725 public void setExpandoBridgeAttributes(
726 com.liferay.portal.service.ServiceContext serviceContext) {
727 _assetVocabulary.setExpandoBridgeAttributes(serviceContext);
728 }
729
730 @Override
731 public java.lang.String[] getAvailableLanguageIds() {
732 return _assetVocabulary.getAvailableLanguageIds();
733 }
734
735 @Override
736 public java.lang.String getDefaultLanguageId() {
737 return _assetVocabulary.getDefaultLanguageId();
738 }
739
740 @Override
741 public void prepareLocalizedFieldsForImport()
742 throws com.liferay.portal.LocaleException {
743 _assetVocabulary.prepareLocalizedFieldsForImport();
744 }
745
746 @Override
747 public void prepareLocalizedFieldsForImport(
748 java.util.Locale defaultImportLocale)
749 throws com.liferay.portal.LocaleException {
750 _assetVocabulary.prepareLocalizedFieldsForImport(defaultImportLocale);
751 }
752
753 @Override
754 public java.lang.Object clone() {
755 return new AssetVocabularyWrapper((AssetVocabulary)_assetVocabulary.clone());
756 }
757
758 @Override
759 public int compareTo(
760 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
761 return _assetVocabulary.compareTo(assetVocabulary);
762 }
763
764 @Override
765 public int hashCode() {
766 return _assetVocabulary.hashCode();
767 }
768
769 @Override
770 public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetVocabulary> toCacheModel() {
771 return _assetVocabulary.toCacheModel();
772 }
773
774 @Override
775 public com.liferay.portlet.asset.model.AssetVocabulary toEscapedModel() {
776 return new AssetVocabularyWrapper(_assetVocabulary.toEscapedModel());
777 }
778
779 @Override
780 public com.liferay.portlet.asset.model.AssetVocabulary toUnescapedModel() {
781 return new AssetVocabularyWrapper(_assetVocabulary.toUnescapedModel());
782 }
783
784 @Override
785 public java.lang.String toString() {
786 return _assetVocabulary.toString();
787 }
788
789 @Override
790 public java.lang.String toXmlString() {
791 return _assetVocabulary.toXmlString();
792 }
793
794 @Override
795 public void persist()
796 throws com.liferay.portal.kernel.exception.SystemException {
797 _assetVocabulary.persist();
798 }
799
800 @Override
801 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
802 throws com.liferay.portal.kernel.exception.SystemException {
803 return _assetVocabulary.getCategories();
804 }
805
806 @Override
807 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
808 return _assetVocabulary.getSettingsProperties();
809 }
810
811 @Override
812 public boolean isMultiValued() {
813 return _assetVocabulary.isMultiValued();
814 }
815
816 @Override
817 public boolean isRequired(long classNameId) {
818 return _assetVocabulary.isRequired(classNameId);
819 }
820
821 @Override
822 public void setSettingsProperties(
823 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
824 _assetVocabulary.setSettingsProperties(settingsProperties);
825 }
826
827 @Override
828 public boolean equals(Object obj) {
829 if (this == obj) {
830 return true;
831 }
832
833 if (!(obj instanceof AssetVocabularyWrapper)) {
834 return false;
835 }
836
837 AssetVocabularyWrapper assetVocabularyWrapper = (AssetVocabularyWrapper)obj;
838
839 if (Validator.equals(_assetVocabulary,
840 assetVocabularyWrapper._assetVocabulary)) {
841 return true;
842 }
843
844 return false;
845 }
846
847 @Override
848 public StagedModelType getStagedModelType() {
849 return _assetVocabulary.getStagedModelType();
850 }
851
852
855 public AssetVocabulary getWrappedAssetVocabulary() {
856 return _assetVocabulary;
857 }
858
859 @Override
860 public AssetVocabulary getWrappedModel() {
861 return _assetVocabulary;
862 }
863
864 @Override
865 public void resetOriginalValues() {
866 _assetVocabulary.resetOriginalValues();
867 }
868
869 private AssetVocabulary _assetVocabulary;
870 }