java.lang.Object
tr.com.havelsan.javarch.dto.model.HvlSimpleModel<Long>
tr.com.havelsan.javarch.dto.model.HvlModel
tr.com.havelsan.javarch.oauth.jpa.data.common.module.user.model.HvlOAuthUserModel
All Implemented Interfaces:
Serializable, Comparable<tr.com.havelsan.javarch.dto.model.HvlSimpleModel>, tr.com.havelsan.javarch.data.commons.structure.HvlModelStructure<Long>
Direct Known Subclasses:
HvlOAuthUserLdapModel

public class HvlOAuthUserModel extends tr.com.havelsan.javarch.dto.model.HvlModel
A data transfer object is used for user operations
See Also:
  • Field Details

  • Constructor Details

    • HvlOAuthUserModel

      public HvlOAuthUserModel()
      Instantiates a new HvlOAuthUserModel.
    • HvlOAuthUserModel

      public HvlOAuthUserModel(@Size(max=50) @NotNull @Size(max=50) @NotNull String username, @Size(max=100) @NotNull @Size(max=100) @NotNull String password)
      Instantiates a new HvlOAuthUserModel.
      Parameters:
      username - the username
      password - the password
    • HvlOAuthUserModel

      public HvlOAuthUserModel(@Size(max=50) @NotNull @Size(max=50) @NotNull String username, @Size(max=100) @NotNull @Size(max=100) @NotNull String password, boolean passwordMustChange)
      Instantiates a new HvlOAuthUserModel.
      Parameters:
      username - the username
      password - the password
      passwordMustChange - the password must change
    • HvlOAuthUserModel

      public HvlOAuthUserModel(@Size(max=50) @NotNull @Size(max=50) @NotNull String username, boolean passwordMustChange)
      Instantiates a new HvlOAuthUserModel.
      Parameters:
      username - the username
      passwordMustChange - the password must change
  • Method Details

    • getUsername

      public String getUsername()
      Gets username.
      Returns:
      the username
    • setUsername

      public void setUsername(String username)
      Sets username.
      Parameters:
      username - the username
    • getPassword

      public String getPassword()
      Gets password.
      Returns:
      the password
    • setPassword

      public void setPassword(String password)
      Sets password.
      Parameters:
      password - the password
    • isSystem

      public boolean isSystem()
      Is system boolean.
      Returns:
      the boolean
    • setSystem

      public void setSystem(boolean system)
      Sets system.
      Parameters:
      system - the system
    • getFailedLoginCount

      public int getFailedLoginCount()
      Gets failed login count.
      Returns:
      the failed login count
    • setFailedLoginCount

      public void setFailedLoginCount(int failedLoginCount)
      Sets failed login count.
      Parameters:
      failedLoginCount - the failed login count
    • isLocked

      public boolean isLocked()
      Is locked boolean.
      Returns:
      the boolean
    • setLocked

      public void setLocked(boolean locked)
      Sets locked.
      Parameters:
      locked - the locked
    • getLockedDate

      public OffsetDateTime getLockedDate()
      Gets locked date.
      Returns:
      the locked date
    • setLockedDate

      public void setLockedDate(OffsetDateTime lockedDate)
      Sets locked date.
      Parameters:
      lockedDate - the locked date
    • getLockDescription

      public String getLockDescription()
      Gets lock description.
      Returns:
      the lock description
    • setLockDescription

      public void setLockDescription(String lockDescription)
      Sets lock description.
      Parameters:
      lockDescription - the lock description
    • isExpired

      public boolean isExpired()
      Is expired boolean.
      Returns:
      the boolean
    • setExpired

      public void setExpired(boolean expired)
      Sets expired.
      Parameters:
      expired - the expired
    • getExpirationDate

      public OffsetDateTime getExpirationDate()
      Gets expiration date.
      Returns:
      the expiration date
    • getPasswordUpdatedDate

      public OffsetDateTime getPasswordUpdatedDate()
      Gets password updated date.
      Returns:
      the password updated date
    • setPasswordUpdatedDate

      public void setPasswordUpdatedDate(OffsetDateTime passwordUpdatedDate)
      Sets password updated date.
      Parameters:
      passwordUpdatedDate - the password updated date
    • setExpirationDate

      public void setExpirationDate(OffsetDateTime expirationDate)
      Sets expiration date.
      Parameters:
      expirationDate - the expiration date
    • isPasswordMustChange

      public boolean isPasswordMustChange()
      Is password must change boolean.
      Returns:
      the boolean
    • setPasswordMustChange

      public void setPasswordMustChange(boolean passwordMustChange)
      Sets password must change.
      Parameters:
      passwordMustChange - the password must change
    • isGoogleAuthenticatorEnabled

      public boolean isGoogleAuthenticatorEnabled()
      Is google authenticator enabled boolean.
      Returns:
      the boolean
    • setGoogleAuthenticatorEnabled

      public void setGoogleAuthenticatorEnabled(boolean googleAuthenticatorEnabled)
      Sets google authenticator enabled.
      Parameters:
      googleAuthenticatorEnabled - the google authenticator enabled
    • getDn

      public String getDn()
      Gets dn.
      Returns:
      the dn
    • setDn

      public void setDn(String dn)
      Sets dn.
      Parameters:
      dn - the dn
    • getOu

      public String getOu()
      Gets ou.
      Returns:
      the ou
    • setOu

      public void setOu(String ou)
      Sets ou.
      Parameters:
      ou - the ou
    • getUserDetail

      public HvlOAuthUserDetailModel getUserDetail()
      Gets user detail.
      Returns:
      the user detail
    • setUserDetail

      public void setUserDetail(HvlOAuthUserDetailModel userDetail)
      Sets user detail.
      Parameters:
      userDetail - the user detail
    • clearFailedLoginCount

      public void clearFailedLoginCount()
      Clear failed login count.
    • getTenant

      public String getTenant()
      Gets tenant identifier.
      Returns:
      the tenant identifier
    • setTenant

      public void setTenant(String tenant)
      Sets tenant identifier.
      Parameters:
      tenant - the tenant identifier
    • getProfileName

      public String getProfileName()
      Gets profile name.
      Returns:
      the profile name
    • setProfileName

      public void setProfileName(String profileName)
      Sets profile name.
      Parameters:
      profileName - the profile name
    • getSecret

      public String getSecret()
      Gets secret.
      Returns:
      the secret
    • setSecret

      public void setSecret(String secret)
      Sets secret.
      Parameters:
      secret - the secret
    • getDescription

      public String getDescription()
      Gets description.
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Sets description.
      Parameters:
      description - the description
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class tr.com.havelsan.javarch.dto.model.HvlSimpleModel<Long>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class tr.com.havelsan.javarch.dto.model.HvlSimpleModel<Long>