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<Long>>, org.hibernate.engine.spi.Managed, org.hibernate.engine.spi.ManagedMappedSuperclass, org.hibernate.engine.spi.PrimeAmongSecondarySupertypes, 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 Details

    • TABLE_NAME

      public static final String TABLE_NAME
      The constant TABLE_NAME.
      See Also:
    • USERNAME_FIELD_COLUMN

      public static final String USERNAME_FIELD_COLUMN
      The constant USERNAME_FIELD_COLUMN.
      See Also:
    • PASSWORD_FIELD_COLUMN

      public static final String PASSWORD_FIELD_COLUMN
      The constant PASSWORD_FIELD_COLUMN.
      See Also:
    • SYSTEM_FIELD_COLUMN

      public static final String SYSTEM_FIELD_COLUMN
      The constant SYSTEM_FIELD_COLUMN.
      See Also:
    • PASSWORD_MUST_CHANGE_FIELD_COLUMN

      public static final String PASSWORD_MUST_CHANGE_FIELD_COLUMN
      The constant PASSWORD_MUST_CHANGE_FIELD_COLUMN.
      See Also:
    • GOOGLE_AUTHENTICATOR_ENABLED_COLUMN

      public static final String GOOGLE_AUTHENTICATOR_ENABLED_COLUMN
      The constant GOOGLE_AUTHENTICATOR_ENABLED_COLUMN.
      See Also:
    • FAILED_LOGIN_COUNT_FIELD_COLUMN

      public static final String FAILED_LOGIN_COUNT_FIELD_COLUMN
      The constant FAILED_LOGIN_COUNT_FIELD_COLUMN.
      See Also:
    • LOCKED_DATE_FIELD_COLUMN

      public static final String LOCKED_DATE_FIELD_COLUMN
      The constant LOCKED_DATE_FIELD_COLUMN.
      See Also:
    • LOCK_DESCRIPTION_FIELD_COLUMN

      public static final String LOCK_DESCRIPTION_FIELD_COLUMN
      The constant LOCK_DESCRIPTION_FIELD_COLUMN.
      See Also:
    • DESCRIPTION_FIELD_COLUMN

      public static final String DESCRIPTION_FIELD_COLUMN
      The constant DESCRIPTION_FIELD_COLUMN.
      See Also:
    • EXPIRATION_DATE_FIELD_COLUMN

      public static final String EXPIRATION_DATE_FIELD_COLUMN
      The constant EXPIRATION_DATE_FIELD_COLUMN.
      See Also:
    • PASSWORD_UPDATED_DATE_FIELD_COLUMN

      public static final String PASSWORD_UPDATED_DATE_FIELD_COLUMN
      The constant PASSWORD_UPDATED_DATE_FIELD_COLUMN.
      See Also:
    • USER_DETAIL_ID_FIELD_COLUMN

      public static final String USER_DETAIL_ID_FIELD_COLUMN
      The constant USER_DETAIL_ID_FIELD_COLUMN.
      See Also:
    • USER_REGISTRATION_SOURCE_TYPE_ID_FIELD_COLUMN

      public static final String USER_REGISTRATION_SOURCE_TYPE_ID_FIELD_COLUMN
      The constant USER_REGISTRATION_SOURCE_TYPE_ID_FIELD_COLUMN.
      See Also:
    • USER_LDAP_ID_FIELD_COLUMN

      public static final String USER_LDAP_ID_FIELD_COLUMN
      The constant USER_LDAP_ID_FIELD_COLUMN.
      See Also:
    • GOOGLE_AUTHENTICATOR_SECRET_FIELD_COLUMN

      public static final String GOOGLE_AUTHENTICATOR_SECRET_FIELD_COLUMN
      The constant GOOGLE_AUTHENTICATOR_SECRET_FIELD_COLUMN.
      See Also:
    • UUID_UNIQUE_KEY

      public static final String UUID_UNIQUE_KEY
      The constant UUID_UNIQUE_KEY.
      See Also:
    • USERNAME_TENANT_UNIQUE_KEY

      public static final String USERNAME_TENANT_UNIQUE_KEY
      The constant USERNAME_TENANT_UNIQUE_KEY.
      See Also:
    • USER_LDAP_ID_FOREIGN_KEY

      public static final String USER_LDAP_ID_FOREIGN_KEY
      The constant USER_LDAP_ID_FOREIGN_KEY.
      See Also:
    • UUID_INDEX

      public static final String UUID_INDEX
      The constant UUID_INDEX.
      See Also:
    • USERNAME_INDEX

      public static final String USERNAME_INDEX
      The constant USERNAME_INDEX.
      See Also:
    • TENANT_INDEX

      public static final String TENANT_INDEX
      The constant TENANT_INDEX.
      See Also:
    • USERNAME_FIELD

      public static final String USERNAME_FIELD
      The constant USERNAME_FIELD.
      See Also:
  • Constructor Details

    • HvlOAuthBaseUser

      public HvlOAuthBaseUser()
  • Method Details

    • postLoad

      public void postLoad()
      Post load.
    • 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.
      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.
      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
    • setExpirationDate

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

      public String getGoogleAuthenticatorSecret()
      Gets google authenticator secret.
      Returns:
      the google authenticator secret
    • setGoogleAuthenticatorSecret

      public void setGoogleAuthenticatorSecret(String googleAuthenticatorSecret)
      Sets google authenticator secret.
      Parameters:
      googleAuthenticatorSecret - the google authenticator secret
    • 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
    • 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

      public Long getUserDetailId()
      Gets user detail.
      Returns:
      user detail id
    • setUserDetailId

      public void setUserDetailId(Long userDetailId)
      Sets user detail id.
      Parameters:
      userDetailId - user detail id
    • getDescription

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

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

      public HvlOAuthUserRegistrationSourceType 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

      public HvlOAuthUserLdap getUserLdap()
      Gets user ldap.
      Returns:
      the user ldap
    • setUserLdap

      public void setUserLdap(HvlOAuthUserLdap userLdap)
      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
    • getUserLdapId

      public Long getUserLdapId()
      Gets user ldap id.
      Returns:
      the user ldap id
    • setUserLdapId

      public void setUserLdapId(Long userLdapId)
      Sets user ldap id.
      Parameters:
      userLdapId - the user ldap id
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class tr.com.havelsan.javarch.domain.model.entity.HvlSimpleEntity<Long>