Class HvlOAuthBaseUser
java.lang.Object
tr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity<Long>
tr.com.havelsan.javarch.domain.model.entity.HvlEntity
tr.com.havelsan.javarch.domain.model.entity.HvlSoftDeleteEntity
tr.com.havelsan.javarch.multitenancy.jpa.entity.HvlSoftDeleteTenantEntity
tr.com.havelsan.javarch.oauth.jpa.data.provider.module.user.entity.HvlOAuthBaseUser
- All Implemented Interfaces:
Serializable
,Comparable<tr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity>
,tr.com.havelsan.javarch.data.commons.structure.HvlEntityStructure<Long>
,tr.com.havelsan.javarch.multitenancy.jpa.entity.HvlTenantEntityStructure<Long>
- Direct Known Subclasses:
HvlOAuthUser
,HvlOAuthUserPersist
@MappedSuperclass
public abstract class HvlOAuthBaseUser
extends tr.com.havelsan.javarch.multitenancy.jpa.entity.HvlSoftDeleteTenantEntity
An entity class which defines user fields.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The constant EXPIRATION_DATE_FIELD_COLUMN.static final String
The constant FAILED_LOGIN_COUNT_FIELD_COLUMN.static final String
The constant GOOGLE_AUTHENTICATOR_ENABLED_COLUMN.static final String
The constant GOOGLE_AUTHENTICATOR_SECRET_FIELD_COLUMN.static final String
The constant LOCK_DESCRIPTION_FIELD_COLUMN.static final String
The constant LOCKED_DATE_FIELD_COLUMN.static final String
The constant PASSWORD_FIELD_COLUMN.static final String
The constant PASSWORD_MUST_CHANGE_FIELD_COLUMN.static final String
The constant PASSWORD_UPDATED_DATE_FIELD_COLUMN.static final String
The constant SYSTEM_FIELD_COLUMN.static final String
The constant TABLE_NAME.static final String
The constant TENANT_INDEX.static final String
The constant USER_DETAIL_ID_FIELD_COLUMN.static final String
The constant USER_LDAP_ID_FIELD_COLUMN.static final String
The constant USER_LDAP_ID_FOREIGN_KEY.static final String
The constant USER_REGISTRATION_SOURCE_TYPE_ID_FIELD_COLUMN.static final String
The constant USERNAME_FIELD.static final String
The constant USERNAME_FIELD_COLUMN.static final String
The constant USERNAME_INDEX.static final String
The constant USERNAME_TENANT_UNIQUE_KEY.static final String
The constant UUID_INDEX.static final String
The constant UUID_UNIQUE_KEY.Fields inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlSoftDeleteEntity
DELETED_DATE_FIELD, DELETED_DATE_FIELD_COLUMN, DELETED_FIELD, DELETED_FIELD_COLUMN
Fields inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity
CREATED_BY_FIELD, CREATED_BY_FIELD_COLUMN, CREATED_DATE_FIELD, CREATED_DATE_FIELD_COLUMN, ID_FIELD, ID_FIELD_COLUMN, UPDATED_BY_FIELD, UPDATED_BY_FIELD_COLUMN, UPDATED_DATE_FIELD, UPDATED_DATE_FIELD_COLUMN, UUID_FIELD, UUID_FIELD_COLUMN, VERSION_FIELD, VERSION_FIELD_COLUMN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets expiration date.int
Gets failed login count.Gets google authenticator secret.Gets lock description.Gets locked date.Gets password.Gets password updated date.Gets user detail.Gets user ldap.Gets username.Gets user registration source type.int
hashCode()
boolean
Is expired.boolean
Is google authenticator enabled boolean.boolean
isLocked()
Is locked.boolean
Is password must change boolean.boolean
isSystem()
Is system boolean.void
postLoad()
Post load.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
setGoogleAuthenticatorSecret
(String googleAuthenticatorSecret) Sets google authenticator secret.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
setSystem
(boolean system) Sets system.void
setUserDetailId
(Long userDetailId) Sets user detail id.void
setUserLdap
(HvlOAuthUserLdap userLdap) Sets user ldap.void
setUsername
(String username) Sets username.void
setUserRegistrationSourceType
(HvlOAuthUserRegistrationSourceType userRegistrationSourceType) Sets user registration source type.Methods inherited from class tr.com.havelsan.javarch.multitenancy.jpa.entity.HvlSoftDeleteTenantEntity
getTenantIdentifier, setTenantIdentifier
Methods inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlSoftDeleteEntity
getDeleted, getDeletedDate, setDeleted, setDeletedDate
Methods inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlEntity
getId, setId
Methods inherited from class tr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity
compareTo, getCreatedBy, getDateCreated, getDateUpdated, getUpdatedBy, getUuid, getVersion, setCreatedBy, setDateCreated, setDateUpdated, setUpdatedBy, setUuid, setVersion
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tr.com.havelsan.javarch.data.commons.structure.HvlEntityStructure
getId, getUuid, setId, setUuid
-
Field Details
-
TABLE_NAME
The constant TABLE_NAME.- See Also:
-
USERNAME_FIELD_COLUMN
The constant USERNAME_FIELD_COLUMN.- See Also:
-
PASSWORD_FIELD_COLUMN
The constant PASSWORD_FIELD_COLUMN.- See Also:
-
SYSTEM_FIELD_COLUMN
The constant SYSTEM_FIELD_COLUMN.- See Also:
-
PASSWORD_MUST_CHANGE_FIELD_COLUMN
The constant PASSWORD_MUST_CHANGE_FIELD_COLUMN.- See Also:
-
GOOGLE_AUTHENTICATOR_ENABLED_COLUMN
The constant GOOGLE_AUTHENTICATOR_ENABLED_COLUMN.- See Also:
-
FAILED_LOGIN_COUNT_FIELD_COLUMN
The constant FAILED_LOGIN_COUNT_FIELD_COLUMN.- See Also:
-
LOCKED_DATE_FIELD_COLUMN
The constant LOCKED_DATE_FIELD_COLUMN.- See Also:
-
LOCK_DESCRIPTION_FIELD_COLUMN
The constant LOCK_DESCRIPTION_FIELD_COLUMN.- See Also:
-
EXPIRATION_DATE_FIELD_COLUMN
The constant EXPIRATION_DATE_FIELD_COLUMN.- See Also:
-
PASSWORD_UPDATED_DATE_FIELD_COLUMN
The constant PASSWORD_UPDATED_DATE_FIELD_COLUMN.- See Also:
-
USER_DETAIL_ID_FIELD_COLUMN
The constant USER_DETAIL_ID_FIELD_COLUMN.- See Also:
-
USER_REGISTRATION_SOURCE_TYPE_ID_FIELD_COLUMN
The constant USER_REGISTRATION_SOURCE_TYPE_ID_FIELD_COLUMN.- See Also:
-
USER_LDAP_ID_FIELD_COLUMN
The constant USER_LDAP_ID_FIELD_COLUMN.- See Also:
-
GOOGLE_AUTHENTICATOR_SECRET_FIELD_COLUMN
The constant GOOGLE_AUTHENTICATOR_SECRET_FIELD_COLUMN.- See Also:
-
UUID_UNIQUE_KEY
The constant UUID_UNIQUE_KEY.- See Also:
-
USERNAME_TENANT_UNIQUE_KEY
The constant USERNAME_TENANT_UNIQUE_KEY.- See Also:
-
USER_LDAP_ID_FOREIGN_KEY
The constant USER_LDAP_ID_FOREIGN_KEY.- See Also:
-
UUID_INDEX
The constant UUID_INDEX.- See Also:
-
USERNAME_INDEX
The constant USERNAME_INDEX.- See Also:
-
TENANT_INDEX
The constant TENANT_INDEX.- See Also:
-
USERNAME_FIELD
The constant USERNAME_FIELD.- See Also:
-
-
Constructor Details
-
HvlOAuthBaseUser
public HvlOAuthBaseUser()
-
-
Method Details
-
postLoad
public void postLoad()Post load. -
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.- 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.- Returns:
- the boolean
-
setExpired
public void setExpired(boolean expired) Sets expired.- Parameters:
expired
- the expired
-
getExpirationDate
Gets expiration date.- Returns:
- the expiration date
-
setExpirationDate
Sets expiration date.- Parameters:
expirationDate
- the expiration date
-
getGoogleAuthenticatorSecret
Gets google authenticator secret.- Returns:
- the google authenticator secret
-
setGoogleAuthenticatorSecret
Sets google authenticator secret.- Parameters:
googleAuthenticatorSecret
- the google authenticator secret
-
getPasswordUpdatedDate
Gets password updated date.- Returns:
- the password updated date
-
setPasswordUpdatedDate
Sets password updated date.- Parameters:
passwordUpdatedDate
- the password updated 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
-
getUserDetailId
Gets user detail.- Returns:
- user detail id
-
setUserDetailId
Sets user detail id.- Parameters:
userDetailId
- user detail id
-
getUserRegistrationSourceType
Gets user registration source type.- Returns:
- the user registration source type
-
setUserRegistrationSourceType
public void setUserRegistrationSourceType(HvlOAuthUserRegistrationSourceType userRegistrationSourceType) Sets user registration source type.- Parameters:
userRegistrationSourceType
- the user registration source type
-
getUserLdap
Gets user ldap.- Returns:
- the user ldap
-
setUserLdap
Sets user ldap.- Parameters:
userLdap
- the user ldap
-
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
-
equals
- Overrides:
equals
in classtr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity<Long>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classtr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity<Long>
-