Class JpaUser

    • Constructor Detail

    • Method Detail

      • getUsername

        public String getUsername()
        Description copied from interface: User
        Gets the User Name for this user. This field is required, and should never be empty.
        Specified by:
        getUsername in interface User
        Returns:
        the user name.
      • setUsername

        public void setUsername​(String name)
        Description copied from interface: User
        Sets the User Name for this user. This field is required, and should never be empty.
        Specified by:
        setUsername in interface User
        Parameters:
        name - the user name.
      • getFullName

        public String getFullName()
        Description copied from interface: User
        Gets the Full Name for this user. This field is required, and should never be empty.
        Specified by:
        getFullName in interface User
        Returns:
        the full name.
      • setFullName

        public void setFullName​(String name)
        Description copied from interface: User
        Sets the Full Name for this user. This field is required, and should never be empty.
        Specified by:
        setFullName in interface User
        Parameters:
        name - the full name.
      • getEmail

        public String getEmail()
        Description copied from interface: User
        Gets the email address for this user. This field is required, and should never be empty.
        Specified by:
        getEmail in interface User
        Returns:
        the email address.
      • setEmail

        public void setEmail​(String address)
        Description copied from interface: User
        Sets the email address for this user. This field is required, and should never be empty.
        Specified by:
        setEmail in interface User
        Parameters:
        address - the email address.
      • getPassword

        public String getPassword()
        Description copied from interface: User
        Gets the Raw (unencoded) Password. Used only on password change requests.

        Notes for User Providers

        1. Providers need to look for a value in here to indicate if the user is intending to change their password.
        2. The providers of this interface need to use this field, encode the password, place it's value into the encodedPassword field, and clear out the raw unencoded password field.
        3. This field should never be stored on disk.
        Specified by:
        getPassword in interface User
        Returns:
        the raw encoded password.
      • setPassword

        public void setPassword​(String rawPassword)
        Description copied from interface: User
        Sets the raw (unencoded) password for this user.
        Specified by:
        setPassword in interface User
        Parameters:
        rawPassword - the raw unencoded password for this user.
        See Also:
        User.getPassword()
      • getLastPasswordChange

        public Date getLastPasswordChange()
        Description copied from interface: User
        Gets the Date of the Last Password Change. Used by password management policies to enforce password expiration rules.
        Specified by:
        getLastPasswordChange in interface User
        Returns:
        the date of the last password change.
      • setLastPasswordChange

        public void setLastPasswordChange​(Date passwordChangeDate)
        Description copied from interface: User
        Sets the Last Password Change Date. This field is populated by the UserManager process.
        Specified by:
        setLastPasswordChange in interface User
        Parameters:
        passwordChangeDate - the date that the last password change occured.
      • getPreviousEncodedPasswords

        public List<StringgetPreviousEncodedPasswords()
        Description copied from interface: User
        Gets the list of previous password (in encoded format). Used by password management policies to enforce password reuse rules.
        Specified by:
        getPreviousEncodedPasswords in interface User
        Returns:
        the list of String objects. Represents previous passwords (in encoded format).
      • isPermanent

        public boolean isPermanent()
        Description copied from interface: User
        Gets the flag indicating if this user is a permanent user or not. Usually Root / Admin / Guest users are flagged as such.
        Specified by:
        isPermanent in interface User
      • setPermanent

        public void setPermanent​(boolean permanent)
        Description copied from interface: User
        Sets the permanent flag for this user. Users such as Root / Admin / Guest are typically flagged as permanent.
        Specified by:
        setPermanent in interface User
        Parameters:
        permanent - true if permanent.
      • isLocked

        public boolean isLocked()
        Description copied from interface: User
        Determines if this user account is locked from use or not. This state is set from an administrative point of view, or due to excessive failed login attempts.
        Specified by:
        isLocked in interface User
        Returns:
        true if account is locked.
      • setLocked

        public void setLocked​(boolean locked)
        Description copied from interface: User
        Sets the locked state of this account.
        Specified by:
        setLocked in interface User
        Parameters:
        locked - true if account is to be locked.
      • isPasswordChangeRequired

        public boolean isPasswordChangeRequired()
        Description copied from interface: User
        Determines if this user account must change their password on next login.
        Specified by:
        isPasswordChangeRequired in interface User
        Returns:
        true if user must change password on next login.
      • setPasswordChangeRequired

        public void setPasswordChangeRequired​(boolean changeRequired)
        Description copied from interface: User
        Sets the flag to indicate if this user must change their password on next login.
        Specified by:
        setPasswordChangeRequired in interface User
        Parameters:
        changeRequired - true if user must change password on next login.
      • isValidated

        public boolean isValidated()
        Description copied from interface: User
        Gets the flag indicating if this user has been validated (or not)
        Specified by:
        isValidated in interface User
        Returns:
        true if validated.
      • setValidated

        public void setValidated​(boolean valid)
        Description copied from interface: User
        Sets the flag indicating if this user has been validated (or not)
        Specified by:
        setValidated in interface User
        Parameters:
        valid - true if validated.
      • getLastLoginDate

        public Date getLastLoginDate()
        Description copied from interface: User
        Get the Last Successful Login Date for this account.
        Specified by:
        getLastLoginDate in interface User
        Returns:
        the date of the last successful login
      • getUserManagerId

        public String getUserManagerId()
        Description copied from interface: User
        as we can user multiple userManagers implementation we must track from which one this one comes.
        Specified by:
        getUserManagerId in interface User
        Returns:
        userManager id