001
014
015 package com.liferay.portlet.asset.model;
016
017 import com.liferay.portal.kernel.lar.StagedModelType;
018 import com.liferay.portal.kernel.util.Validator;
019 import com.liferay.portal.model.ModelWrapper;
020
021 import java.util.Date;
022 import java.util.HashMap;
023 import java.util.Map;
024
025
034 public class AssetVocabularyWrapper implements AssetVocabulary,
035 ModelWrapper<AssetVocabulary> {
036 public AssetVocabularyWrapper(AssetVocabulary assetVocabulary) {
037 _assetVocabulary = assetVocabulary;
038 }
039
040 @Override
041 public Class<?> getModelClass() {
042 return AssetVocabulary.class;
043 }
044
045 @Override
046 public String getModelClassName() {
047 return AssetVocabulary.class.getName();
048 }
049
050 @Override
051 public Map<String, Object> getModelAttributes() {
052 Map<String, Object> attributes = new HashMap<String, Object>();
053
054 attributes.put("uuid", getUuid());
055 attributes.put("vocabularyId", getVocabularyId());
056 attributes.put("groupId", getGroupId());
057 attributes.put("companyId", getCompanyId());
058 attributes.put("userId", getUserId());
059 attributes.put("userName", getUserName());
060 attributes.put("createDate", getCreateDate());
061 attributes.put("modifiedDate", getModifiedDate());
062 attributes.put("name", getName());
063 attributes.put("title", getTitle());
064 attributes.put("description", getDescription());
065 attributes.put("settings", getSettings());
066
067 return attributes;
068 }
069
070 @Override
071 public void setModelAttributes(Map<String, Object> attributes) {
072 String uuid = (String)attributes.get("uuid");
073
074 if (uuid != null) {
075 setUuid(uuid);
076 }
077
078 Long vocabularyId = (Long)attributes.get("vocabularyId");
079
080 if (vocabularyId != null) {
081 setVocabularyId(vocabularyId);
082 }
083
084 Long groupId = (Long)attributes.get("groupId");
085
086 if (groupId != null) {
087 setGroupId(groupId);
088 }
089
090 Long companyId = (Long)attributes.get("companyId");
091
092 if (companyId != null) {
093 setCompanyId(companyId);
094 }
095
096 Long userId = (Long)attributes.get("userId");
097
098 if (userId != null) {
099 setUserId(userId);
100 }
101
102 String userName = (String)attributes.get("userName");
103
104 if (userName != null) {
105 setUserName(userName);
106 }
107
108 Date createDate = (Date)attributes.get("createDate");
109
110 if (createDate != null) {
111 setCreateDate(createDate);
112 }
113
114 Date modifiedDate = (Date)attributes.get("modifiedDate");
115
116 if (modifiedDate != null) {
117 setModifiedDate(modifiedDate);
118 }
119
120 String name = (String)attributes.get("name");
121
122 if (name != null) {
123 setName(name);
124 }
125
126 String title = (String)attributes.get("title");
127
128 if (title != null) {
129 setTitle(title);
130 }
131
132 String description = (String)attributes.get("description");
133
134 if (description != null) {
135 setDescription(description);
136 }
137
138 String settings = (String)attributes.get("settings");
139
140 if (settings != null) {
141 setSettings(settings);
142 }
143 }
144
145
150 @Override
151 public long getPrimaryKey() {
152 return _assetVocabulary.getPrimaryKey();
153 }
154
155
160 @Override
161 public void setPrimaryKey(long primaryKey) {
162 _assetVocabulary.setPrimaryKey(primaryKey);
163 }
164
165
170 @Override
171 public java.lang.String getUuid() {
172 return _assetVocabulary.getUuid();
173 }
174
175
180 @Override
181 public void setUuid(java.lang.String uuid) {
182 _assetVocabulary.setUuid(uuid);
183 }
184
185
190 @Override
191 public long getVocabularyId() {
192 return _assetVocabulary.getVocabularyId();
193 }
194
195
200 @Override
201 public void setVocabularyId(long vocabularyId) {
202 _assetVocabulary.setVocabularyId(vocabularyId);
203 }
204
205
210 @Override
211 public long getGroupId() {
212 return _assetVocabulary.getGroupId();
213 }
214
215
220 @Override
221 public void setGroupId(long groupId) {
222 _assetVocabulary.setGroupId(groupId);
223 }
224
225
230 @Override
231 public long getCompanyId() {
232 return _assetVocabulary.getCompanyId();
233 }
234
235
240 @Override
241 public void setCompanyId(long companyId) {
242 _assetVocabulary.setCompanyId(companyId);
243 }
244
245
250 @Override
251 public long getUserId() {
252 return _assetVocabulary.getUserId();
253 }
254
255
260 @Override
261 public void setUserId(long userId) {
262 _assetVocabulary.setUserId(userId);
263 }
264
265
271 @Override
272 public java.lang.String getUserUuid()
273 throws com.liferay.portal.kernel.exception.SystemException {
274 return _assetVocabulary.getUserUuid();
275 }
276
277
282 @Override
283 public void setUserUuid(java.lang.String userUuid) {
284 _assetVocabulary.setUserUuid(userUuid);
285 }
286
287
292 @Override
293 public java.lang.String getUserName() {
294 return _assetVocabulary.getUserName();
295 }
296
297
302 @Override
303 public void setUserName(java.lang.String userName) {
304 _assetVocabulary.setUserName(userName);
305 }
306
307
312 @Override
313 public java.util.Date getCreateDate() {
314 return _assetVocabulary.getCreateDate();
315 }
316
317
322 @Override
323 public void setCreateDate(java.util.Date createDate) {
324 _assetVocabulary.setCreateDate(createDate);
325 }
326
327
332 @Override
333 public java.util.Date getModifiedDate() {
334 return _assetVocabulary.getModifiedDate();
335 }
336
337
342 @Override
343 public void setModifiedDate(java.util.Date modifiedDate) {
344 _assetVocabulary.setModifiedDate(modifiedDate);
345 }
346
347
352 @Override
353 public java.lang.String getName() {
354 return _assetVocabulary.getName();
355 }
356
357
362 @Override
363 public void setName(java.lang.String name) {
364 _assetVocabulary.setName(name);
365 }
366
367
372 @Override
373 public java.lang.String getTitle() {
374 return _assetVocabulary.getTitle();
375 }
376
377
383 @Override
384 public java.lang.String getTitle(java.util.Locale locale) {
385 return _assetVocabulary.getTitle(locale);
386 }
387
388
395 @Override
396 public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
397 return _assetVocabulary.getTitle(locale, useDefault);
398 }
399
400
406 @Override
407 public java.lang.String getTitle(java.lang.String languageId) {
408 return _assetVocabulary.getTitle(languageId);
409 }
410
411
418 @Override
419 public java.lang.String getTitle(java.lang.String languageId,
420 boolean useDefault) {
421 return _assetVocabulary.getTitle(languageId, useDefault);
422 }
423
424 @Override
425 public java.lang.String getTitleCurrentLanguageId() {
426 return _assetVocabulary.getTitleCurrentLanguageId();
427 }
428
429 @Override
430 public java.lang.String getTitleCurrentValue() {
431 return _assetVocabulary.getTitleCurrentValue();
432 }
433
434
439 @Override
440 public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
441 return _assetVocabulary.getTitleMap();
442 }
443
444
449 @Override
450 public void setTitle(java.lang.String title) {
451 _assetVocabulary.setTitle(title);
452 }
453
454
460 @Override
461 public void setTitle(java.lang.String title, java.util.Locale locale) {
462 _assetVocabulary.setTitle(title, locale);
463 }
464
465
472 @Override
473 public void setTitle(java.lang.String title, java.util.Locale locale,
474 java.util.Locale defaultLocale) {
475 _assetVocabulary.setTitle(title, locale, defaultLocale);
476 }
477
478 @Override
479 public void setTitleCurrentLanguageId(java.lang.String languageId) {
480 _assetVocabulary.setTitleCurrentLanguageId(languageId);
481 }
482
483
488 @Override
489 public void setTitleMap(
490 java.util.Map<java.util.Locale, java.lang.String> titleMap) {
491 _assetVocabulary.setTitleMap(titleMap);
492 }
493
494
500 @Override
501 public void setTitleMap(
502 java.util.Map<java.util.Locale, java.lang.String> titleMap,
503 java.util.Locale defaultLocale) {
504 _assetVocabulary.setTitleMap(titleMap, defaultLocale);
505 }
506
507
512 @Override
513 public java.lang.String getDescription() {
514 return _assetVocabulary.getDescription();
515 }
516
517
523 @Override
524 public java.lang.String getDescription(java.util.Locale locale) {
525 return _assetVocabulary.getDescription(locale);
526 }
527
528
535 @Override
536 public java.lang.String getDescription(java.util.Locale locale,
537 boolean useDefault) {
538 return _assetVocabulary.getDescription(locale, useDefault);
539 }
540
541
547 @Override
548 public java.lang.String getDescription(java.lang.String languageId) {
549 return _assetVocabulary.getDescription(languageId);
550 }
551
552
559 @Override
560 public java.lang.String getDescription(java.lang.String languageId,
561 boolean useDefault) {
562 return _assetVocabulary.getDescription(languageId, useDefault);
563 }
564
565 @Override
566 public java.lang.String getDescriptionCurrentLanguageId() {
567 return _assetVocabulary.getDescriptionCurrentLanguageId();
568 }
569
570 @Override
571 public java.lang.String getDescriptionCurrentValue() {
572 return _assetVocabulary.getDescriptionCurrentValue();
573 }
574
575
580 @Override
581 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
582 return _assetVocabulary.getDescriptionMap();
583 }
584
585
590 @Override
591 public void setDescription(java.lang.String description) {
592 _assetVocabulary.setDescription(description);
593 }
594
595
601 @Override
602 public void setDescription(java.lang.String description,
603 java.util.Locale locale) {
604 _assetVocabulary.setDescription(description, locale);
605 }
606
607
614 @Override
615 public void setDescription(java.lang.String description,
616 java.util.Locale locale, java.util.Locale defaultLocale) {
617 _assetVocabulary.setDescription(description, locale, defaultLocale);
618 }
619
620 @Override
621 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
622 _assetVocabulary.setDescriptionCurrentLanguageId(languageId);
623 }
624
625
630 @Override
631 public void setDescriptionMap(
632 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
633 _assetVocabulary.setDescriptionMap(descriptionMap);
634 }
635
636
642 @Override
643 public void setDescriptionMap(
644 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
645 java.util.Locale defaultLocale) {
646 _assetVocabulary.setDescriptionMap(descriptionMap, defaultLocale);
647 }
648
649
654 @Override
655 public java.lang.String getSettings() {
656 return _assetVocabulary.getSettings();
657 }
658
659
664 @Override
665 public void setSettings(java.lang.String settings) {
666 _assetVocabulary.setSettings(settings);
667 }
668
669 @Override
670 public boolean isNew() {
671 return _assetVocabulary.isNew();
672 }
673
674 @Override
675 public void setNew(boolean n) {
676 _assetVocabulary.setNew(n);
677 }
678
679 @Override
680 public boolean isCachedModel() {
681 return _assetVocabulary.isCachedModel();
682 }
683
684 @Override
685 public void setCachedModel(boolean cachedModel) {
686 _assetVocabulary.setCachedModel(cachedModel);
687 }
688
689 @Override
690 public boolean isEscapedModel() {
691 return _assetVocabulary.isEscapedModel();
692 }
693
694 @Override
695 public java.io.Serializable getPrimaryKeyObj() {
696 return _assetVocabulary.getPrimaryKeyObj();
697 }
698
699 @Override
700 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
701 _assetVocabulary.setPrimaryKeyObj(primaryKeyObj);
702 }
703
704 @Override
705 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
706 return _assetVocabulary.getExpandoBridge();
707 }
708
709 @Override
710 public void setExpandoBridgeAttributes(
711 com.liferay.portal.model.BaseModel<?> baseModel) {
712 _assetVocabulary.setExpandoBridgeAttributes(baseModel);
713 }
714
715 @Override
716 public void setExpandoBridgeAttributes(
717 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
718 _assetVocabulary.setExpandoBridgeAttributes(expandoBridge);
719 }
720
721 @Override
722 public void setExpandoBridgeAttributes(
723 com.liferay.portal.service.ServiceContext serviceContext) {
724 _assetVocabulary.setExpandoBridgeAttributes(serviceContext);
725 }
726
727 @Override
728 public java.lang.String[] getAvailableLanguageIds() {
729 return _assetVocabulary.getAvailableLanguageIds();
730 }
731
732 @Override
733 public java.lang.String getDefaultLanguageId() {
734 return _assetVocabulary.getDefaultLanguageId();
735 }
736
737 @Override
738 public void prepareLocalizedFieldsForImport()
739 throws com.liferay.portal.LocaleException {
740 _assetVocabulary.prepareLocalizedFieldsForImport();
741 }
742
743 @Override
744 public void prepareLocalizedFieldsForImport(
745 java.util.Locale defaultImportLocale)
746 throws com.liferay.portal.LocaleException {
747 _assetVocabulary.prepareLocalizedFieldsForImport(defaultImportLocale);
748 }
749
750 @Override
751 public java.lang.Object clone() {
752 return new AssetVocabularyWrapper((AssetVocabulary)_assetVocabulary.clone());
753 }
754
755 @Override
756 public int compareTo(
757 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
758 return _assetVocabulary.compareTo(assetVocabulary);
759 }
760
761 @Override
762 public int hashCode() {
763 return _assetVocabulary.hashCode();
764 }
765
766 @Override
767 public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetVocabulary> toCacheModel() {
768 return _assetVocabulary.toCacheModel();
769 }
770
771 @Override
772 public com.liferay.portlet.asset.model.AssetVocabulary toEscapedModel() {
773 return new AssetVocabularyWrapper(_assetVocabulary.toEscapedModel());
774 }
775
776 @Override
777 public com.liferay.portlet.asset.model.AssetVocabulary toUnescapedModel() {
778 return new AssetVocabularyWrapper(_assetVocabulary.toUnescapedModel());
779 }
780
781 @Override
782 public java.lang.String toString() {
783 return _assetVocabulary.toString();
784 }
785
786 @Override
787 public java.lang.String toXmlString() {
788 return _assetVocabulary.toXmlString();
789 }
790
791 @Override
792 public void persist()
793 throws com.liferay.portal.kernel.exception.SystemException {
794 _assetVocabulary.persist();
795 }
796
797 @Override
798 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
799 throws com.liferay.portal.kernel.exception.SystemException {
800 return _assetVocabulary.getCategories();
801 }
802
803 @Override
804 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
805 return _assetVocabulary.getSettingsProperties();
806 }
807
808 @Override
809 public boolean isMultiValued() {
810 return _assetVocabulary.isMultiValued();
811 }
812
813 @Override
814 public boolean isRequired(long classNameId) {
815 return _assetVocabulary.isRequired(classNameId);
816 }
817
818 @Override
819 public void setSettingsProperties(
820 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
821 _assetVocabulary.setSettingsProperties(settingsProperties);
822 }
823
824 @Override
825 public boolean equals(Object obj) {
826 if (this == obj) {
827 return true;
828 }
829
830 if (!(obj instanceof AssetVocabularyWrapper)) {
831 return false;
832 }
833
834 AssetVocabularyWrapper assetVocabularyWrapper = (AssetVocabularyWrapper)obj;
835
836 if (Validator.equals(_assetVocabulary,
837 assetVocabularyWrapper._assetVocabulary)) {
838 return true;
839 }
840
841 return false;
842 }
843
844 @Override
845 public StagedModelType getStagedModelType() {
846 return _assetVocabulary.getStagedModelType();
847 }
848
849
852 public AssetVocabulary getWrappedAssetVocabulary() {
853 return _assetVocabulary;
854 }
855
856 @Override
857 public AssetVocabulary getWrappedModel() {
858 return _assetVocabulary;
859 }
860
861 @Override
862 public void resetOriginalValues() {
863 _assetVocabulary.resetOriginalValues();
864 }
865
866 private AssetVocabulary _assetVocabulary;
867 }