Class UserEntity

    • Field Detail

      • id

        protected java.lang.String id
      • revision

        protected int revision
      • firstName

        protected java.lang.String firstName
      • lastName

        protected java.lang.String lastName
      • email

        protected java.lang.String email
      • password

        protected java.lang.String password
      • newPassword

        protected java.lang.String newPassword
      • salt

        protected java.lang.String salt
      • lockExpirationTime

        protected java.util.Date lockExpirationTime
      • attempts

        protected int attempts
    • Constructor Detail

      • UserEntity

        public UserEntity()
      • UserEntity

        public UserEntity​(java.lang.String id)
    • Method Detail

      • getPersistentState

        public java.lang.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
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface DbEntity
        Specified by:
        getId in interface User
      • setId

        public void setId​(java.lang.String id)
        Specified by:
        setId in interface DbEntity
        Specified by:
        setId in interface User
      • getFirstName

        public java.lang.String getFirstName()
        Specified by:
        getFirstName in interface User
      • setFirstName

        public void setFirstName​(java.lang.String firstName)
        Specified by:
        setFirstName in interface User
      • getLastName

        public java.lang.String getLastName()
        Specified by:
        getLastName in interface User
      • setLastName

        public void setLastName​(java.lang.String lastName)
        Specified by:
        setLastName in interface User
      • getEmail

        public java.lang.String getEmail()
        Specified by:
        getEmail in interface User
      • setEmail

        public void setEmail​(java.lang.String email)
        Specified by:
        setEmail in interface User
      • getPassword

        public java.lang.String getPassword()
        Specified by:
        getPassword in interface User
      • setPassword

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

        public java.lang.String getSalt()
      • setSalt

        public void setSalt​(java.lang.String salt)
      • setDbPassword

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

        public java.util.Date getLockExpirationTime()
      • setLockExpirationTime

        public void setLockExpirationTime​(java.util.Date lockExpirationTime)
      • getAttempts

        public int getAttempts()
      • setAttempts

        public void setAttempts​(int attempts)
      • encryptPassword

        public void encryptPassword()
      • encryptPassword

        protected java.lang.String encryptPassword​(java.lang.String password,
                                                   java.lang.String salt)
      • generateSalt

        protected java.lang.String generateSalt()
      • checkPasswordAgainstPolicy

        public boolean checkPasswordAgainstPolicy()
      • hasNewPassword

        public boolean hasNewPassword()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object