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