001    /**
002     * Copyright (c) 2000-2012 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.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link AssetCategory}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       AssetCategory
026     * @generated
027     */
028    public class AssetCategoryWrapper implements AssetCategory,
029            ModelWrapper<AssetCategory> {
030            public AssetCategoryWrapper(AssetCategory assetCategory) {
031                    _assetCategory = assetCategory;
032            }
033    
034            public Class<?> getModelClass() {
035                    return AssetCategory.class;
036            }
037    
038            public String getModelClassName() {
039                    return AssetCategory.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this asset category.
044            *
045            * @return the primary key of this asset category
046            */
047            public long getPrimaryKey() {
048                    return _assetCategory.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this asset category.
053            *
054            * @param primaryKey the primary key of this asset category
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _assetCategory.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the uuid of this asset category.
062            *
063            * @return the uuid of this asset category
064            */
065            public java.lang.String getUuid() {
066                    return _assetCategory.getUuid();
067            }
068    
069            /**
070            * Sets the uuid of this asset category.
071            *
072            * @param uuid the uuid of this asset category
073            */
074            public void setUuid(java.lang.String uuid) {
075                    _assetCategory.setUuid(uuid);
076            }
077    
078            /**
079            * Returns the category ID of this asset category.
080            *
081            * @return the category ID of this asset category
082            */
083            public long getCategoryId() {
084                    return _assetCategory.getCategoryId();
085            }
086    
087            /**
088            * Sets the category ID of this asset category.
089            *
090            * @param categoryId the category ID of this asset category
091            */
092            public void setCategoryId(long categoryId) {
093                    _assetCategory.setCategoryId(categoryId);
094            }
095    
096            /**
097            * Returns the group ID of this asset category.
098            *
099            * @return the group ID of this asset category
100            */
101            public long getGroupId() {
102                    return _assetCategory.getGroupId();
103            }
104    
105            /**
106            * Sets the group ID of this asset category.
107            *
108            * @param groupId the group ID of this asset category
109            */
110            public void setGroupId(long groupId) {
111                    _assetCategory.setGroupId(groupId);
112            }
113    
114            /**
115            * Returns the company ID of this asset category.
116            *
117            * @return the company ID of this asset category
118            */
119            public long getCompanyId() {
120                    return _assetCategory.getCompanyId();
121            }
122    
123            /**
124            * Sets the company ID of this asset category.
125            *
126            * @param companyId the company ID of this asset category
127            */
128            public void setCompanyId(long companyId) {
129                    _assetCategory.setCompanyId(companyId);
130            }
131    
132            /**
133            * Returns the user ID of this asset category.
134            *
135            * @return the user ID of this asset category
136            */
137            public long getUserId() {
138                    return _assetCategory.getUserId();
139            }
140    
141            /**
142            * Sets the user ID of this asset category.
143            *
144            * @param userId the user ID of this asset category
145            */
146            public void setUserId(long userId) {
147                    _assetCategory.setUserId(userId);
148            }
149    
150            /**
151            * Returns the user uuid of this asset category.
152            *
153            * @return the user uuid of this asset category
154            * @throws SystemException if a system exception occurred
155            */
156            public java.lang.String getUserUuid()
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _assetCategory.getUserUuid();
159            }
160    
161            /**
162            * Sets the user uuid of this asset category.
163            *
164            * @param userUuid the user uuid of this asset category
165            */
166            public void setUserUuid(java.lang.String userUuid) {
167                    _assetCategory.setUserUuid(userUuid);
168            }
169    
170            /**
171            * Returns the user name of this asset category.
172            *
173            * @return the user name of this asset category
174            */
175            public java.lang.String getUserName() {
176                    return _assetCategory.getUserName();
177            }
178    
179            /**
180            * Sets the user name of this asset category.
181            *
182            * @param userName the user name of this asset category
183            */
184            public void setUserName(java.lang.String userName) {
185                    _assetCategory.setUserName(userName);
186            }
187    
188            /**
189            * Returns the create date of this asset category.
190            *
191            * @return the create date of this asset category
192            */
193            public java.util.Date getCreateDate() {
194                    return _assetCategory.getCreateDate();
195            }
196    
197            /**
198            * Sets the create date of this asset category.
199            *
200            * @param createDate the create date of this asset category
201            */
202            public void setCreateDate(java.util.Date createDate) {
203                    _assetCategory.setCreateDate(createDate);
204            }
205    
206            /**
207            * Returns the modified date of this asset category.
208            *
209            * @return the modified date of this asset category
210            */
211            public java.util.Date getModifiedDate() {
212                    return _assetCategory.getModifiedDate();
213            }
214    
215            /**
216            * Sets the modified date of this asset category.
217            *
218            * @param modifiedDate the modified date of this asset category
219            */
220            public void setModifiedDate(java.util.Date modifiedDate) {
221                    _assetCategory.setModifiedDate(modifiedDate);
222            }
223    
224            /**
225            * Returns the parent category ID of this asset category.
226            *
227            * @return the parent category ID of this asset category
228            */
229            public long getParentCategoryId() {
230                    return _assetCategory.getParentCategoryId();
231            }
232    
233            /**
234            * Sets the parent category ID of this asset category.
235            *
236            * @param parentCategoryId the parent category ID of this asset category
237            */
238            public void setParentCategoryId(long parentCategoryId) {
239                    _assetCategory.setParentCategoryId(parentCategoryId);
240            }
241    
242            /**
243            * Returns the left category ID of this asset category.
244            *
245            * @return the left category ID of this asset category
246            */
247            public long getLeftCategoryId() {
248                    return _assetCategory.getLeftCategoryId();
249            }
250    
251            /**
252            * Sets the left category ID of this asset category.
253            *
254            * @param leftCategoryId the left category ID of this asset category
255            */
256            public void setLeftCategoryId(long leftCategoryId) {
257                    _assetCategory.setLeftCategoryId(leftCategoryId);
258            }
259    
260            /**
261            * Returns the right category ID of this asset category.
262            *
263            * @return the right category ID of this asset category
264            */
265            public long getRightCategoryId() {
266                    return _assetCategory.getRightCategoryId();
267            }
268    
269            /**
270            * Sets the right category ID of this asset category.
271            *
272            * @param rightCategoryId the right category ID of this asset category
273            */
274            public void setRightCategoryId(long rightCategoryId) {
275                    _assetCategory.setRightCategoryId(rightCategoryId);
276            }
277    
278            /**
279            * Returns the name of this asset category.
280            *
281            * @return the name of this asset category
282            */
283            public java.lang.String getName() {
284                    return _assetCategory.getName();
285            }
286    
287            /**
288            * Sets the name of this asset category.
289            *
290            * @param name the name of this asset category
291            */
292            public void setName(java.lang.String name) {
293                    _assetCategory.setName(name);
294            }
295    
296            /**
297            * Returns the title of this asset category.
298            *
299            * @return the title of this asset category
300            */
301            public java.lang.String getTitle() {
302                    return _assetCategory.getTitle();
303            }
304    
305            /**
306            * Returns the localized title of this asset category in the language. Uses the default language if no localization exists for the requested language.
307            *
308            * @param locale the locale of the language
309            * @return the localized title of this asset category
310            */
311            public java.lang.String getTitle(java.util.Locale locale) {
312                    return _assetCategory.getTitle(locale);
313            }
314    
315            /**
316            * Returns the localized title of this asset category in the language, optionally using the default language if no localization exists for the requested language.
317            *
318            * @param locale the local of the language
319            * @param useDefault whether to use the default language if no localization exists for the requested language
320            * @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.
321            */
322            public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
323                    return _assetCategory.getTitle(locale, useDefault);
324            }
325    
326            /**
327            * Returns the localized title of this asset category in the language. Uses the default language if no localization exists for the requested language.
328            *
329            * @param languageId the ID of the language
330            * @return the localized title of this asset category
331            */
332            public java.lang.String getTitle(java.lang.String languageId) {
333                    return _assetCategory.getTitle(languageId);
334            }
335    
336            /**
337            * Returns the localized title of this asset category in the language, optionally using the default language if no localization exists for the requested language.
338            *
339            * @param languageId the ID of the language
340            * @param useDefault whether to use the default language if no localization exists for the requested language
341            * @return the localized title of this asset category
342            */
343            public java.lang.String getTitle(java.lang.String languageId,
344                    boolean useDefault) {
345                    return _assetCategory.getTitle(languageId, useDefault);
346            }
347    
348            public java.lang.String getTitleCurrentLanguageId() {
349                    return _assetCategory.getTitleCurrentLanguageId();
350            }
351    
352            public java.lang.String getTitleCurrentValue() {
353                    return _assetCategory.getTitleCurrentValue();
354            }
355    
356            /**
357            * Returns a map of the locales and localized titles of this asset category.
358            *
359            * @return the locales and localized titles of this asset category
360            */
361            public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
362                    return _assetCategory.getTitleMap();
363            }
364    
365            /**
366            * Sets the title of this asset category.
367            *
368            * @param title the title of this asset category
369            */
370            public void setTitle(java.lang.String title) {
371                    _assetCategory.setTitle(title);
372            }
373    
374            /**
375            * Sets the localized title of this asset category in the language.
376            *
377            * @param title the localized title of this asset category
378            * @param locale the locale of the language
379            */
380            public void setTitle(java.lang.String title, java.util.Locale locale) {
381                    _assetCategory.setTitle(title, locale);
382            }
383    
384            /**
385            * Sets the localized title of this asset category in the language, and sets the default locale.
386            *
387            * @param title the localized title of this asset category
388            * @param locale the locale of the language
389            * @param defaultLocale the default locale
390            */
391            public void setTitle(java.lang.String title, java.util.Locale locale,
392                    java.util.Locale defaultLocale) {
393                    _assetCategory.setTitle(title, locale, defaultLocale);
394            }
395    
396            public void setTitleCurrentLanguageId(java.lang.String languageId) {
397                    _assetCategory.setTitleCurrentLanguageId(languageId);
398            }
399    
400            /**
401            * Sets the localized titles of this asset category from the map of locales and localized titles.
402            *
403            * @param titleMap the locales and localized titles of this asset category
404            */
405            public void setTitleMap(
406                    java.util.Map<java.util.Locale, java.lang.String> titleMap) {
407                    _assetCategory.setTitleMap(titleMap);
408            }
409    
410            /**
411            * Sets the localized titles of this asset category from the map of locales and localized titles, and sets the default locale.
412            *
413            * @param titleMap the locales and localized titles of this asset category
414            * @param defaultLocale the default locale
415            */
416            public void setTitleMap(
417                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
418                    java.util.Locale defaultLocale) {
419                    _assetCategory.setTitleMap(titleMap, defaultLocale);
420            }
421    
422            /**
423            * Returns the description of this asset category.
424            *
425            * @return the description of this asset category
426            */
427            public java.lang.String getDescription() {
428                    return _assetCategory.getDescription();
429            }
430    
431            /**
432            * Returns the localized description of this asset category in the language. Uses the default language if no localization exists for the requested language.
433            *
434            * @param locale the locale of the language
435            * @return the localized description of this asset category
436            */
437            public java.lang.String getDescription(java.util.Locale locale) {
438                    return _assetCategory.getDescription(locale);
439            }
440    
441            /**
442            * Returns the localized description of this asset category in the language, optionally using the default language if no localization exists for the requested language.
443            *
444            * @param locale the local of the language
445            * @param useDefault whether to use the default language if no localization exists for the requested language
446            * @return the localized 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.
447            */
448            public java.lang.String getDescription(java.util.Locale locale,
449                    boolean useDefault) {
450                    return _assetCategory.getDescription(locale, useDefault);
451            }
452    
453            /**
454            * Returns the localized description of this asset category in the language. Uses the default language if no localization exists for the requested language.
455            *
456            * @param languageId the ID of the language
457            * @return the localized description of this asset category
458            */
459            public java.lang.String getDescription(java.lang.String languageId) {
460                    return _assetCategory.getDescription(languageId);
461            }
462    
463            /**
464            * Returns the localized description of this asset category in the language, optionally using the default language if no localization exists for the requested language.
465            *
466            * @param languageId the ID of the language
467            * @param useDefault whether to use the default language if no localization exists for the requested language
468            * @return the localized description of this asset category
469            */
470            public java.lang.String getDescription(java.lang.String languageId,
471                    boolean useDefault) {
472                    return _assetCategory.getDescription(languageId, useDefault);
473            }
474    
475            public java.lang.String getDescriptionCurrentLanguageId() {
476                    return _assetCategory.getDescriptionCurrentLanguageId();
477            }
478    
479            public java.lang.String getDescriptionCurrentValue() {
480                    return _assetCategory.getDescriptionCurrentValue();
481            }
482    
483            /**
484            * Returns a map of the locales and localized descriptions of this asset category.
485            *
486            * @return the locales and localized descriptions of this asset category
487            */
488            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
489                    return _assetCategory.getDescriptionMap();
490            }
491    
492            /**
493            * Sets the description of this asset category.
494            *
495            * @param description the description of this asset category
496            */
497            public void setDescription(java.lang.String description) {
498                    _assetCategory.setDescription(description);
499            }
500    
501            /**
502            * Sets the localized description of this asset category in the language.
503            *
504            * @param description the localized description of this asset category
505            * @param locale the locale of the language
506            */
507            public void setDescription(java.lang.String description,
508                    java.util.Locale locale) {
509                    _assetCategory.setDescription(description, locale);
510            }
511    
512            /**
513            * Sets the localized description of this asset category in the language, and sets the default locale.
514            *
515            * @param description the localized description of this asset category
516            * @param locale the locale of the language
517            * @param defaultLocale the default locale
518            */
519            public void setDescription(java.lang.String description,
520                    java.util.Locale locale, java.util.Locale defaultLocale) {
521                    _assetCategory.setDescription(description, locale, defaultLocale);
522            }
523    
524            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
525                    _assetCategory.setDescriptionCurrentLanguageId(languageId);
526            }
527    
528            /**
529            * Sets the localized descriptions of this asset category from the map of locales and localized descriptions.
530            *
531            * @param descriptionMap the locales and localized descriptions of this asset category
532            */
533            public void setDescriptionMap(
534                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
535                    _assetCategory.setDescriptionMap(descriptionMap);
536            }
537    
538            /**
539            * Sets the localized descriptions of this asset category from the map of locales and localized descriptions, and sets the default locale.
540            *
541            * @param descriptionMap the locales and localized descriptions of this asset category
542            * @param defaultLocale the default locale
543            */
544            public void setDescriptionMap(
545                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
546                    java.util.Locale defaultLocale) {
547                    _assetCategory.setDescriptionMap(descriptionMap, defaultLocale);
548            }
549    
550            /**
551            * Returns the vocabulary ID of this asset category.
552            *
553            * @return the vocabulary ID of this asset category
554            */
555            public long getVocabularyId() {
556                    return _assetCategory.getVocabularyId();
557            }
558    
559            /**
560            * Sets the vocabulary ID of this asset category.
561            *
562            * @param vocabularyId the vocabulary ID of this asset category
563            */
564            public void setVocabularyId(long vocabularyId) {
565                    _assetCategory.setVocabularyId(vocabularyId);
566            }
567    
568            public boolean isNew() {
569                    return _assetCategory.isNew();
570            }
571    
572            public void setNew(boolean n) {
573                    _assetCategory.setNew(n);
574            }
575    
576            public boolean isCachedModel() {
577                    return _assetCategory.isCachedModel();
578            }
579    
580            public void setCachedModel(boolean cachedModel) {
581                    _assetCategory.setCachedModel(cachedModel);
582            }
583    
584            public boolean isEscapedModel() {
585                    return _assetCategory.isEscapedModel();
586            }
587    
588            public java.io.Serializable getPrimaryKeyObj() {
589                    return _assetCategory.getPrimaryKeyObj();
590            }
591    
592            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
593                    _assetCategory.setPrimaryKeyObj(primaryKeyObj);
594            }
595    
596            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
597                    return _assetCategory.getExpandoBridge();
598            }
599    
600            public void setExpandoBridgeAttributes(
601                    com.liferay.portal.service.ServiceContext serviceContext) {
602                    _assetCategory.setExpandoBridgeAttributes(serviceContext);
603            }
604    
605            @Override
606            public java.lang.Object clone() {
607                    return new AssetCategoryWrapper((AssetCategory)_assetCategory.clone());
608            }
609    
610            public int compareTo(
611                    com.liferay.portlet.asset.model.AssetCategory assetCategory) {
612                    return _assetCategory.compareTo(assetCategory);
613            }
614    
615            @Override
616            public int hashCode() {
617                    return _assetCategory.hashCode();
618            }
619    
620            public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetCategory> toCacheModel() {
621                    return _assetCategory.toCacheModel();
622            }
623    
624            public com.liferay.portlet.asset.model.AssetCategory toEscapedModel() {
625                    return new AssetCategoryWrapper(_assetCategory.toEscapedModel());
626            }
627    
628            @Override
629            public java.lang.String toString() {
630                    return _assetCategory.toString();
631            }
632    
633            public java.lang.String toXmlString() {
634                    return _assetCategory.toXmlString();
635            }
636    
637            public void persist()
638                    throws com.liferay.portal.kernel.exception.SystemException {
639                    _assetCategory.persist();
640            }
641    
642            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAncestors()
643                    throws com.liferay.portal.kernel.exception.PortalException,
644                            com.liferay.portal.kernel.exception.SystemException {
645                    return _assetCategory.getAncestors();
646            }
647    
648            public boolean isRootCategory() {
649                    return _assetCategory.isRootCategory();
650            }
651    
652            /**
653             * @deprecated Renamed to {@link #getWrappedModel}
654             */
655            public AssetCategory getWrappedAssetCategory() {
656                    return _assetCategory;
657            }
658    
659            public AssetCategory getWrappedModel() {
660                    return _assetCategory;
661            }
662    
663            public void resetOriginalValues() {
664                    _assetCategory.resetOriginalValues();
665            }
666    
667            private AssetCategory _assetCategory;
668    }