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