Class HvlOAuthUserModel
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 Summary
-
Constructor Summary
ConstructorDescriptionInstantiates a new HvlOAuthUserModel.HvlOAuthUserModel
(@Size(max=50) @NotNull String username, boolean passwordMustChange) Instantiates a new HvlOAuthUserModel.HvlOAuthUserModel
(@Size(max=50) @NotNull String username, @Size(max=100) @NotNull String password) Instantiates a new HvlOAuthUserModel.HvlOAuthUserModel
(@Size(max=50) @NotNull String username, @Size(max=100) @NotNull String password, boolean passwordMustChange) Instantiates a new HvlOAuthUserModel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear failed login count.boolean
getDn()
Gets dn.Gets expiration date.int
Gets failed login count.Gets lock description.Gets locked date.Gets password.Gets password updated date.Gets profile name.Gets secret.Gets tenant identifier.Gets user detail.Gets username.int
hashCode()
boolean
Is expired boolean.boolean
Is google authenticator enabled boolean.boolean
isLocked()
Is locked boolean.boolean
Is password must change boolean.boolean
isSystem()
Is system boolean.void
Sets dn.void
setExpirationDate
(OffsetDateTime expirationDate) Sets expiration date.void
setExpired
(boolean expired) Sets expired.void
setFailedLoginCount
(int failedLoginCount) Sets failed login count.void
setGoogleAuthenticatorEnabled
(boolean googleAuthenticatorEnabled) Sets google authenticator enabled.void
setLockDescription
(String lockDescription) Sets lock description.void
setLocked
(boolean locked) Sets locked.void
setLockedDate
(OffsetDateTime lockedDate) Sets locked date.void
setPassword
(String password) Sets password.void
setPasswordMustChange
(boolean passwordMustChange) Sets password must change.void
setPasswordUpdatedDate
(OffsetDateTime passwordUpdatedDate) Sets password updated date.void
setProfileName
(String profileName) Sets profile name.void
Sets secret.void
setSystem
(boolean system) Sets system.void
Sets tenant identifier.void
setUserDetail
(HvlOAuthUserDetailModel userDetail) Sets user detail.void
setUsername
(String username) Sets username.Methods inherited from class tr.com.havelsan.javarch.dto.model.HvlModel
getId, setId
Methods inherited from class tr.com.havelsan.javarch.dto.model.HvlSimpleModel
compareTo, getCreatedBy, getDateCreated, getDateUpdated, getDeleted, getDeletedDate, getUpdatedBy, getUuid, getVersion, setCreatedBy, setDateCreated, setDateUpdated, setDeleted, setDeletedDate, setUpdatedBy, setUuid, setVersion
-
Field Details
-
LOCKED_FIELD
The constant LOCKED_FIELD.- See Also:
-
EXPIRED_FIELD
The constant EXPIRED_FIELD.- See Also:
-
PASSWORD_EXPIRED_FIELD
The constant PASSWORD_EXPIRED_FIELD.- See Also:
-
USER_DETAIL_UUID_FIELD
The constant USER_DETAIL_UUID_FIELD.- See Also:
-
USER_DETAIL_ID_FIELD
The constant USER_DETAIL_ID_FIELD.- See Also:
-
-
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 usernamepassword
- 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 usernamepassword
- the passwordpasswordMustChange
- 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 usernamepasswordMustChange
- the password must change
-
-
Method Details
-
getUsername
Gets username.- Returns:
- the username
-
setUsername
Sets username.- Parameters:
username
- the username
-
getPassword
Gets password.- Returns:
- the password
-
setPassword
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
Gets locked date.- Returns:
- the locked date
-
setLockedDate
Sets locked date.- Parameters:
lockedDate
- the locked date
-
getLockDescription
Gets lock description.- Returns:
- the lock description
-
setLockDescription
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
Gets expiration date.- Returns:
- the expiration date
-
getPasswordUpdatedDate
Gets password updated date.- Returns:
- the password updated date
-
setPasswordUpdatedDate
Sets password updated date.- Parameters:
passwordUpdatedDate
- the password updated date
-
setExpirationDate
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
Gets dn.- Returns:
- the dn
-
setDn
Sets dn.- Parameters:
dn
- the dn
-
getUserDetail
Gets user detail.- Returns:
- the user detail
-
setUserDetail
Sets user detail.- Parameters:
userDetail
- the user detail
-
clearFailedLoginCount
public void clearFailedLoginCount()Clear failed login count. -
getTenant
Gets tenant identifier.- Returns:
- the tenant identifier
-
setTenant
Sets tenant identifier.- Parameters:
tenant
- the tenant identifier
-
getProfileName
Gets profile name.- Returns:
- the profile name
-
setProfileName
Sets profile name.- Parameters:
profileName
- the profile name
-
getSecret
Gets secret.- Returns:
- the secret
-
setSecret
Sets secret.- Parameters:
secret
- the secret
-
equals
- Overrides:
equals
in classtr.com.havelsan.javarch.dto.model.HvlSimpleModel<Long>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classtr.com.havelsan.javarch.dto.model.HvlSimpleModel<Long>
-