001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
029     * <p>
030     * This class is a wrapper for {@link AssetVocabulary}.
031     * </p>
032     *
033     * @author Brian Wing Shun Chan
034     * @see AssetVocabulary
035     * @generated
036     */
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    
071                    return attributes;
072            }
073    
074            @Override
075            public void setModelAttributes(Map<String, Object> attributes) {
076                    String uuid = (String)attributes.get("uuid");
077    
078                    if (uuid != null) {
079                            setUuid(uuid);
080                    }
081    
082                    Long vocabularyId = (Long)attributes.get("vocabularyId");
083    
084                    if (vocabularyId != null) {
085                            setVocabularyId(vocabularyId);
086                    }
087    
088                    Long groupId = (Long)attributes.get("groupId");
089    
090                    if (groupId != null) {
091                            setGroupId(groupId);
092                    }
093    
094                    Long companyId = (Long)attributes.get("companyId");
095    
096                    if (companyId != null) {
097                            setCompanyId(companyId);
098                    }
099    
100                    Long userId = (Long)attributes.get("userId");
101    
102                    if (userId != null) {
103                            setUserId(userId);
104                    }
105    
106                    String userName = (String)attributes.get("userName");
107    
108                    if (userName != null) {
109                            setUserName(userName);
110                    }
111    
112                    Date createDate = (Date)attributes.get("createDate");
113    
114                    if (createDate != null) {
115                            setCreateDate(createDate);
116                    }
117    
118                    Date modifiedDate = (Date)attributes.get("modifiedDate");
119    
120                    if (modifiedDate != null) {
121                            setModifiedDate(modifiedDate);
122                    }
123    
124                    String name = (String)attributes.get("name");
125    
126                    if (name != null) {
127                            setName(name);
128                    }
129    
130                    String title = (String)attributes.get("title");
131    
132                    if (title != null) {
133                            setTitle(title);
134                    }
135    
136                    String description = (String)attributes.get("description");
137    
138                    if (description != null) {
139                            setDescription(description);
140                    }
141    
142                    String settings = (String)attributes.get("settings");
143    
144                    if (settings != null) {
145                            setSettings(settings);
146                    }
147            }
148    
149            @Override
150            public java.lang.Object clone() {
151                    return new AssetVocabularyWrapper((AssetVocabulary)_assetVocabulary.clone());
152            }
153    
154            @Override
155            public int compareTo(
156                    com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary) {
157                    return _assetVocabulary.compareTo(assetVocabulary);
158            }
159    
160            @Override
161            public java.lang.String[] getAvailableLanguageIds() {
162                    return _assetVocabulary.getAvailableLanguageIds();
163            }
164    
165            @Override
166            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories() {
167                    return _assetVocabulary.getCategories();
168            }
169    
170            @Override
171            public int getCategoriesCount() {
172                    return _assetVocabulary.getCategoriesCount();
173            }
174    
175            /**
176            * Returns the company ID of this asset vocabulary.
177            *
178            * @return the company ID of this asset vocabulary
179            */
180            @Override
181            public long getCompanyId() {
182                    return _assetVocabulary.getCompanyId();
183            }
184    
185            /**
186            * Returns the create date of this asset vocabulary.
187            *
188            * @return the create date of this asset vocabulary
189            */
190            @Override
191            public Date getCreateDate() {
192                    return _assetVocabulary.getCreateDate();
193            }
194    
195            @Override
196            public java.lang.String getDefaultLanguageId() {
197                    return _assetVocabulary.getDefaultLanguageId();
198            }
199    
200            /**
201            * Returns the description of this asset vocabulary.
202            *
203            * @return the description of this asset vocabulary
204            */
205            @Override
206            public java.lang.String getDescription() {
207                    return _assetVocabulary.getDescription();
208            }
209    
210            /**
211            * Returns the localized description of this asset vocabulary in the language. Uses the default language if no localization exists for the requested language.
212            *
213            * @param languageId the ID of the language
214            * @return the localized description of this asset vocabulary
215            */
216            @Override
217            public java.lang.String getDescription(java.lang.String languageId) {
218                    return _assetVocabulary.getDescription(languageId);
219            }
220    
221            /**
222            * Returns the localized description of this asset vocabulary in the language, optionally using the default language if no localization exists for the requested language.
223            *
224            * @param languageId the ID of the language
225            * @param useDefault whether to use the default language if no localization exists for the requested language
226            * @return the localized description of this asset vocabulary
227            */
228            @Override
229            public java.lang.String getDescription(java.lang.String languageId,
230                    boolean useDefault) {
231                    return _assetVocabulary.getDescription(languageId, useDefault);
232            }
233    
234            /**
235            * Returns the localized description of this asset vocabulary in the language. Uses the default language if no localization exists for the requested language.
236            *
237            * @param locale the locale of the language
238            * @return the localized description of this asset vocabulary
239            */
240            @Override
241            public java.lang.String getDescription(java.util.Locale locale) {
242                    return _assetVocabulary.getDescription(locale);
243            }
244    
245            /**
246            * Returns the localized description of this asset vocabulary in the language, optionally using the default language if no localization exists for the requested language.
247            *
248            * @param locale the local of the language
249            * @param useDefault whether to use the default language if no localization exists for the requested language
250            * @return the localized description of this asset vocabulary. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
251            */
252            @Override
253            public java.lang.String getDescription(java.util.Locale locale,
254                    boolean useDefault) {
255                    return _assetVocabulary.getDescription(locale, useDefault);
256            }
257    
258            @Override
259            public java.lang.String getDescriptionCurrentLanguageId() {
260                    return _assetVocabulary.getDescriptionCurrentLanguageId();
261            }
262    
263            @Override
264            public java.lang.String getDescriptionCurrentValue() {
265                    return _assetVocabulary.getDescriptionCurrentValue();
266            }
267    
268            /**
269            * Returns a map of the locales and localized descriptions of this asset vocabulary.
270            *
271            * @return the locales and localized descriptions of this asset vocabulary
272            */
273            @Override
274            public Map<java.util.Locale, java.lang.String> getDescriptionMap() {
275                    return _assetVocabulary.getDescriptionMap();
276            }
277    
278            @Override
279            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
280                    return _assetVocabulary.getExpandoBridge();
281            }
282    
283            /**
284            * Returns the group ID of this asset vocabulary.
285            *
286            * @return the group ID of this asset vocabulary
287            */
288            @Override
289            public long getGroupId() {
290                    return _assetVocabulary.getGroupId();
291            }
292    
293            /**
294            * Returns the modified date of this asset vocabulary.
295            *
296            * @return the modified date of this asset vocabulary
297            */
298            @Override
299            public Date getModifiedDate() {
300                    return _assetVocabulary.getModifiedDate();
301            }
302    
303            /**
304            * Returns the name of this asset vocabulary.
305            *
306            * @return the name of this asset vocabulary
307            */
308            @Override
309            public java.lang.String getName() {
310                    return _assetVocabulary.getName();
311            }
312    
313            /**
314            * Returns the primary key of this asset vocabulary.
315            *
316            * @return the primary key of this asset vocabulary
317            */
318            @Override
319            public long getPrimaryKey() {
320                    return _assetVocabulary.getPrimaryKey();
321            }
322    
323            @Override
324            public java.io.Serializable getPrimaryKeyObj() {
325                    return _assetVocabulary.getPrimaryKeyObj();
326            }
327    
328            @Override
329            public long[] getRequiredClassNameIds() {
330                    return _assetVocabulary.getRequiredClassNameIds();
331            }
332    
333            @Override
334            public long[] getSelectedClassNameIds() {
335                    return _assetVocabulary.getSelectedClassNameIds();
336            }
337    
338            @Override
339            public long[] getSelectedClassTypePKs() {
340                    return _assetVocabulary.getSelectedClassTypePKs();
341            }
342    
343            /**
344            * Returns the settings of this asset vocabulary.
345            *
346            * @return the settings of this asset vocabulary
347            */
348            @Override
349            public java.lang.String getSettings() {
350                    return _assetVocabulary.getSettings();
351            }
352    
353            /**
354            * @deprecated As of 7.0.0, with no direct replacement
355            */
356            @Deprecated
357            @Override
358            public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
359                    return _assetVocabulary.getSettingsProperties();
360            }
361    
362            /**
363            * Returns the title of this asset vocabulary.
364            *
365            * @return the title of this asset vocabulary
366            */
367            @Override
368            public java.lang.String getTitle() {
369                    return _assetVocabulary.getTitle();
370            }
371    
372            /**
373            * Returns the localized title of this asset vocabulary in the language. Uses the default language if no localization exists for the requested language.
374            *
375            * @param languageId the ID of the language
376            * @return the localized title of this asset vocabulary
377            */
378            @Override
379            public java.lang.String getTitle(java.lang.String languageId) {
380                    return _assetVocabulary.getTitle(languageId);
381            }
382    
383            /**
384            * Returns the localized title of this asset vocabulary in the language, optionally using the default language if no localization exists for the requested language.
385            *
386            * @param languageId the ID of the language
387            * @param useDefault whether to use the default language if no localization exists for the requested language
388            * @return the localized title of this asset vocabulary
389            */
390            @Override
391            public java.lang.String getTitle(java.lang.String languageId,
392                    boolean useDefault) {
393                    return _assetVocabulary.getTitle(languageId, useDefault);
394            }
395    
396            /**
397            * Returns the localized title of this asset vocabulary in the language. Uses the default language if no localization exists for the requested language.
398            *
399            * @param locale the locale of the language
400            * @return the localized title of this asset vocabulary
401            */
402            @Override
403            public java.lang.String getTitle(java.util.Locale locale) {
404                    return _assetVocabulary.getTitle(locale);
405            }
406    
407            /**
408            * Returns the localized title of this asset vocabulary in the language, optionally using the default language if no localization exists for the requested language.
409            *
410            * @param locale the local of the language
411            * @param useDefault whether to use the default language if no localization exists for the requested language
412            * @return the localized title of this asset vocabulary. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
413            */
414            @Override
415            public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
416                    return _assetVocabulary.getTitle(locale, useDefault);
417            }
418    
419            @Override
420            public java.lang.String getTitleCurrentLanguageId() {
421                    return _assetVocabulary.getTitleCurrentLanguageId();
422            }
423    
424            @Override
425            public java.lang.String getTitleCurrentValue() {
426                    return _assetVocabulary.getTitleCurrentValue();
427            }
428    
429            /**
430            * Returns a map of the locales and localized titles of this asset vocabulary.
431            *
432            * @return the locales and localized titles of this asset vocabulary
433            */
434            @Override
435            public Map<java.util.Locale, java.lang.String> getTitleMap() {
436                    return _assetVocabulary.getTitleMap();
437            }
438    
439            @Override
440            public java.lang.String getUnambiguousTitle(
441                    java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> vocabularies,
442                    long groupId, java.util.Locale locale)
443                    throws com.liferay.portal.kernel.exception.PortalException {
444                    return _assetVocabulary.getUnambiguousTitle(vocabularies, groupId,
445                            locale);
446            }
447    
448            /**
449            * Returns the user ID of this asset vocabulary.
450            *
451            * @return the user ID of this asset vocabulary
452            */
453            @Override
454            public long getUserId() {
455                    return _assetVocabulary.getUserId();
456            }
457    
458            /**
459            * Returns the user name of this asset vocabulary.
460            *
461            * @return the user name of this asset vocabulary
462            */
463            @Override
464            public java.lang.String getUserName() {
465                    return _assetVocabulary.getUserName();
466            }
467    
468            /**
469            * Returns the user uuid of this asset vocabulary.
470            *
471            * @return the user uuid of this asset vocabulary
472            */
473            @Override
474            public java.lang.String getUserUuid() {
475                    return _assetVocabulary.getUserUuid();
476            }
477    
478            /**
479            * Returns the uuid of this asset vocabulary.
480            *
481            * @return the uuid of this asset vocabulary
482            */
483            @Override
484            public java.lang.String getUuid() {
485                    return _assetVocabulary.getUuid();
486            }
487    
488            /**
489            * Returns the vocabulary ID of this asset vocabulary.
490            *
491            * @return the vocabulary ID of this asset vocabulary
492            */
493            @Override
494            public long getVocabularyId() {
495                    return _assetVocabulary.getVocabularyId();
496            }
497    
498            @Override
499            public boolean hasMoreThanOneCategorySelected(long[] categoryIds) {
500                    return _assetVocabulary.hasMoreThanOneCategorySelected(categoryIds);
501            }
502    
503            @Override
504            public int hashCode() {
505                    return _assetVocabulary.hashCode();
506            }
507    
508            @Override
509            public boolean isAssociatedToClassNameId(long classNameId) {
510                    return _assetVocabulary.isAssociatedToClassNameId(classNameId);
511            }
512    
513            @Override
514            public boolean isAssociatedToClassNameIdAndClassTypePK(long classNameId,
515                    long classTypePK) {
516                    return _assetVocabulary.isAssociatedToClassNameIdAndClassTypePK(classNameId,
517                            classTypePK);
518            }
519    
520            @Override
521            public boolean isCachedModel() {
522                    return _assetVocabulary.isCachedModel();
523            }
524    
525            @Override
526            public boolean isEscapedModel() {
527                    return _assetVocabulary.isEscapedModel();
528            }
529    
530            @Override
531            public boolean isMissingRequiredCategory(long classNameId,
532                    long classTypePK, long[] categoryIds) {
533                    return _assetVocabulary.isMissingRequiredCategory(classNameId,
534                            classTypePK, categoryIds);
535            }
536    
537            @Override
538            public boolean isMultiValued() {
539                    return _assetVocabulary.isMultiValued();
540            }
541    
542            @Override
543            public boolean isNew() {
544                    return _assetVocabulary.isNew();
545            }
546    
547            /**
548            * @deprecated As of 7.0.0, replaced by {@link #isRequired(long, long)}
549            */
550            @Deprecated
551            @Override
552            public boolean isRequired(long classNameId) {
553                    return _assetVocabulary.isRequired(classNameId);
554            }
555    
556            @Override
557            public boolean isRequired(long classNameId, long classTypePK) {
558                    return _assetVocabulary.isRequired(classNameId, classTypePK);
559            }
560    
561            @Override
562            public void persist() {
563                    _assetVocabulary.persist();
564            }
565    
566            @Override
567            public void prepareLocalizedFieldsForImport()
568                    throws com.liferay.portal.LocaleException {
569                    _assetVocabulary.prepareLocalizedFieldsForImport();
570            }
571    
572            @Override
573            public void prepareLocalizedFieldsForImport(
574                    java.util.Locale defaultImportLocale)
575                    throws com.liferay.portal.LocaleException {
576                    _assetVocabulary.prepareLocalizedFieldsForImport(defaultImportLocale);
577            }
578    
579            @Override
580            public void setCachedModel(boolean cachedModel) {
581                    _assetVocabulary.setCachedModel(cachedModel);
582            }
583    
584            /**
585            * Sets the company ID of this asset vocabulary.
586            *
587            * @param companyId the company ID of this asset vocabulary
588            */
589            @Override
590            public void setCompanyId(long companyId) {
591                    _assetVocabulary.setCompanyId(companyId);
592            }
593    
594            /**
595            * Sets the create date of this asset vocabulary.
596            *
597            * @param createDate the create date of this asset vocabulary
598            */
599            @Override
600            public void setCreateDate(Date createDate) {
601                    _assetVocabulary.setCreateDate(createDate);
602            }
603    
604            /**
605            * Sets the description of this asset vocabulary.
606            *
607            * @param description the description of this asset vocabulary
608            */
609            @Override
610            public void setDescription(java.lang.String description) {
611                    _assetVocabulary.setDescription(description);
612            }
613    
614            /**
615            * Sets the localized description of this asset vocabulary in the language.
616            *
617            * @param description the localized description of this asset vocabulary
618            * @param locale the locale of the language
619            */
620            @Override
621            public void setDescription(java.lang.String description,
622                    java.util.Locale locale) {
623                    _assetVocabulary.setDescription(description, locale);
624            }
625    
626            /**
627            * Sets the localized description of this asset vocabulary in the language, and sets the default locale.
628            *
629            * @param description the localized description of this asset vocabulary
630            * @param locale the locale of the language
631            * @param defaultLocale the default locale
632            */
633            @Override
634            public void setDescription(java.lang.String description,
635                    java.util.Locale locale, java.util.Locale defaultLocale) {
636                    _assetVocabulary.setDescription(description, locale, defaultLocale);
637            }
638    
639            @Override
640            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
641                    _assetVocabulary.setDescriptionCurrentLanguageId(languageId);
642            }
643    
644            /**
645            * Sets the localized descriptions of this asset vocabulary from the map of locales and localized descriptions.
646            *
647            * @param descriptionMap the locales and localized descriptions of this asset vocabulary
648            */
649            @Override
650            public void setDescriptionMap(
651                    Map<java.util.Locale, java.lang.String> descriptionMap) {
652                    _assetVocabulary.setDescriptionMap(descriptionMap);
653            }
654    
655            /**
656            * Sets the localized descriptions of this asset vocabulary from the map of locales and localized descriptions, and sets the default locale.
657            *
658            * @param descriptionMap the locales and localized descriptions of this asset vocabulary
659            * @param defaultLocale the default locale
660            */
661            @Override
662            public void setDescriptionMap(
663                    Map<java.util.Locale, java.lang.String> descriptionMap,
664                    java.util.Locale defaultLocale) {
665                    _assetVocabulary.setDescriptionMap(descriptionMap, defaultLocale);
666            }
667    
668            @Override
669            public void setExpandoBridgeAttributes(
670                    com.liferay.portal.model.BaseModel<?> baseModel) {
671                    _assetVocabulary.setExpandoBridgeAttributes(baseModel);
672            }
673    
674            @Override
675            public void setExpandoBridgeAttributes(
676                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
677                    _assetVocabulary.setExpandoBridgeAttributes(expandoBridge);
678            }
679    
680            @Override
681            public void setExpandoBridgeAttributes(
682                    com.liferay.portal.service.ServiceContext serviceContext) {
683                    _assetVocabulary.setExpandoBridgeAttributes(serviceContext);
684            }
685    
686            /**
687            * Sets the group ID of this asset vocabulary.
688            *
689            * @param groupId the group ID of this asset vocabulary
690            */
691            @Override
692            public void setGroupId(long groupId) {
693                    _assetVocabulary.setGroupId(groupId);
694            }
695    
696            /**
697            * Sets the modified date of this asset vocabulary.
698            *
699            * @param modifiedDate the modified date of this asset vocabulary
700            */
701            @Override
702            public void setModifiedDate(Date modifiedDate) {
703                    _assetVocabulary.setModifiedDate(modifiedDate);
704            }
705    
706            /**
707            * Sets the name of this asset vocabulary.
708            *
709            * @param name the name of this asset vocabulary
710            */
711            @Override
712            public void setName(java.lang.String name) {
713                    _assetVocabulary.setName(name);
714            }
715    
716            @Override
717            public void setNew(boolean n) {
718                    _assetVocabulary.setNew(n);
719            }
720    
721            /**
722            * Sets the primary key of this asset vocabulary.
723            *
724            * @param primaryKey the primary key of this asset vocabulary
725            */
726            @Override
727            public void setPrimaryKey(long primaryKey) {
728                    _assetVocabulary.setPrimaryKey(primaryKey);
729            }
730    
731            @Override
732            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
733                    _assetVocabulary.setPrimaryKeyObj(primaryKeyObj);
734            }
735    
736            /**
737            * Sets the settings of this asset vocabulary.
738            *
739            * @param settings the settings of this asset vocabulary
740            */
741            @Override
742            public void setSettings(java.lang.String settings) {
743                    _assetVocabulary.setSettings(settings);
744            }
745    
746            /**
747            * @deprecated As of 7.0.0, with no direct replacement
748            */
749            @Deprecated
750            @Override
751            public void setSettingsProperties(
752                    com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
753                    _assetVocabulary.setSettingsProperties(settingsProperties);
754            }
755    
756            /**
757            * Sets the title of this asset vocabulary.
758            *
759            * @param title the title of this asset vocabulary
760            */
761            @Override
762            public void setTitle(java.lang.String title) {
763                    _assetVocabulary.setTitle(title);
764            }
765    
766            /**
767            * Sets the localized title of this asset vocabulary in the language.
768            *
769            * @param title the localized title of this asset vocabulary
770            * @param locale the locale of the language
771            */
772            @Override
773            public void setTitle(java.lang.String title, java.util.Locale locale) {
774                    _assetVocabulary.setTitle(title, locale);
775            }
776    
777            /**
778            * Sets the localized title of this asset vocabulary in the language, and sets the default locale.
779            *
780            * @param title the localized title of this asset vocabulary
781            * @param locale the locale of the language
782            * @param defaultLocale the default locale
783            */
784            @Override
785            public void setTitle(java.lang.String title, java.util.Locale locale,
786                    java.util.Locale defaultLocale) {
787                    _assetVocabulary.setTitle(title, locale, defaultLocale);
788            }
789    
790            @Override
791            public void setTitleCurrentLanguageId(java.lang.String languageId) {
792                    _assetVocabulary.setTitleCurrentLanguageId(languageId);
793            }
794    
795            /**
796            * Sets the localized titles of this asset vocabulary from the map of locales and localized titles.
797            *
798            * @param titleMap the locales and localized titles of this asset vocabulary
799            */
800            @Override
801            public void setTitleMap(Map<java.util.Locale, java.lang.String> titleMap) {
802                    _assetVocabulary.setTitleMap(titleMap);
803            }
804    
805            /**
806            * Sets the localized titles of this asset vocabulary from the map of locales and localized titles, and sets the default locale.
807            *
808            * @param titleMap the locales and localized titles of this asset vocabulary
809            * @param defaultLocale the default locale
810            */
811            @Override
812            public void setTitleMap(Map<java.util.Locale, java.lang.String> titleMap,
813                    java.util.Locale defaultLocale) {
814                    _assetVocabulary.setTitleMap(titleMap, defaultLocale);
815            }
816    
817            /**
818            * Sets the user ID of this asset vocabulary.
819            *
820            * @param userId the user ID of this asset vocabulary
821            */
822            @Override
823            public void setUserId(long userId) {
824                    _assetVocabulary.setUserId(userId);
825            }
826    
827            /**
828            * Sets the user name of this asset vocabulary.
829            *
830            * @param userName the user name of this asset vocabulary
831            */
832            @Override
833            public void setUserName(java.lang.String userName) {
834                    _assetVocabulary.setUserName(userName);
835            }
836    
837            /**
838            * Sets the user uuid of this asset vocabulary.
839            *
840            * @param userUuid the user uuid of this asset vocabulary
841            */
842            @Override
843            public void setUserUuid(java.lang.String userUuid) {
844                    _assetVocabulary.setUserUuid(userUuid);
845            }
846    
847            /**
848            * Sets the uuid of this asset vocabulary.
849            *
850            * @param uuid the uuid of this asset vocabulary
851            */
852            @Override
853            public void setUuid(java.lang.String uuid) {
854                    _assetVocabulary.setUuid(uuid);
855            }
856    
857            /**
858            * Sets the vocabulary ID of this asset vocabulary.
859            *
860            * @param vocabularyId the vocabulary ID of this asset vocabulary
861            */
862            @Override
863            public void setVocabularyId(long vocabularyId) {
864                    _assetVocabulary.setVocabularyId(vocabularyId);
865            }
866    
867            @Override
868            public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetVocabulary> toCacheModel() {
869                    return _assetVocabulary.toCacheModel();
870            }
871    
872            @Override
873            public com.liferay.portlet.asset.model.AssetVocabulary toEscapedModel() {
874                    return new AssetVocabularyWrapper(_assetVocabulary.toEscapedModel());
875            }
876    
877            @Override
878            public java.lang.String toString() {
879                    return _assetVocabulary.toString();
880            }
881    
882            @Override
883            public com.liferay.portlet.asset.model.AssetVocabulary toUnescapedModel() {
884                    return new AssetVocabularyWrapper(_assetVocabulary.toUnescapedModel());
885            }
886    
887            @Override
888            public java.lang.String toXmlString() {
889                    return _assetVocabulary.toXmlString();
890            }
891    
892            @Override
893            public boolean equals(Object obj) {
894                    if (this == obj) {
895                            return true;
896                    }
897    
898                    if (!(obj instanceof AssetVocabularyWrapper)) {
899                            return false;
900                    }
901    
902                    AssetVocabularyWrapper assetVocabularyWrapper = (AssetVocabularyWrapper)obj;
903    
904                    if (Validator.equals(_assetVocabulary,
905                                            assetVocabularyWrapper._assetVocabulary)) {
906                            return true;
907                    }
908    
909                    return false;
910            }
911    
912            @Override
913            public StagedModelType getStagedModelType() {
914                    return _assetVocabulary.getStagedModelType();
915            }
916    
917            /**
918             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
919             */
920            @Deprecated
921            public AssetVocabulary getWrappedAssetVocabulary() {
922                    return _assetVocabulary;
923            }
924    
925            @Override
926            public AssetVocabulary getWrappedModel() {
927                    return _assetVocabulary;
928            }
929    
930            @Override
931            public boolean isEntityCacheEnabled() {
932                    return _assetVocabulary.isEntityCacheEnabled();
933            }
934    
935            @Override
936            public boolean isFinderCacheEnabled() {
937                    return _assetVocabulary.isFinderCacheEnabled();
938            }
939    
940            @Override
941            public void resetOriginalValues() {
942                    _assetVocabulary.resetOriginalValues();
943            }
944    
945            private final AssetVocabulary _assetVocabulary;
946    }