001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.asset.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link AssetCategory}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       AssetCategory
024     * @generated
025     */
026    public class AssetCategoryWrapper implements AssetCategory {
027            public AssetCategoryWrapper(AssetCategory assetCategory) {
028                    _assetCategory = assetCategory;
029            }
030    
031            public Class<?> getModelClass() {
032                    return AssetCategory.class;
033            }
034    
035            public String getModelClassName() {
036                    return AssetCategory.class.getName();
037            }
038    
039            /**
040            * Gets the primary key of this asset category.
041            *
042            * @return the primary key of this asset category
043            */
044            public long getPrimaryKey() {
045                    return _assetCategory.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this asset category
050            *
051            * @param primaryKey the primary key of this asset category
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _assetCategory.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Gets the uuid of this asset category.
059            *
060            * @return the uuid of this asset category
061            */
062            public java.lang.String getUuid() {
063                    return _assetCategory.getUuid();
064            }
065    
066            /**
067            * Sets the uuid of this asset category.
068            *
069            * @param uuid the uuid of this asset category
070            */
071            public void setUuid(java.lang.String uuid) {
072                    _assetCategory.setUuid(uuid);
073            }
074    
075            /**
076            * Gets the category ID of this asset category.
077            *
078            * @return the category ID of this asset category
079            */
080            public long getCategoryId() {
081                    return _assetCategory.getCategoryId();
082            }
083    
084            /**
085            * Sets the category ID of this asset category.
086            *
087            * @param categoryId the category ID of this asset category
088            */
089            public void setCategoryId(long categoryId) {
090                    _assetCategory.setCategoryId(categoryId);
091            }
092    
093            /**
094            * Gets the group ID of this asset category.
095            *
096            * @return the group ID of this asset category
097            */
098            public long getGroupId() {
099                    return _assetCategory.getGroupId();
100            }
101    
102            /**
103            * Sets the group ID of this asset category.
104            *
105            * @param groupId the group ID of this asset category
106            */
107            public void setGroupId(long groupId) {
108                    _assetCategory.setGroupId(groupId);
109            }
110    
111            /**
112            * Gets the company ID of this asset category.
113            *
114            * @return the company ID of this asset category
115            */
116            public long getCompanyId() {
117                    return _assetCategory.getCompanyId();
118            }
119    
120            /**
121            * Sets the company ID of this asset category.
122            *
123            * @param companyId the company ID of this asset category
124            */
125            public void setCompanyId(long companyId) {
126                    _assetCategory.setCompanyId(companyId);
127            }
128    
129            /**
130            * Gets the user ID of this asset category.
131            *
132            * @return the user ID of this asset category
133            */
134            public long getUserId() {
135                    return _assetCategory.getUserId();
136            }
137    
138            /**
139            * Sets the user ID of this asset category.
140            *
141            * @param userId the user ID of this asset category
142            */
143            public void setUserId(long userId) {
144                    _assetCategory.setUserId(userId);
145            }
146    
147            /**
148            * Gets the user uuid of this asset category.
149            *
150            * @return the user uuid of this asset category
151            * @throws SystemException if a system exception occurred
152            */
153            public java.lang.String getUserUuid()
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return _assetCategory.getUserUuid();
156            }
157    
158            /**
159            * Sets the user uuid of this asset category.
160            *
161            * @param userUuid the user uuid of this asset category
162            */
163            public void setUserUuid(java.lang.String userUuid) {
164                    _assetCategory.setUserUuid(userUuid);
165            }
166    
167            /**
168            * Gets the user name of this asset category.
169            *
170            * @return the user name of this asset category
171            */
172            public java.lang.String getUserName() {
173                    return _assetCategory.getUserName();
174            }
175    
176            /**
177            * Sets the user name of this asset category.
178            *
179            * @param userName the user name of this asset category
180            */
181            public void setUserName(java.lang.String userName) {
182                    _assetCategory.setUserName(userName);
183            }
184    
185            /**
186            * Gets the create date of this asset category.
187            *
188            * @return the create date of this asset category
189            */
190            public java.util.Date getCreateDate() {
191                    return _assetCategory.getCreateDate();
192            }
193    
194            /**
195            * Sets the create date of this asset category.
196            *
197            * @param createDate the create date of this asset category
198            */
199            public void setCreateDate(java.util.Date createDate) {
200                    _assetCategory.setCreateDate(createDate);
201            }
202    
203            /**
204            * Gets the modified date of this asset category.
205            *
206            * @return the modified date of this asset category
207            */
208            public java.util.Date getModifiedDate() {
209                    return _assetCategory.getModifiedDate();
210            }
211    
212            /**
213            * Sets the modified date of this asset category.
214            *
215            * @param modifiedDate the modified date of this asset category
216            */
217            public void setModifiedDate(java.util.Date modifiedDate) {
218                    _assetCategory.setModifiedDate(modifiedDate);
219            }
220    
221            /**
222            * Gets the parent category ID of this asset category.
223            *
224            * @return the parent category ID of this asset category
225            */
226            public long getParentCategoryId() {
227                    return _assetCategory.getParentCategoryId();
228            }
229    
230            /**
231            * Sets the parent category ID of this asset category.
232            *
233            * @param parentCategoryId the parent category ID of this asset category
234            */
235            public void setParentCategoryId(long parentCategoryId) {
236                    _assetCategory.setParentCategoryId(parentCategoryId);
237            }
238    
239            /**
240            * Gets the left category ID of this asset category.
241            *
242            * @return the left category ID of this asset category
243            */
244            public long getLeftCategoryId() {
245                    return _assetCategory.getLeftCategoryId();
246            }
247    
248            /**
249            * Sets the left category ID of this asset category.
250            *
251            * @param leftCategoryId the left category ID of this asset category
252            */
253            public void setLeftCategoryId(long leftCategoryId) {
254                    _assetCategory.setLeftCategoryId(leftCategoryId);
255            }
256    
257            /**
258            * Gets the right category ID of this asset category.
259            *
260            * @return the right category ID of this asset category
261            */
262            public long getRightCategoryId() {
263                    return _assetCategory.getRightCategoryId();
264            }
265    
266            /**
267            * Sets the right category ID of this asset category.
268            *
269            * @param rightCategoryId the right category ID of this asset category
270            */
271            public void setRightCategoryId(long rightCategoryId) {
272                    _assetCategory.setRightCategoryId(rightCategoryId);
273            }
274    
275            /**
276            * Gets the name of this asset category.
277            *
278            * @return the name of this asset category
279            */
280            public java.lang.String getName() {
281                    return _assetCategory.getName();
282            }
283    
284            /**
285            * Sets the name of this asset category.
286            *
287            * @param name the name of this asset category
288            */
289            public void setName(java.lang.String name) {
290                    _assetCategory.setName(name);
291            }
292    
293            /**
294            * Gets the title of this asset category.
295            *
296            * @return the title of this asset category
297            */
298            public java.lang.String getTitle() {
299                    return _assetCategory.getTitle();
300            }
301    
302            /**
303            * Gets the localized title of this asset category. Uses the default language if no localization exists for the requested language.
304            *
305            * @param locale the locale to get the localized title for
306            * @return the localized title of this asset category
307            */
308            public java.lang.String getTitle(java.util.Locale locale) {
309                    return _assetCategory.getTitle(locale);
310            }
311    
312            /**
313            * Gets the localized title of this asset category, optionally using the default language if no localization exists for the requested language.
314            *
315            * @param locale the local to get the localized title for
316            * @param useDefault whether to use the default language if no localization exists for the requested language
317            * @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.
318            */
319            public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
320                    return _assetCategory.getTitle(locale, useDefault);
321            }
322    
323            /**
324            * Gets the localized title of this asset category. Uses the default language if no localization exists for the requested language.
325            *
326            * @param languageId the id of the language to get the localized title for
327            * @return the localized title of this asset category
328            */
329            public java.lang.String getTitle(java.lang.String languageId) {
330                    return _assetCategory.getTitle(languageId);
331            }
332    
333            /**
334            * Gets the localized title of this asset category, optionally using the default language if no localization exists for the requested language.
335            *
336            * @param languageId the id of the language to get the localized title for
337            * @param useDefault whether to use the default language if no localization exists for the requested language
338            * @return the localized title of this asset category
339            */
340            public java.lang.String getTitle(java.lang.String languageId,
341                    boolean useDefault) {
342                    return _assetCategory.getTitle(languageId, useDefault);
343            }
344    
345            /**
346            * Gets a map of the locales and localized title of this asset category.
347            *
348            * @return the locales and localized title
349            */
350            public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
351                    return _assetCategory.getTitleMap();
352            }
353    
354            /**
355            * Sets the title of this asset category.
356            *
357            * @param title the title of this asset category
358            */
359            public void setTitle(java.lang.String title) {
360                    _assetCategory.setTitle(title);
361            }
362    
363            /**
364            * Sets the localized title of this asset category.
365            *
366            * @param locale the locale to set the localized title for
367            * @param title the localized title of this asset category
368            */
369            public void setTitle(java.util.Locale locale, java.lang.String title) {
370                    _assetCategory.setTitle(locale, title);
371            }
372    
373            /**
374            * Sets the localized titles of this asset category from the map of locales and localized titles.
375            *
376            * @param titleMap the locales and localized titles of this asset category
377            */
378            public void setTitleMap(
379                    java.util.Map<java.util.Locale, java.lang.String> titleMap) {
380                    _assetCategory.setTitleMap(titleMap);
381            }
382    
383            /**
384            * Gets the vocabulary ID of this asset category.
385            *
386            * @return the vocabulary ID of this asset category
387            */
388            public long getVocabularyId() {
389                    return _assetCategory.getVocabularyId();
390            }
391    
392            /**
393            * Sets the vocabulary ID of this asset category.
394            *
395            * @param vocabularyId the vocabulary ID of this asset category
396            */
397            public void setVocabularyId(long vocabularyId) {
398                    _assetCategory.setVocabularyId(vocabularyId);
399            }
400    
401            public boolean isNew() {
402                    return _assetCategory.isNew();
403            }
404    
405            public void setNew(boolean n) {
406                    _assetCategory.setNew(n);
407            }
408    
409            public boolean isCachedModel() {
410                    return _assetCategory.isCachedModel();
411            }
412    
413            public void setCachedModel(boolean cachedModel) {
414                    _assetCategory.setCachedModel(cachedModel);
415            }
416    
417            public boolean isEscapedModel() {
418                    return _assetCategory.isEscapedModel();
419            }
420    
421            public void setEscapedModel(boolean escapedModel) {
422                    _assetCategory.setEscapedModel(escapedModel);
423            }
424    
425            public java.io.Serializable getPrimaryKeyObj() {
426                    return _assetCategory.getPrimaryKeyObj();
427            }
428    
429            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
430                    _assetCategory.setPrimaryKeyObj(primaryKeyObj);
431            }
432    
433            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
434                    return _assetCategory.getExpandoBridge();
435            }
436    
437            public void setExpandoBridgeAttributes(
438                    com.liferay.portal.service.ServiceContext serviceContext) {
439                    _assetCategory.setExpandoBridgeAttributes(serviceContext);
440            }
441    
442            @Override
443            public java.lang.Object clone() {
444                    return new AssetCategoryWrapper((AssetCategory)_assetCategory.clone());
445            }
446    
447            public int compareTo(
448                    com.liferay.portlet.asset.model.AssetCategory assetCategory) {
449                    return _assetCategory.compareTo(assetCategory);
450            }
451    
452            @Override
453            public int hashCode() {
454                    return _assetCategory.hashCode();
455            }
456    
457            public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetCategory> toCacheModel() {
458                    return _assetCategory.toCacheModel();
459            }
460    
461            public com.liferay.portlet.asset.model.AssetCategory toEscapedModel() {
462                    return new AssetCategoryWrapper(_assetCategory.toEscapedModel());
463            }
464    
465            @Override
466            public java.lang.String toString() {
467                    return _assetCategory.toString();
468            }
469    
470            public java.lang.String toXmlString() {
471                    return _assetCategory.toXmlString();
472            }
473    
474            public void persist()
475                    throws com.liferay.portal.kernel.exception.SystemException {
476                    _assetCategory.persist();
477            }
478    
479            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAncestors()
480                    throws com.liferay.portal.kernel.exception.PortalException,
481                            com.liferay.portal.kernel.exception.SystemException {
482                    return _assetCategory.getAncestors();
483            }
484    
485            public boolean isRootCategory() {
486                    return _assetCategory.isRootCategory();
487            }
488    
489            public AssetCategory getWrappedAssetCategory() {
490                    return _assetCategory;
491            }
492    
493            public void resetOriginalValues() {
494                    _assetCategory.resetOriginalValues();
495            }
496    
497            private AssetCategory _assetCategory;
498    }