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