001 /** 002 * Copyright (c) 2000-2011 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 /** 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 * Returns 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 * Returns 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 * Returns 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 * Returns 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 * Returns 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 * Returns 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 * Returns 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 * Returns 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 * Returns 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 * Returns 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 * Returns 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 * Returns 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 * Returns 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 * Returns 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 * Returns 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 * Returns the localized title of this asset category in the language. Uses the default language if no localization exists for the requested language. 304 * 305 * @param locale the locale of the language 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 * Returns the localized title of this asset category in the language, optionally using the default language if no localization exists for the requested language. 314 * 315 * @param locale the local of the language 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 * Returns the localized title of this asset category in the language. Uses the default language if no localization exists for the requested language. 325 * 326 * @param languageId the ID of the language 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 * Returns the localized title of this asset category in the language, optionally using the default language if no localization exists for the requested language. 335 * 336 * @param languageId the ID of the language 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 public java.lang.String getTitleCurrentLanguageId() { 346 return _assetCategory.getTitleCurrentLanguageId(); 347 } 348 349 public java.lang.String getTitleCurrentValue() { 350 return _assetCategory.getTitleCurrentValue(); 351 } 352 353 /** 354 * Returns a map of the locales and localized titles of this asset category. 355 * 356 * @return the locales and localized titles of this asset category 357 */ 358 public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() { 359 return _assetCategory.getTitleMap(); 360 } 361 362 /** 363 * Sets the title of this asset category. 364 * 365 * @param title the title of this asset category 366 */ 367 public void setTitle(java.lang.String title) { 368 _assetCategory.setTitle(title); 369 } 370 371 /** 372 * Sets the localized title of this asset category in the language. 373 * 374 * @param title the localized title of this asset category 375 * @param locale the locale of the language 376 */ 377 public void setTitle(java.lang.String title, java.util.Locale locale) { 378 _assetCategory.setTitle(title, locale); 379 } 380 381 /** 382 * Sets the localized title of this asset category in the language, and sets the default locale. 383 * 384 * @param title the localized title of this asset category 385 * @param locale the locale of the language 386 * @param defaultLocale the default locale 387 */ 388 public void setTitle(java.lang.String title, java.util.Locale locale, 389 java.util.Locale defaultLocale) { 390 _assetCategory.setTitle(title, locale, defaultLocale); 391 } 392 393 public void setTitleCurrentLanguageId(java.lang.String languageId) { 394 _assetCategory.setTitleCurrentLanguageId(languageId); 395 } 396 397 /** 398 * Sets the localized titles of this asset category from the map of locales and localized titles. 399 * 400 * @param titleMap the locales and localized titles of this asset category 401 */ 402 public void setTitleMap( 403 java.util.Map<java.util.Locale, java.lang.String> titleMap) { 404 _assetCategory.setTitleMap(titleMap); 405 } 406 407 /** 408 * Sets the localized titles of this asset category from the map of locales and localized titles, and sets the default locale. 409 * 410 * @param titleMap the locales and localized titles of this asset category 411 * @param defaultLocale the default locale 412 */ 413 public void setTitleMap( 414 java.util.Map<java.util.Locale, java.lang.String> titleMap, 415 java.util.Locale defaultLocale) { 416 _assetCategory.setTitleMap(titleMap, defaultLocale); 417 } 418 419 /** 420 * Returns the description of this asset category. 421 * 422 * @return the description of this asset category 423 */ 424 public java.lang.String getDescription() { 425 return _assetCategory.getDescription(); 426 } 427 428 /** 429 * Returns the localized description of this asset category in the language. Uses the default language if no localization exists for the requested language. 430 * 431 * @param locale the locale of the language 432 * @return the localized description of this asset category 433 */ 434 public java.lang.String getDescription(java.util.Locale locale) { 435 return _assetCategory.getDescription(locale); 436 } 437 438 /** 439 * Returns the localized description of this asset category in the language, optionally using the default language if no localization exists for the requested language. 440 * 441 * @param locale the local of the language 442 * @param useDefault whether to use the default language if no localization exists for the requested language 443 * @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. 444 */ 445 public java.lang.String getDescription(java.util.Locale locale, 446 boolean useDefault) { 447 return _assetCategory.getDescription(locale, useDefault); 448 } 449 450 /** 451 * Returns the localized description of this asset category in the language. Uses the default language if no localization exists for the requested language. 452 * 453 * @param languageId the ID of the language 454 * @return the localized description of this asset category 455 */ 456 public java.lang.String getDescription(java.lang.String languageId) { 457 return _assetCategory.getDescription(languageId); 458 } 459 460 /** 461 * Returns the localized description of this asset category in the language, optionally using the default language if no localization exists for the requested language. 462 * 463 * @param languageId the ID of the language 464 * @param useDefault whether to use the default language if no localization exists for the requested language 465 * @return the localized description of this asset category 466 */ 467 public java.lang.String getDescription(java.lang.String languageId, 468 boolean useDefault) { 469 return _assetCategory.getDescription(languageId, useDefault); 470 } 471 472 public java.lang.String getDescriptionCurrentLanguageId() { 473 return _assetCategory.getDescriptionCurrentLanguageId(); 474 } 475 476 public java.lang.String getDescriptionCurrentValue() { 477 return _assetCategory.getDescriptionCurrentValue(); 478 } 479 480 /** 481 * Returns a map of the locales and localized descriptions of this asset category. 482 * 483 * @return the locales and localized descriptions of this asset category 484 */ 485 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() { 486 return _assetCategory.getDescriptionMap(); 487 } 488 489 /** 490 * Sets the description of this asset category. 491 * 492 * @param description the description of this asset category 493 */ 494 public void setDescription(java.lang.String description) { 495 _assetCategory.setDescription(description); 496 } 497 498 /** 499 * Sets the localized description of this asset category in the language. 500 * 501 * @param description the localized description of this asset category 502 * @param locale the locale of the language 503 */ 504 public void setDescription(java.lang.String description, 505 java.util.Locale locale) { 506 _assetCategory.setDescription(description, locale); 507 } 508 509 /** 510 * Sets the localized description of this asset category in the language, and sets the default locale. 511 * 512 * @param description the localized description of this asset category 513 * @param locale the locale of the language 514 * @param defaultLocale the default locale 515 */ 516 public void setDescription(java.lang.String description, 517 java.util.Locale locale, java.util.Locale defaultLocale) { 518 _assetCategory.setDescription(description, locale, defaultLocale); 519 } 520 521 public void setDescriptionCurrentLanguageId(java.lang.String languageId) { 522 _assetCategory.setDescriptionCurrentLanguageId(languageId); 523 } 524 525 /** 526 * Sets the localized descriptions of this asset category from the map of locales and localized descriptions. 527 * 528 * @param descriptionMap the locales and localized descriptions of this asset category 529 */ 530 public void setDescriptionMap( 531 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) { 532 _assetCategory.setDescriptionMap(descriptionMap); 533 } 534 535 /** 536 * Sets the localized descriptions of this asset category from the map of locales and localized descriptions, and sets the default locale. 537 * 538 * @param descriptionMap the locales and localized descriptions of this asset category 539 * @param defaultLocale the default locale 540 */ 541 public void setDescriptionMap( 542 java.util.Map<java.util.Locale, java.lang.String> descriptionMap, 543 java.util.Locale defaultLocale) { 544 _assetCategory.setDescriptionMap(descriptionMap, defaultLocale); 545 } 546 547 /** 548 * Returns the vocabulary ID of this asset category. 549 * 550 * @return the vocabulary ID of this asset category 551 */ 552 public long getVocabularyId() { 553 return _assetCategory.getVocabularyId(); 554 } 555 556 /** 557 * Sets the vocabulary ID of this asset category. 558 * 559 * @param vocabularyId the vocabulary ID of this asset category 560 */ 561 public void setVocabularyId(long vocabularyId) { 562 _assetCategory.setVocabularyId(vocabularyId); 563 } 564 565 public boolean isNew() { 566 return _assetCategory.isNew(); 567 } 568 569 public void setNew(boolean n) { 570 _assetCategory.setNew(n); 571 } 572 573 public boolean isCachedModel() { 574 return _assetCategory.isCachedModel(); 575 } 576 577 public void setCachedModel(boolean cachedModel) { 578 _assetCategory.setCachedModel(cachedModel); 579 } 580 581 public boolean isEscapedModel() { 582 return _assetCategory.isEscapedModel(); 583 } 584 585 public java.io.Serializable getPrimaryKeyObj() { 586 return _assetCategory.getPrimaryKeyObj(); 587 } 588 589 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { 590 _assetCategory.setPrimaryKeyObj(primaryKeyObj); 591 } 592 593 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { 594 return _assetCategory.getExpandoBridge(); 595 } 596 597 public void setExpandoBridgeAttributes( 598 com.liferay.portal.service.ServiceContext serviceContext) { 599 _assetCategory.setExpandoBridgeAttributes(serviceContext); 600 } 601 602 @Override 603 public java.lang.Object clone() { 604 return new AssetCategoryWrapper((AssetCategory)_assetCategory.clone()); 605 } 606 607 public int compareTo( 608 com.liferay.portlet.asset.model.AssetCategory assetCategory) { 609 return _assetCategory.compareTo(assetCategory); 610 } 611 612 @Override 613 public int hashCode() { 614 return _assetCategory.hashCode(); 615 } 616 617 public com.liferay.portal.model.CacheModel<com.liferay.portlet.asset.model.AssetCategory> toCacheModel() { 618 return _assetCategory.toCacheModel(); 619 } 620 621 public com.liferay.portlet.asset.model.AssetCategory toEscapedModel() { 622 return new AssetCategoryWrapper(_assetCategory.toEscapedModel()); 623 } 624 625 @Override 626 public java.lang.String toString() { 627 return _assetCategory.toString(); 628 } 629 630 public java.lang.String toXmlString() { 631 return _assetCategory.toXmlString(); 632 } 633 634 public void persist() 635 throws com.liferay.portal.kernel.exception.SystemException { 636 _assetCategory.persist(); 637 } 638 639 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAncestors() 640 throws com.liferay.portal.kernel.exception.PortalException, 641 com.liferay.portal.kernel.exception.SystemException { 642 return _assetCategory.getAncestors(); 643 } 644 645 public boolean isRootCategory() { 646 return _assetCategory.isRootCategory(); 647 } 648 649 public AssetCategory getWrappedAssetCategory() { 650 return _assetCategory; 651 } 652 653 public void resetOriginalValues() { 654 _assetCategory.resetOriginalValues(); 655 } 656 657 private AssetCategory _assetCategory; 658 }