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.portal.model; 016 017 /** 018 * <p> 019 * This class is a wrapper for {@link PasswordPolicy}. 020 * </p> 021 * 022 * @author Brian Wing Shun Chan 023 * @see PasswordPolicy 024 * @generated 025 */ 026 public class PasswordPolicyWrapper implements PasswordPolicy, 027 ModelWrapper<PasswordPolicy> { 028 public PasswordPolicyWrapper(PasswordPolicy passwordPolicy) { 029 _passwordPolicy = passwordPolicy; 030 } 031 032 public Class<?> getModelClass() { 033 return PasswordPolicy.class; 034 } 035 036 public String getModelClassName() { 037 return PasswordPolicy.class.getName(); 038 } 039 040 /** 041 * Returns the primary key of this password policy. 042 * 043 * @return the primary key of this password policy 044 */ 045 public long getPrimaryKey() { 046 return _passwordPolicy.getPrimaryKey(); 047 } 048 049 /** 050 * Sets the primary key of this password policy. 051 * 052 * @param primaryKey the primary key of this password policy 053 */ 054 public void setPrimaryKey(long primaryKey) { 055 _passwordPolicy.setPrimaryKey(primaryKey); 056 } 057 058 /** 059 * Returns the password policy ID of this password policy. 060 * 061 * @return the password policy ID of this password policy 062 */ 063 public long getPasswordPolicyId() { 064 return _passwordPolicy.getPasswordPolicyId(); 065 } 066 067 /** 068 * Sets the password policy ID of this password policy. 069 * 070 * @param passwordPolicyId the password policy ID of this password policy 071 */ 072 public void setPasswordPolicyId(long passwordPolicyId) { 073 _passwordPolicy.setPasswordPolicyId(passwordPolicyId); 074 } 075 076 /** 077 * Returns the company ID of this password policy. 078 * 079 * @return the company ID of this password policy 080 */ 081 public long getCompanyId() { 082 return _passwordPolicy.getCompanyId(); 083 } 084 085 /** 086 * Sets the company ID of this password policy. 087 * 088 * @param companyId the company ID of this password policy 089 */ 090 public void setCompanyId(long companyId) { 091 _passwordPolicy.setCompanyId(companyId); 092 } 093 094 /** 095 * Returns the user ID of this password policy. 096 * 097 * @return the user ID of this password policy 098 */ 099 public long getUserId() { 100 return _passwordPolicy.getUserId(); 101 } 102 103 /** 104 * Sets the user ID of this password policy. 105 * 106 * @param userId the user ID of this password policy 107 */ 108 public void setUserId(long userId) { 109 _passwordPolicy.setUserId(userId); 110 } 111 112 /** 113 * Returns the user uuid of this password policy. 114 * 115 * @return the user uuid of this password policy 116 * @throws SystemException if a system exception occurred 117 */ 118 public java.lang.String getUserUuid() 119 throws com.liferay.portal.kernel.exception.SystemException { 120 return _passwordPolicy.getUserUuid(); 121 } 122 123 /** 124 * Sets the user uuid of this password policy. 125 * 126 * @param userUuid the user uuid of this password policy 127 */ 128 public void setUserUuid(java.lang.String userUuid) { 129 _passwordPolicy.setUserUuid(userUuid); 130 } 131 132 /** 133 * Returns the user name of this password policy. 134 * 135 * @return the user name of this password policy 136 */ 137 public java.lang.String getUserName() { 138 return _passwordPolicy.getUserName(); 139 } 140 141 /** 142 * Sets the user name of this password policy. 143 * 144 * @param userName the user name of this password policy 145 */ 146 public void setUserName(java.lang.String userName) { 147 _passwordPolicy.setUserName(userName); 148 } 149 150 /** 151 * Returns the create date of this password policy. 152 * 153 * @return the create date of this password policy 154 */ 155 public java.util.Date getCreateDate() { 156 return _passwordPolicy.getCreateDate(); 157 } 158 159 /** 160 * Sets the create date of this password policy. 161 * 162 * @param createDate the create date of this password policy 163 */ 164 public void setCreateDate(java.util.Date createDate) { 165 _passwordPolicy.setCreateDate(createDate); 166 } 167 168 /** 169 * Returns the modified date of this password policy. 170 * 171 * @return the modified date of this password policy 172 */ 173 public java.util.Date getModifiedDate() { 174 return _passwordPolicy.getModifiedDate(); 175 } 176 177 /** 178 * Sets the modified date of this password policy. 179 * 180 * @param modifiedDate the modified date of this password policy 181 */ 182 public void setModifiedDate(java.util.Date modifiedDate) { 183 _passwordPolicy.setModifiedDate(modifiedDate); 184 } 185 186 /** 187 * Returns the default policy of this password policy. 188 * 189 * @return the default policy of this password policy 190 */ 191 public boolean getDefaultPolicy() { 192 return _passwordPolicy.getDefaultPolicy(); 193 } 194 195 /** 196 * Returns <code>true</code> if this password policy is default policy. 197 * 198 * @return <code>true</code> if this password policy is default policy; <code>false</code> otherwise 199 */ 200 public boolean isDefaultPolicy() { 201 return _passwordPolicy.isDefaultPolicy(); 202 } 203 204 /** 205 * Sets whether this password policy is default policy. 206 * 207 * @param defaultPolicy the default policy of this password policy 208 */ 209 public void setDefaultPolicy(boolean defaultPolicy) { 210 _passwordPolicy.setDefaultPolicy(defaultPolicy); 211 } 212 213 /** 214 * Returns the name of this password policy. 215 * 216 * @return the name of this password policy 217 */ 218 public java.lang.String getName() { 219 return _passwordPolicy.getName(); 220 } 221 222 /** 223 * Sets the name of this password policy. 224 * 225 * @param name the name of this password policy 226 */ 227 public void setName(java.lang.String name) { 228 _passwordPolicy.setName(name); 229 } 230 231 /** 232 * Returns the description of this password policy. 233 * 234 * @return the description of this password policy 235 */ 236 public java.lang.String getDescription() { 237 return _passwordPolicy.getDescription(); 238 } 239 240 /** 241 * Sets the description of this password policy. 242 * 243 * @param description the description of this password policy 244 */ 245 public void setDescription(java.lang.String description) { 246 _passwordPolicy.setDescription(description); 247 } 248 249 /** 250 * Returns the changeable of this password policy. 251 * 252 * @return the changeable of this password policy 253 */ 254 public boolean getChangeable() { 255 return _passwordPolicy.getChangeable(); 256 } 257 258 /** 259 * Returns <code>true</code> if this password policy is changeable. 260 * 261 * @return <code>true</code> if this password policy is changeable; <code>false</code> otherwise 262 */ 263 public boolean isChangeable() { 264 return _passwordPolicy.isChangeable(); 265 } 266 267 /** 268 * Sets whether this password policy is changeable. 269 * 270 * @param changeable the changeable of this password policy 271 */ 272 public void setChangeable(boolean changeable) { 273 _passwordPolicy.setChangeable(changeable); 274 } 275 276 /** 277 * Returns the change required of this password policy. 278 * 279 * @return the change required of this password policy 280 */ 281 public boolean getChangeRequired() { 282 return _passwordPolicy.getChangeRequired(); 283 } 284 285 /** 286 * Returns <code>true</code> if this password policy is change required. 287 * 288 * @return <code>true</code> if this password policy is change required; <code>false</code> otherwise 289 */ 290 public boolean isChangeRequired() { 291 return _passwordPolicy.isChangeRequired(); 292 } 293 294 /** 295 * Sets whether this password policy is change required. 296 * 297 * @param changeRequired the change required of this password policy 298 */ 299 public void setChangeRequired(boolean changeRequired) { 300 _passwordPolicy.setChangeRequired(changeRequired); 301 } 302 303 /** 304 * Returns the min age of this password policy. 305 * 306 * @return the min age of this password policy 307 */ 308 public long getMinAge() { 309 return _passwordPolicy.getMinAge(); 310 } 311 312 /** 313 * Sets the min age of this password policy. 314 * 315 * @param minAge the min age of this password policy 316 */ 317 public void setMinAge(long minAge) { 318 _passwordPolicy.setMinAge(minAge); 319 } 320 321 /** 322 * Returns the check syntax of this password policy. 323 * 324 * @return the check syntax of this password policy 325 */ 326 public boolean getCheckSyntax() { 327 return _passwordPolicy.getCheckSyntax(); 328 } 329 330 /** 331 * Returns <code>true</code> if this password policy is check syntax. 332 * 333 * @return <code>true</code> if this password policy is check syntax; <code>false</code> otherwise 334 */ 335 public boolean isCheckSyntax() { 336 return _passwordPolicy.isCheckSyntax(); 337 } 338 339 /** 340 * Sets whether this password policy is check syntax. 341 * 342 * @param checkSyntax the check syntax of this password policy 343 */ 344 public void setCheckSyntax(boolean checkSyntax) { 345 _passwordPolicy.setCheckSyntax(checkSyntax); 346 } 347 348 /** 349 * Returns the allow dictionary words of this password policy. 350 * 351 * @return the allow dictionary words of this password policy 352 */ 353 public boolean getAllowDictionaryWords() { 354 return _passwordPolicy.getAllowDictionaryWords(); 355 } 356 357 /** 358 * Returns <code>true</code> if this password policy is allow dictionary words. 359 * 360 * @return <code>true</code> if this password policy is allow dictionary words; <code>false</code> otherwise 361 */ 362 public boolean isAllowDictionaryWords() { 363 return _passwordPolicy.isAllowDictionaryWords(); 364 } 365 366 /** 367 * Sets whether this password policy is allow dictionary words. 368 * 369 * @param allowDictionaryWords the allow dictionary words of this password policy 370 */ 371 public void setAllowDictionaryWords(boolean allowDictionaryWords) { 372 _passwordPolicy.setAllowDictionaryWords(allowDictionaryWords); 373 } 374 375 /** 376 * Returns the min alphanumeric of this password policy. 377 * 378 * @return the min alphanumeric of this password policy 379 */ 380 public int getMinAlphanumeric() { 381 return _passwordPolicy.getMinAlphanumeric(); 382 } 383 384 /** 385 * Sets the min alphanumeric of this password policy. 386 * 387 * @param minAlphanumeric the min alphanumeric of this password policy 388 */ 389 public void setMinAlphanumeric(int minAlphanumeric) { 390 _passwordPolicy.setMinAlphanumeric(minAlphanumeric); 391 } 392 393 /** 394 * Returns the min length of this password policy. 395 * 396 * @return the min length of this password policy 397 */ 398 public int getMinLength() { 399 return _passwordPolicy.getMinLength(); 400 } 401 402 /** 403 * Sets the min length of this password policy. 404 * 405 * @param minLength the min length of this password policy 406 */ 407 public void setMinLength(int minLength) { 408 _passwordPolicy.setMinLength(minLength); 409 } 410 411 /** 412 * Returns the min lower case of this password policy. 413 * 414 * @return the min lower case of this password policy 415 */ 416 public int getMinLowerCase() { 417 return _passwordPolicy.getMinLowerCase(); 418 } 419 420 /** 421 * Sets the min lower case of this password policy. 422 * 423 * @param minLowerCase the min lower case of this password policy 424 */ 425 public void setMinLowerCase(int minLowerCase) { 426 _passwordPolicy.setMinLowerCase(minLowerCase); 427 } 428 429 /** 430 * Returns the min numbers of this password policy. 431 * 432 * @return the min numbers of this password policy 433 */ 434 public int getMinNumbers() { 435 return _passwordPolicy.getMinNumbers(); 436 } 437 438 /** 439 * Sets the min numbers of this password policy. 440 * 441 * @param minNumbers the min numbers of this password policy 442 */ 443 public void setMinNumbers(int minNumbers) { 444 _passwordPolicy.setMinNumbers(minNumbers); 445 } 446 447 /** 448 * Returns the min symbols of this password policy. 449 * 450 * @return the min symbols of this password policy 451 */ 452 public int getMinSymbols() { 453 return _passwordPolicy.getMinSymbols(); 454 } 455 456 /** 457 * Sets the min symbols of this password policy. 458 * 459 * @param minSymbols the min symbols of this password policy 460 */ 461 public void setMinSymbols(int minSymbols) { 462 _passwordPolicy.setMinSymbols(minSymbols); 463 } 464 465 /** 466 * Returns the min upper case of this password policy. 467 * 468 * @return the min upper case of this password policy 469 */ 470 public int getMinUpperCase() { 471 return _passwordPolicy.getMinUpperCase(); 472 } 473 474 /** 475 * Sets the min upper case of this password policy. 476 * 477 * @param minUpperCase the min upper case of this password policy 478 */ 479 public void setMinUpperCase(int minUpperCase) { 480 _passwordPolicy.setMinUpperCase(minUpperCase); 481 } 482 483 /** 484 * Returns the history of this password policy. 485 * 486 * @return the history of this password policy 487 */ 488 public boolean getHistory() { 489 return _passwordPolicy.getHistory(); 490 } 491 492 /** 493 * Returns <code>true</code> if this password policy is history. 494 * 495 * @return <code>true</code> if this password policy is history; <code>false</code> otherwise 496 */ 497 public boolean isHistory() { 498 return _passwordPolicy.isHistory(); 499 } 500 501 /** 502 * Sets whether this password policy is history. 503 * 504 * @param history the history of this password policy 505 */ 506 public void setHistory(boolean history) { 507 _passwordPolicy.setHistory(history); 508 } 509 510 /** 511 * Returns the history count of this password policy. 512 * 513 * @return the history count of this password policy 514 */ 515 public int getHistoryCount() { 516 return _passwordPolicy.getHistoryCount(); 517 } 518 519 /** 520 * Sets the history count of this password policy. 521 * 522 * @param historyCount the history count of this password policy 523 */ 524 public void setHistoryCount(int historyCount) { 525 _passwordPolicy.setHistoryCount(historyCount); 526 } 527 528 /** 529 * Returns the expireable of this password policy. 530 * 531 * @return the expireable of this password policy 532 */ 533 public boolean getExpireable() { 534 return _passwordPolicy.getExpireable(); 535 } 536 537 /** 538 * Returns <code>true</code> if this password policy is expireable. 539 * 540 * @return <code>true</code> if this password policy is expireable; <code>false</code> otherwise 541 */ 542 public boolean isExpireable() { 543 return _passwordPolicy.isExpireable(); 544 } 545 546 /** 547 * Sets whether this password policy is expireable. 548 * 549 * @param expireable the expireable of this password policy 550 */ 551 public void setExpireable(boolean expireable) { 552 _passwordPolicy.setExpireable(expireable); 553 } 554 555 /** 556 * Returns the max age of this password policy. 557 * 558 * @return the max age of this password policy 559 */ 560 public long getMaxAge() { 561 return _passwordPolicy.getMaxAge(); 562 } 563 564 /** 565 * Sets the max age of this password policy. 566 * 567 * @param maxAge the max age of this password policy 568 */ 569 public void setMaxAge(long maxAge) { 570 _passwordPolicy.setMaxAge(maxAge); 571 } 572 573 /** 574 * Returns the warning time of this password policy. 575 * 576 * @return the warning time of this password policy 577 */ 578 public long getWarningTime() { 579 return _passwordPolicy.getWarningTime(); 580 } 581 582 /** 583 * Sets the warning time of this password policy. 584 * 585 * @param warningTime the warning time of this password policy 586 */ 587 public void setWarningTime(long warningTime) { 588 _passwordPolicy.setWarningTime(warningTime); 589 } 590 591 /** 592 * Returns the grace limit of this password policy. 593 * 594 * @return the grace limit of this password policy 595 */ 596 public int getGraceLimit() { 597 return _passwordPolicy.getGraceLimit(); 598 } 599 600 /** 601 * Sets the grace limit of this password policy. 602 * 603 * @param graceLimit the grace limit of this password policy 604 */ 605 public void setGraceLimit(int graceLimit) { 606 _passwordPolicy.setGraceLimit(graceLimit); 607 } 608 609 /** 610 * Returns the lockout of this password policy. 611 * 612 * @return the lockout of this password policy 613 */ 614 public boolean getLockout() { 615 return _passwordPolicy.getLockout(); 616 } 617 618 /** 619 * Returns <code>true</code> if this password policy is lockout. 620 * 621 * @return <code>true</code> if this password policy is lockout; <code>false</code> otherwise 622 */ 623 public boolean isLockout() { 624 return _passwordPolicy.isLockout(); 625 } 626 627 /** 628 * Sets whether this password policy is lockout. 629 * 630 * @param lockout the lockout of this password policy 631 */ 632 public void setLockout(boolean lockout) { 633 _passwordPolicy.setLockout(lockout); 634 } 635 636 /** 637 * Returns the max failure of this password policy. 638 * 639 * @return the max failure of this password policy 640 */ 641 public int getMaxFailure() { 642 return _passwordPolicy.getMaxFailure(); 643 } 644 645 /** 646 * Sets the max failure of this password policy. 647 * 648 * @param maxFailure the max failure of this password policy 649 */ 650 public void setMaxFailure(int maxFailure) { 651 _passwordPolicy.setMaxFailure(maxFailure); 652 } 653 654 /** 655 * Returns the lockout duration of this password policy. 656 * 657 * @return the lockout duration of this password policy 658 */ 659 public long getLockoutDuration() { 660 return _passwordPolicy.getLockoutDuration(); 661 } 662 663 /** 664 * Sets the lockout duration of this password policy. 665 * 666 * @param lockoutDuration the lockout duration of this password policy 667 */ 668 public void setLockoutDuration(long lockoutDuration) { 669 _passwordPolicy.setLockoutDuration(lockoutDuration); 670 } 671 672 /** 673 * Returns the require unlock of this password policy. 674 * 675 * @return the require unlock of this password policy 676 */ 677 public boolean getRequireUnlock() { 678 return _passwordPolicy.getRequireUnlock(); 679 } 680 681 /** 682 * Returns <code>true</code> if this password policy is require unlock. 683 * 684 * @return <code>true</code> if this password policy is require unlock; <code>false</code> otherwise 685 */ 686 public boolean isRequireUnlock() { 687 return _passwordPolicy.isRequireUnlock(); 688 } 689 690 /** 691 * Sets whether this password policy is require unlock. 692 * 693 * @param requireUnlock the require unlock of this password policy 694 */ 695 public void setRequireUnlock(boolean requireUnlock) { 696 _passwordPolicy.setRequireUnlock(requireUnlock); 697 } 698 699 /** 700 * Returns the reset failure count of this password policy. 701 * 702 * @return the reset failure count of this password policy 703 */ 704 public long getResetFailureCount() { 705 return _passwordPolicy.getResetFailureCount(); 706 } 707 708 /** 709 * Sets the reset failure count of this password policy. 710 * 711 * @param resetFailureCount the reset failure count of this password policy 712 */ 713 public void setResetFailureCount(long resetFailureCount) { 714 _passwordPolicy.setResetFailureCount(resetFailureCount); 715 } 716 717 /** 718 * Returns the reset ticket max age of this password policy. 719 * 720 * @return the reset ticket max age of this password policy 721 */ 722 public long getResetTicketMaxAge() { 723 return _passwordPolicy.getResetTicketMaxAge(); 724 } 725 726 /** 727 * Sets the reset ticket max age of this password policy. 728 * 729 * @param resetTicketMaxAge the reset ticket max age of this password policy 730 */ 731 public void setResetTicketMaxAge(long resetTicketMaxAge) { 732 _passwordPolicy.setResetTicketMaxAge(resetTicketMaxAge); 733 } 734 735 public boolean isNew() { 736 return _passwordPolicy.isNew(); 737 } 738 739 public void setNew(boolean n) { 740 _passwordPolicy.setNew(n); 741 } 742 743 public boolean isCachedModel() { 744 return _passwordPolicy.isCachedModel(); 745 } 746 747 public void setCachedModel(boolean cachedModel) { 748 _passwordPolicy.setCachedModel(cachedModel); 749 } 750 751 public boolean isEscapedModel() { 752 return _passwordPolicy.isEscapedModel(); 753 } 754 755 public java.io.Serializable getPrimaryKeyObj() { 756 return _passwordPolicy.getPrimaryKeyObj(); 757 } 758 759 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) { 760 _passwordPolicy.setPrimaryKeyObj(primaryKeyObj); 761 } 762 763 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() { 764 return _passwordPolicy.getExpandoBridge(); 765 } 766 767 public void setExpandoBridgeAttributes( 768 com.liferay.portal.service.ServiceContext serviceContext) { 769 _passwordPolicy.setExpandoBridgeAttributes(serviceContext); 770 } 771 772 @Override 773 public java.lang.Object clone() { 774 return new PasswordPolicyWrapper((PasswordPolicy)_passwordPolicy.clone()); 775 } 776 777 public int compareTo(com.liferay.portal.model.PasswordPolicy passwordPolicy) { 778 return _passwordPolicy.compareTo(passwordPolicy); 779 } 780 781 @Override 782 public int hashCode() { 783 return _passwordPolicy.hashCode(); 784 } 785 786 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.PasswordPolicy> toCacheModel() { 787 return _passwordPolicy.toCacheModel(); 788 } 789 790 public com.liferay.portal.model.PasswordPolicy toEscapedModel() { 791 return new PasswordPolicyWrapper(_passwordPolicy.toEscapedModel()); 792 } 793 794 @Override 795 public java.lang.String toString() { 796 return _passwordPolicy.toString(); 797 } 798 799 public java.lang.String toXmlString() { 800 return _passwordPolicy.toXmlString(); 801 } 802 803 public void persist() 804 throws com.liferay.portal.kernel.exception.SystemException { 805 _passwordPolicy.persist(); 806 } 807 808 /** 809 * @deprecated Renamed to {@link #getWrappedModel} 810 */ 811 public PasswordPolicy getWrappedPasswordPolicy() { 812 return _passwordPolicy; 813 } 814 815 public PasswordPolicy getWrappedModel() { 816 return _passwordPolicy; 817 } 818 819 public void resetOriginalValues() { 820 _passwordPolicy.resetOriginalValues(); 821 } 822 823 private PasswordPolicy _passwordPolicy; 824 }