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