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