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