Class PasswordPolicyWrapper

Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<PasswordPolicy>
com.liferay.portal.kernel.model.PasswordPolicyWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<PasswordPolicy>, ClassedModel, ModelWrapper<PasswordPolicy>, MVCCModel, PasswordPolicy, PasswordPolicyModel, PersistedModel, ShardedModel, StagedAuditedModel, StagedModel, Serializable, Cloneable, Comparable<PasswordPolicy>

public class PasswordPolicyWrapper extends BaseModelWrapper<PasswordPolicy> implements ModelWrapper<PasswordPolicy>, PasswordPolicy

This class is a wrapper for PasswordPolicy.

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • PasswordPolicyWrapper

      public PasswordPolicyWrapper(PasswordPolicy passwordPolicy)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface BaseModel<PasswordPolicy>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface BaseModel<PasswordPolicy>
    • cloneWithOriginalValues

      public PasswordPolicy cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface BaseModel<PasswordPolicy>
      Specified by:
      cloneWithOriginalValues in interface PasswordPolicyModel
    • getAllowDictionaryWords

      public boolean getAllowDictionaryWords()
      Returns the allow dictionary words of this password policy.
      Specified by:
      getAllowDictionaryWords in interface PasswordPolicyModel
      Returns:
      the allow dictionary words of this password policy
    • getChangeable

      public boolean getChangeable()
      Returns the changeable of this password policy.
      Specified by:
      getChangeable in interface PasswordPolicyModel
      Returns:
      the changeable of this password policy
    • getChangeRequired

      public boolean getChangeRequired()
      Returns the change required of this password policy.
      Specified by:
      getChangeRequired in interface PasswordPolicyModel
      Returns:
      the change required of this password policy
    • getCheckSyntax

      public boolean getCheckSyntax()
      Returns the check syntax of this password policy.
      Specified by:
      getCheckSyntax in interface PasswordPolicyModel
      Returns:
      the check syntax of this password policy
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this password policy.
      Specified by:
      getCompanyId in interface AuditedModel
      Specified by:
      getCompanyId in interface PasswordPolicyModel
      Specified by:
      getCompanyId in interface ShardedModel
      Specified by:
      getCompanyId in interface StagedModel
      Returns:
      the company ID of this password policy
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this password policy.
      Specified by:
      getCreateDate in interface AuditedModel
      Specified by:
      getCreateDate in interface PasswordPolicyModel
      Specified by:
      getCreateDate in interface StagedModel
      Returns:
      the create date of this password policy
    • getDefaultPolicy

      public boolean getDefaultPolicy()
      Returns the default policy of this password policy.
      Specified by:
      getDefaultPolicy in interface PasswordPolicyModel
      Returns:
      the default policy of this password policy
    • getDescription

      public String getDescription()
      Returns the description of this password policy.
      Specified by:
      getDescription in interface PasswordPolicyModel
      Returns:
      the description of this password policy
    • getExpireable

      public boolean getExpireable()
      Returns the expireable of this password policy.
      Specified by:
      getExpireable in interface PasswordPolicyModel
      Returns:
      the expireable of this password policy
    • getGraceLimit

      public int getGraceLimit()
      Returns the grace limit of this password policy.
      Specified by:
      getGraceLimit in interface PasswordPolicyModel
      Returns:
      the grace limit of this password policy
    • getHistory

      public boolean getHistory()
      Returns the history of this password policy.
      Specified by:
      getHistory in interface PasswordPolicyModel
      Returns:
      the history of this password policy
    • getHistoryCount

      public int getHistoryCount()
      Returns the history count of this password policy.
      Specified by:
      getHistoryCount in interface PasswordPolicyModel
      Returns:
      the history count of this password policy
    • getLockout

      public boolean getLockout()
      Returns the lockout of this password policy.
      Specified by:
      getLockout in interface PasswordPolicyModel
      Returns:
      the lockout of this password policy
    • getLockoutDuration

      public long getLockoutDuration()
      Returns the lockout duration of this password policy.
      Specified by:
      getLockoutDuration in interface PasswordPolicyModel
      Returns:
      the lockout duration of this password policy
    • getMaxAge

      public long getMaxAge()
      Returns the max age of this password policy.
      Specified by:
      getMaxAge in interface PasswordPolicyModel
      Returns:
      the max age of this password policy
    • getMaxFailure

      public int getMaxFailure()
      Returns the max failure of this password policy.
      Specified by:
      getMaxFailure in interface PasswordPolicyModel
      Returns:
      the max failure of this password policy
    • getMinAge

      public long getMinAge()
      Returns the min age of this password policy.
      Specified by:
      getMinAge in interface PasswordPolicyModel
      Returns:
      the min age of this password policy
    • getMinAlphanumeric

      public int getMinAlphanumeric()
      Returns the min alphanumeric of this password policy.
      Specified by:
      getMinAlphanumeric in interface PasswordPolicyModel
      Returns:
      the min alphanumeric of this password policy
    • getMinLength

      public int getMinLength()
      Returns the min length of this password policy.
      Specified by:
      getMinLength in interface PasswordPolicyModel
      Returns:
      the min length of this password policy
    • getMinLowerCase

      public int getMinLowerCase()
      Returns the min lower case of this password policy.
      Specified by:
      getMinLowerCase in interface PasswordPolicyModel
      Returns:
      the min lower case of this password policy
    • getMinNumbers

      public int getMinNumbers()
      Returns the min numbers of this password policy.
      Specified by:
      getMinNumbers in interface PasswordPolicyModel
      Returns:
      the min numbers of this password policy
    • getMinSymbols

      public int getMinSymbols()
      Returns the min symbols of this password policy.
      Specified by:
      getMinSymbols in interface PasswordPolicyModel
      Returns:
      the min symbols of this password policy
    • getMinUpperCase

      public int getMinUpperCase()
      Returns the min upper case of this password policy.
      Specified by:
      getMinUpperCase in interface PasswordPolicyModel
      Returns:
      the min upper case of this password policy
    • getModifiedDate

      public Date getModifiedDate()
      Returns the modified date of this password policy.
      Specified by:
      getModifiedDate in interface AuditedModel
      Specified by:
      getModifiedDate in interface PasswordPolicyModel
      Specified by:
      getModifiedDate in interface StagedModel
      Returns:
      the modified date of this password policy
    • getMvccVersion

      public long getMvccVersion()
      Returns the mvcc version of this password policy.
      Specified by:
      getMvccVersion in interface MVCCModel
      Specified by:
      getMvccVersion in interface PasswordPolicyModel
      Returns:
      the mvcc version of this password policy
    • getName

      public String getName()
      Returns the name of this password policy.
      Specified by:
      getName in interface PasswordPolicyModel
      Returns:
      the name of this password policy
    • getPasswordPolicyId

      public long getPasswordPolicyId()
      Returns the password policy ID of this password policy.
      Specified by:
      getPasswordPolicyId in interface PasswordPolicyModel
      Returns:
      the password policy ID of this password policy
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this password policy.
      Specified by:
      getPrimaryKey in interface PasswordPolicyModel
      Returns:
      the primary key of this password policy
    • getRegex

      public String getRegex()
      Returns the regex of this password policy.
      Specified by:
      getRegex in interface PasswordPolicyModel
      Returns:
      the regex of this password policy
    • getRequireUnlock

      public boolean getRequireUnlock()
      Returns the require unlock of this password policy.
      Specified by:
      getRequireUnlock in interface PasswordPolicyModel
      Returns:
      the require unlock of this password policy
    • getResetFailureCount

      public long getResetFailureCount()
      Returns the reset failure count of this password policy.
      Specified by:
      getResetFailureCount in interface PasswordPolicyModel
      Returns:
      the reset failure count of this password policy
    • getResetTicketMaxAge

      public long getResetTicketMaxAge()
      Returns the reset ticket max age of this password policy.
      Specified by:
      getResetTicketMaxAge in interface PasswordPolicyModel
      Returns:
      the reset ticket max age of this password policy
    • getUserId

      public long getUserId()
      Returns the user ID of this password policy.
      Specified by:
      getUserId in interface AuditedModel
      Specified by:
      getUserId in interface PasswordPolicyModel
      Returns:
      the user ID of this password policy
    • getUserName

      public String getUserName()
      Returns the user name of this password policy.
      Specified by:
      getUserName in interface AuditedModel
      Specified by:
      getUserName in interface PasswordPolicyModel
      Returns:
      the user name of this password policy
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this password policy.
      Specified by:
      getUserUuid in interface AuditedModel
      Specified by:
      getUserUuid in interface PasswordPolicyModel
      Returns:
      the user uuid of this password policy
    • getUuid

      public String getUuid()
      Returns the uuid of this password policy.
      Specified by:
      getUuid in interface PasswordPolicyModel
      Specified by:
      getUuid in interface StagedModel
      Returns:
      the uuid of this password policy
    • getWarningTime

      public long getWarningTime()
      Returns the warning time of this password policy.
      Specified by:
      getWarningTime in interface PasswordPolicyModel
      Returns:
      the warning time of this password policy
    • isAllowDictionaryWords

      public boolean isAllowDictionaryWords()
      Returns true if this password policy is allow dictionary words.
      Specified by:
      isAllowDictionaryWords in interface PasswordPolicyModel
      Returns:
      true if this password policy is allow dictionary words; false otherwise
    • isChangeable

      public boolean isChangeable()
      Returns true if this password policy is changeable.
      Specified by:
      isChangeable in interface PasswordPolicyModel
      Returns:
      true if this password policy is changeable; false otherwise
    • isChangeRequired

      public boolean isChangeRequired()
      Returns true if this password policy is change required.
      Specified by:
      isChangeRequired in interface PasswordPolicyModel
      Returns:
      true if this password policy is change required; false otherwise
    • isCheckSyntax

      public boolean isCheckSyntax()
      Returns true if this password policy is check syntax.
      Specified by:
      isCheckSyntax in interface PasswordPolicyModel
      Returns:
      true if this password policy is check syntax; false otherwise
    • isDefaultPolicy

      public boolean isDefaultPolicy()
      Returns true if this password policy is default policy.
      Specified by:
      isDefaultPolicy in interface PasswordPolicyModel
      Returns:
      true if this password policy is default policy; false otherwise
    • isExpireable

      public boolean isExpireable()
      Returns true if this password policy is expireable.
      Specified by:
      isExpireable in interface PasswordPolicyModel
      Returns:
      true if this password policy is expireable; false otherwise
    • isHistory

      public boolean isHistory()
      Returns true if this password policy is history.
      Specified by:
      isHistory in interface PasswordPolicyModel
      Returns:
      true if this password policy is history; false otherwise
    • isLockout

      public boolean isLockout()
      Returns true if this password policy is lockout.
      Specified by:
      isLockout in interface PasswordPolicyModel
      Returns:
      true if this password policy is lockout; false otherwise
    • isRequireUnlock

      public boolean isRequireUnlock()
      Returns true if this password policy is require unlock.
      Specified by:
      isRequireUnlock in interface PasswordPolicyModel
      Returns:
      true if this password policy is require unlock; false otherwise
    • persist

      public void persist()
      Description copied from interface: PersistedModel
      Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
      Specified by:
      persist in interface PersistedModel
    • setAllowDictionaryWords

      public void setAllowDictionaryWords(boolean allowDictionaryWords)
      Sets whether this password policy is allow dictionary words.
      Specified by:
      setAllowDictionaryWords in interface PasswordPolicyModel
      Parameters:
      allowDictionaryWords - the allow dictionary words of this password policy
    • setChangeable

      public void setChangeable(boolean changeable)
      Sets whether this password policy is changeable.
      Specified by:
      setChangeable in interface PasswordPolicyModel
      Parameters:
      changeable - the changeable of this password policy
    • setChangeRequired

      public void setChangeRequired(boolean changeRequired)
      Sets whether this password policy is change required.
      Specified by:
      setChangeRequired in interface PasswordPolicyModel
      Parameters:
      changeRequired - the change required of this password policy
    • setCheckSyntax

      public void setCheckSyntax(boolean checkSyntax)
      Sets whether this password policy is check syntax.
      Specified by:
      setCheckSyntax in interface PasswordPolicyModel
      Parameters:
      checkSyntax - the check syntax of this password policy
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this password policy.
      Specified by:
      setCompanyId in interface AuditedModel
      Specified by:
      setCompanyId in interface PasswordPolicyModel
      Specified by:
      setCompanyId in interface ShardedModel
      Specified by:
      setCompanyId in interface StagedModel
      Parameters:
      companyId - the company ID of this password policy
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this password policy.
      Specified by:
      setCreateDate in interface AuditedModel
      Specified by:
      setCreateDate in interface PasswordPolicyModel
      Specified by:
      setCreateDate in interface StagedModel
      Parameters:
      createDate - the create date of this password policy
    • setDefaultPolicy

      public void setDefaultPolicy(boolean defaultPolicy)
      Sets whether this password policy is default policy.
      Specified by:
      setDefaultPolicy in interface PasswordPolicyModel
      Parameters:
      defaultPolicy - the default policy of this password policy
    • setDescription

      public void setDescription(String description)
      Sets the description of this password policy.
      Specified by:
      setDescription in interface PasswordPolicyModel
      Parameters:
      description - the description of this password policy
    • setExpireable

      public void setExpireable(boolean expireable)
      Sets whether this password policy is expireable.
      Specified by:
      setExpireable in interface PasswordPolicyModel
      Parameters:
      expireable - the expireable of this password policy
    • setGraceLimit

      public void setGraceLimit(int graceLimit)
      Sets the grace limit of this password policy.
      Specified by:
      setGraceLimit in interface PasswordPolicyModel
      Parameters:
      graceLimit - the grace limit of this password policy
    • setHistory

      public void setHistory(boolean history)
      Sets whether this password policy is history.
      Specified by:
      setHistory in interface PasswordPolicyModel
      Parameters:
      history - the history of this password policy
    • setHistoryCount

      public void setHistoryCount(int historyCount)
      Sets the history count of this password policy.
      Specified by:
      setHistoryCount in interface PasswordPolicyModel
      Parameters:
      historyCount - the history count of this password policy
    • setLockout

      public void setLockout(boolean lockout)
      Sets whether this password policy is lockout.
      Specified by:
      setLockout in interface PasswordPolicyModel
      Parameters:
      lockout - the lockout of this password policy
    • setLockoutDuration

      public void setLockoutDuration(long lockoutDuration)
      Sets the lockout duration of this password policy.
      Specified by:
      setLockoutDuration in interface PasswordPolicyModel
      Parameters:
      lockoutDuration - the lockout duration of this password policy
    • setMaxAge

      public void setMaxAge(long maxAge)
      Sets the max age of this password policy.
      Specified by:
      setMaxAge in interface PasswordPolicyModel
      Parameters:
      maxAge - the max age of this password policy
    • setMaxFailure

      public void setMaxFailure(int maxFailure)
      Sets the max failure of this password policy.
      Specified by:
      setMaxFailure in interface PasswordPolicyModel
      Parameters:
      maxFailure - the max failure of this password policy
    • setMinAge

      public void setMinAge(long minAge)
      Sets the min age of this password policy.
      Specified by:
      setMinAge in interface PasswordPolicyModel
      Parameters:
      minAge - the min age of this password policy
    • setMinAlphanumeric

      public void setMinAlphanumeric(int minAlphanumeric)
      Sets the min alphanumeric of this password policy.
      Specified by:
      setMinAlphanumeric in interface PasswordPolicyModel
      Parameters:
      minAlphanumeric - the min alphanumeric of this password policy
    • setMinLength

      public void setMinLength(int minLength)
      Sets the min length of this password policy.
      Specified by:
      setMinLength in interface PasswordPolicyModel
      Parameters:
      minLength - the min length of this password policy
    • setMinLowerCase

      public void setMinLowerCase(int minLowerCase)
      Sets the min lower case of this password policy.
      Specified by:
      setMinLowerCase in interface PasswordPolicyModel
      Parameters:
      minLowerCase - the min lower case of this password policy
    • setMinNumbers

      public void setMinNumbers(int minNumbers)
      Sets the min numbers of this password policy.
      Specified by:
      setMinNumbers in interface PasswordPolicyModel
      Parameters:
      minNumbers - the min numbers of this password policy
    • setMinSymbols

      public void setMinSymbols(int minSymbols)
      Sets the min symbols of this password policy.
      Specified by:
      setMinSymbols in interface PasswordPolicyModel
      Parameters:
      minSymbols - the min symbols of this password policy
    • setMinUpperCase

      public void setMinUpperCase(int minUpperCase)
      Sets the min upper case of this password policy.
      Specified by:
      setMinUpperCase in interface PasswordPolicyModel
      Parameters:
      minUpperCase - the min upper case of this password policy
    • setModifiedDate

      public void setModifiedDate(Date modifiedDate)
      Sets the modified date of this password policy.
      Specified by:
      setModifiedDate in interface AuditedModel
      Specified by:
      setModifiedDate in interface PasswordPolicyModel
      Specified by:
      setModifiedDate in interface StagedModel
      Parameters:
      modifiedDate - the modified date of this password policy
    • setMvccVersion

      public void setMvccVersion(long mvccVersion)
      Sets the mvcc version of this password policy.
      Specified by:
      setMvccVersion in interface MVCCModel
      Specified by:
      setMvccVersion in interface PasswordPolicyModel
      Parameters:
      mvccVersion - the mvcc version of this password policy
    • setName

      public void setName(String name)
      Sets the name of this password policy.
      Specified by:
      setName in interface PasswordPolicyModel
      Parameters:
      name - the name of this password policy
    • setPasswordPolicyId

      public void setPasswordPolicyId(long passwordPolicyId)
      Sets the password policy ID of this password policy.
      Specified by:
      setPasswordPolicyId in interface PasswordPolicyModel
      Parameters:
      passwordPolicyId - the password policy ID of this password policy
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this password policy.
      Specified by:
      setPrimaryKey in interface PasswordPolicyModel
      Parameters:
      primaryKey - the primary key of this password policy
    • setRegex

      public void setRegex(String regex)
      Sets the regex of this password policy.
      Specified by:
      setRegex in interface PasswordPolicyModel
      Parameters:
      regex - the regex of this password policy
    • setRequireUnlock

      public void setRequireUnlock(boolean requireUnlock)
      Sets whether this password policy is require unlock.
      Specified by:
      setRequireUnlock in interface PasswordPolicyModel
      Parameters:
      requireUnlock - the require unlock of this password policy
    • setResetFailureCount

      public void setResetFailureCount(long resetFailureCount)
      Sets the reset failure count of this password policy.
      Specified by:
      setResetFailureCount in interface PasswordPolicyModel
      Parameters:
      resetFailureCount - the reset failure count of this password policy
    • setResetTicketMaxAge

      public void setResetTicketMaxAge(long resetTicketMaxAge)
      Sets the reset ticket max age of this password policy.
      Specified by:
      setResetTicketMaxAge in interface PasswordPolicyModel
      Parameters:
      resetTicketMaxAge - the reset ticket max age of this password policy
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this password policy.
      Specified by:
      setUserId in interface AuditedModel
      Specified by:
      setUserId in interface PasswordPolicyModel
      Parameters:
      userId - the user ID of this password policy
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this password policy.
      Specified by:
      setUserName in interface AuditedModel
      Specified by:
      setUserName in interface PasswordPolicyModel
      Parameters:
      userName - the user name of this password policy
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this password policy.
      Specified by:
      setUserUuid in interface AuditedModel
      Specified by:
      setUserUuid in interface PasswordPolicyModel
      Parameters:
      userUuid - the user uuid of this password policy
    • setUuid

      public void setUuid(String uuid)
      Sets the uuid of this password policy.
      Specified by:
      setUuid in interface PasswordPolicyModel
      Specified by:
      setUuid in interface StagedModel
      Parameters:
      uuid - the uuid of this password policy
    • setWarningTime

      public void setWarningTime(long warningTime)
      Sets the warning time of this password policy.
      Specified by:
      setWarningTime in interface PasswordPolicyModel
      Parameters:
      warningTime - the warning time of this password policy
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface PasswordPolicyModel
    • getStagedModelType

      public StagedModelType getStagedModelType()
      Specified by:
      getStagedModelType in interface StagedModel
    • wrap

      protected PasswordPolicyWrapper wrap(PasswordPolicy passwordPolicy)
      Specified by:
      wrap in class BaseModelWrapper<PasswordPolicy>