001    /**
002     * Copyright (c) 2000-2013 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 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    /**
026     * <p>
027     * This class is a wrapper for {@link AssetVocabulary}.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see AssetVocabulary
032     * @generated
033     */
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            /**
146            * Returns the primary key of this asset vocabulary.
147            *
148            * @return the primary key of this asset vocabulary
149            */
150            @Override
151            public long getPrimaryKey() {
152                    return _assetVocabulary.getPrimaryKey();
153            }
154    
155            /**
156            * Sets the primary key of this asset vocabulary.
157            *
158            * @param primaryKey the primary key of this asset vocabulary
159            */
160            @Override
161            public void setPrimaryKey(long primaryKey) {
162                    _assetVocabulary.setPrimaryKey(primaryKey);
163            }
164    
165            /**
166            * Returns the uuid of this asset vocabulary.
167            *
168            * @return the uuid of this asset vocabulary
169            */
170            @Override
171            public java.lang.String getUuid() {
172                    return _assetVocabulary.getUuid();
173            }
174    
175            /**
176            * Sets the uuid of this asset vocabulary.
177            *
178            * @param uuid the uuid of this asset vocabulary
179            */
180            @Override
181            public void setUuid(java.lang.String uuid) {
182                    _assetVocabulary.setUuid(uuid);
183            }
184    
185            /**
186            * Returns the vocabulary ID of this asset vocabulary.
187            *
188            * @return the vocabulary ID of this asset vocabulary
189            */
190            @Override
191            public long getVocabularyId() {
192                    return _assetVocabulary.getVocabularyId();
193            }
194    
195            /**
196            * Sets the vocabulary ID of this asset vocabulary.
197            *
198            * @param vocabularyId the vocabulary ID of this asset vocabulary
199            */
200            @Override
201            public void setVocabularyId(long vocabularyId) {
202                    _assetVocabulary.setVocabularyId(vocabularyId);
203            }
204    
205            /**
206            * Returns the group ID of this asset vocabulary.
207            *
208            * @return the group ID of this asset vocabulary
209            */
210            @Override
211            public long getGroupId() {
212                    return _assetVocabulary.getGroupId();
213            }
214    
215            /**
216            * Sets the group ID of this asset vocabulary.
217            *
218            * @param groupId the group ID of this asset vocabulary
219            */
220            @Override
221            public void setGroupId(long groupId) {
222                    _assetVocabulary.setGroupId(groupId);
223            }
224    
225            /**
226            * Returns the company ID of this asset vocabulary.
227            *
228            * @return the company ID of this asset vocabulary
229            */
230            @Override
231            public long getCompanyId() {
232                    return _assetVocabulary.getCompanyId();
233            }
234    
235            /**
236            * Sets the company ID of this asset vocabulary.
237            *
238            * @param companyId the company ID of this asset vocabulary
239            */
240            @Override
241            public void setCompanyId(long companyId) {
242                    _assetVocabulary.setCompanyId(companyId);
243            }
244    
245            /**
246            * Returns the user ID of this asset vocabulary.
247            *
248            * @return the user ID of this asset vocabulary
249            */
250            @Override
251            public long getUserId() {
252                    return _assetVocabulary.getUserId();
253            }
254    
255            /**
256            * Sets the user ID of this asset vocabulary.
257            *
258            * @param userId the user ID of this asset vocabulary
259            */
260            @Override
261            public void setUserId(long userId) {
262                    _assetVocabulary.setUserId(userId);
263            }
264    
265            /**
266            * Returns the user uuid of this asset vocabulary.
267            *
268            * @return the user uuid of this asset vocabulary
269            * @throws SystemException if a system exception occurred
270            */
271            @Override
272            public java.lang.String getUserUuid()
273                    throws com.liferay.portal.kernel.exception.SystemException {
274                    return _assetVocabulary.getUserUuid();
275            }
276    
277            /**
278            * Sets the user uuid of this asset vocabulary.
279            *
280            * @param userUuid the user uuid of this asset vocabulary
281            */
282            @Override
283            public void setUserUuid(java.lang.String userUuid) {
284                    _assetVocabulary.setUserUuid(userUuid);
285            }
286    
287            /**
288            * Returns the user name of this asset vocabulary.
289            *
290            * @return the user name of this asset vocabulary
291            */
292            @Override
293            public java.lang.String getUserName() {
294                    return _assetVocabulary.getUserName();
295            }
296    
297            /**
298            * Sets the user name of this asset vocabulary.
299            *
300            * @param userName the user name of this asset vocabulary
301            */
302            @Override
303            public void setUserName(java.lang.String userName) {
304                    _assetVocabulary.setUserName(userName);
305            }
306    
307            /**
308            * Returns the create date of this asset vocabulary.
309            *
310            * @return the create date of this asset vocabulary
311            */
312            @Override
313            public java.util.Date getCreateDate() {
314                    return _assetVocabulary.getCreateDate();
315            }
316    
317            /**
318            * Sets the create date of this asset vocabulary.
319            *
320            * @param createDate the create date of this asset vocabulary
321            */
322            @Override
323            public void setCreateDate(java.util.Date createDate) {
324                    _assetVocabulary.setCreateDate(createDate);
325            }
326    
327            /**
328            * Returns the modified date of this asset vocabulary.
329            *
330            * @return the modified date of this asset vocabulary
331            */
332            @Override
333            public java.util.Date getModifiedDate() {
334                    return _assetVocabulary.getModifiedDate();
335            }
336    
337            /**
338            * Sets the modified date of this asset vocabulary.
339            *
340            * @param modifiedDate the modified date of this asset vocabulary
341            */
342            @Override
343            public void setModifiedDate(java.util.Date modifiedDate) {
344                    _assetVocabulary.setModifiedDate(modifiedDate);
345            }
346    
347            /**
348            * Returns the name of this asset vocabulary.
349            *
350            * @return the name of this asset vocabulary
351            */
352            @Override
353            public java.lang.String getName() {
354                    return _assetVocabulary.getName();
355            }
356    
357            /**
358            * Sets the name of this asset vocabulary.
359            *
360            * @param name the name of this asset vocabulary
361            */
362            @Override
363            public void setName(java.lang.String name) {
364                    _assetVocabulary.setName(name);
365            }
366    
367            /**
368            * Returns the title of this asset vocabulary.
369            *
370            * @return the title of this asset vocabulary
371            */
372            @Override
373            public java.lang.String getTitle() {
374                    return _assetVocabulary.getTitle();
375            }
376    
377            /**
378            * Returns the localized title of this asset vocabulary in the language. Uses the default language if no localization exists for the requested language.
379            *
380            * @param locale the locale of the language
381            * @return the localized title of this asset vocabulary
382            */
383            @Override
384            public java.lang.String getTitle(java.util.Locale locale) {
385                    return _assetVocabulary.getTitle(locale);
386            }
387    
388            /**
389            * Returns the localized title of this asset vocabulary in the language, optionally using the default language if no localization exists for the requested language.
390            *
391            * @param locale the local of the language
392            * @param useDefault whether to use the default language if no localization exists for the requested language
393            * @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.
394            */
395            @Override
396            public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
397                    return _assetVocabulary.getTitle(locale, useDefault);
398            }
399    
400            /**
401            * Returns the localized title of this asset vocabulary in the language. Uses the default language if no localization exists for the requested language.
402            *
403            * @param languageId the ID of the language
404            * @return the localized title of this asset vocabulary
405            */
406            @Override
407            public java.lang.String getTitle(java.lang.String languageId) {
408                    return _assetVocabulary.getTitle(languageId);
409            }
410    
411            /**
412            * Returns the localized title of this asset vocabulary in the language, optionally using the default language if no localization exists for the requested language.
413            *
414            * @param languageId the ID of the language
415            * @param useDefault whether to use the default language if no localization exists for the requested language
416            * @return the localized title of this asset vocabulary
417            */
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            /**
435            * Returns a map of the locales and localized titles of this asset vocabulary.
436            *
437            * @return the locales and localized titles of this asset vocabulary
438            */
439            @Override
440            public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
441                    return _assetVocabulary.getTitleMap();
442            }
443    
444            /**
445            * Sets the title of this asset vocabulary.
446            *
447            * @param title the title of this asset vocabulary
448            */
449            @Override
450            public void setTitle(java.lang.String title) {
451                    _assetVocabulary.setTitle(title);
452            }
453    
454            /**
455            * Sets the localized title of this asset vocabulary in the language.
456            *
457            * @param title the localized title of this asset vocabulary
458            * @param locale the locale of the language
459            */
460            @Override
461            public void setTitle(java.lang.String title, java.util.Locale locale) {
462                    _assetVocabulary.setTitle(title, locale);
463            }
464    
465            /**
466            * Sets the localized title of this asset vocabulary in the language, and sets the default locale.
467            *
468            * @param title the localized title of this asset vocabulary
469            * @param locale the locale of the language
470            * @param defaultLocale the default locale
471            */
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            /**
484            * Sets the localized titles of this asset vocabulary from the map of locales and localized titles.
485            *
486            * @param titleMap the locales and localized titles of this asset vocabulary
487            */
488            @Override
489            public void setTitleMap(
490                    java.util.Map<java.util.Locale, java.lang.String> titleMap) {
491                    _assetVocabulary.setTitleMap(titleMap);
492            }
493    
494            /**
495            * Sets the localized titles of this asset vocabulary from the map of locales and localized titles, and sets the default locale.
496            *
497            * @param titleMap the locales and localized titles of this asset vocabulary
498            * @param defaultLocale the default locale
499            */
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            /**
508            * Returns the description of this asset vocabulary.
509            *
510            * @return the description of this asset vocabulary
511            */
512            @Override
513            public java.lang.String getDescription() {
514                    return _assetVocabulary.getDescription();
515            }
516    
517            /**
518            * Returns the localized description of this asset vocabulary in the language. Uses the default language if no localization exists for the requested language.
519            *
520            * @param locale the locale of the language
521            * @return the localized description of this asset vocabulary
522            */
523            @Override
524            public java.lang.String getDescription(java.util.Locale locale) {
525                    return _assetVocabulary.getDescription(locale);
526            }
527    
528            /**
529            * Returns the localized description of this asset vocabulary in the language, optionally using the default language if no localization exists for the requested language.
530            *
531            * @param locale the local of the language
532            * @param useDefault whether to use the default language if no localization exists for the requested language
533            * @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.
534            */
535            @Override
536            public java.lang.String getDescription(java.util.Locale locale,
537                    boolean useDefault) {
538                    return _assetVocabulary.getDescription(locale, useDefault);
539            }
540    
541            /**
542            * Returns the localized description of this asset vocabulary in the language. Uses the default language if no localization exists for the requested language.
543            *
544            * @param languageId the ID of the language
545            * @return the localized description of this asset vocabulary
546            */
547            @Override
548            public java.lang.String getDescription(java.lang.String languageId) {
549                    return _assetVocabulary.getDescription(languageId);
550            }
551    
552            /**
553            * Returns the localized description of this asset vocabulary in the language, optionally using the default language if no localization exists for the requested language.
554            *
555            * @param languageId the ID of the language
556            * @param useDefault whether to use the default language if no localization exists for the requested language
557            * @return the localized description of this asset vocabulary
558            */
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            /**
576            * Returns a map of the locales and localized descriptions of this asset vocabulary.
577            *
578            * @return the locales and localized descriptions of this asset vocabulary
579            */
580            @Override
581            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
582                    return _assetVocabulary.getDescriptionMap();
583            }
584    
585            /**
586            * Sets the description of this asset vocabulary.
587            *
588            * @param description the description of this asset vocabulary
589            */
590            @Override
591            public void setDescription(java.lang.String description) {
592                    _assetVocabulary.setDescription(description);
593            }
594    
595            /**
596            * Sets the localized description of this asset vocabulary in the language.
597            *
598            * @param description the localized description of this asset vocabulary
599            * @param locale the locale of the language
600            */
601            @Override
602            public void setDescription(java.lang.String description,
603                    java.util.Locale locale) {
604                    _assetVocabulary.setDescription(description, locale);
605            }
606    
607            /**
608            * Sets the localized description of this asset vocabulary in the language, and sets the default locale.
609            *
610            * @param description the localized description of this asset vocabulary
611            * @param locale the locale of the language
612            * @param defaultLocale the default locale
613            */
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            /**
626            * Sets the localized descriptions of this asset vocabulary from the map of locales and localized descriptions.
627            *
628            * @param descriptionMap the locales and localized descriptions of this asset vocabulary
629            */
630            @Override
631            public void setDescriptionMap(
632                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
633                    _assetVocabulary.setDescriptionMap(descriptionMap);
634            }
635    
636            /**
637            * Sets the localized descriptions of this asset vocabulary from the map of locales and localized descriptions, and sets the default locale.
638            *
639            * @param descriptionMap the locales and localized descriptions of this asset vocabulary
640            * @param defaultLocale the default locale
641            */
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            /**
650            * Returns the settings of this asset vocabulary.
651            *
652            * @return the settings of this asset vocabulary
653            */
654            @Override
655            public java.lang.String getSettings() {
656                    return _assetVocabulary.getSettings();
657            }
658    
659            /**
660            * Sets the settings of this asset vocabulary.
661            *
662            * @param settings the settings of this asset vocabulary
663            */
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            /**
850             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
851             */
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    }