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