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