Class UserEntity

    • Field Detail

      • revision

        protected int revision
      • firstName

        protected String firstName
      • lastName

        protected String lastName
      • email

        protected String email
      • password

        protected String password
      • newPassword

        protected String newPassword
      • lockExpirationTime

        protected Date lockExpirationTime
      • attempts

        protected int attempts
    • Constructor Detail

      • UserEntity

        public UserEntity()
      • UserEntity

        public UserEntity​(String id)
    • Method Detail

      • getPersistentState

        public Object getPersistentState()
        Description copied from interface: DbEntity
        Returns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.
        Specified by:
        getPersistentState in interface DbEntity
      • setFirstName

        public void setFirstName​(String firstName)
        Specified by:
        setFirstName in interface User
      • setLastName

        public void setLastName​(String lastName)
        Specified by:
        setLastName in interface User
      • setEmail

        public void setEmail​(String email)
        Specified by:
        setEmail in interface User
      • setPassword

        public void setPassword​(String password)
        Specified by:
        setPassword in interface User
      • getSalt

        public String getSalt()
      • setSalt

        public void setSalt​(String salt)
      • setDbPassword

        public void setDbPassword​(String password)
        Special setter for MyBatis.
      • getLockExpirationTime

        public Date getLockExpirationTime()
      • setLockExpirationTime

        public void setLockExpirationTime​(Date lockExpirationTime)
      • getAttempts

        public int getAttempts()
      • setAttempts

        public void setAttempts​(int attempts)
      • encryptPassword

        public void encryptPassword()
      • generateSalt

        protected String generateSalt()
      • checkPasswordAgainstPolicy

        public boolean checkPasswordAgainstPolicy()
      • hasNewPassword

        public boolean hasNewPassword()