Class User

    • Field Detail

      • USER_EMAIL_CONSTRAINT_NAME

        public static final java.lang.String USER_EMAIL_CONSTRAINT_NAME
        See Also:
        Constant Field Values
      • USER_USERNAME_CONSTRAINT_NAME

        public static final java.lang.String USER_USERNAME_CONSTRAINT_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • User

        public User()
        Construct an instance of User with no properties set.
      • User

        public User​(java.lang.String username,
                    java.lang.String email,
                    java.lang.String password,
                    java.lang.String firstName,
                    java.lang.String lastName,
                    java.lang.String phoneNumber)
        Construct an instance of User with all properties (except identifier) set.
        Parameters:
        username - the username for this User.
        email - the e-mail for this User.
        password - the password for this User.
        firstName - the first name of this User.
        lastName - the last name of this User.
        phoneNumber - the phone number of this User.
      • User

        public User​(java.lang.Long id,
                    java.lang.String username,
                    java.lang.String email,
                    java.lang.String password,
                    java.lang.String firstName,
                    java.lang.String lastName,
                    java.lang.String phoneNumber)
        Construct an instance of User with all properties set.
        Parameters:
        id - the identifier for this User.
        username - the username for this User.
        email - the e-mail for this User.
        password - the password for this User.
        firstName - the first name of this User.
        lastName - the last name of this User.
        phoneNumber - the phone number of this User.
    • Method Detail

      • getId

        public java.lang.Long getId()
        Description copied from interface: IridaThing
        Get the numerical identifier for this object
        Specified by:
        getId in interface IridaThing
        Specified by:
        getId in interface Timestamped<java.lang.Long>
        Returns:
        the numerical identifier for the object
      • setId

        public void setId​(java.lang.Long id)
        Description copied from interface: MutableIridaThing
        Set the numerical identifier for this object
        Specified by:
        setId in interface MutableIridaThing
        Parameters:
        id - The ID to set
      • compareTo

        public int compareTo​(User u)
        Specified by:
        compareTo in interface java.lang.Comparable<User>
      • getUsername

        public java.lang.String getUsername()
        Specified by:
        getUsername in interface org.springframework.security.core.userdetails.UserDetails
      • setUsername

        public void setUsername​(java.lang.String username)
      • getEmail

        public java.lang.String getEmail()
      • setEmail

        public void setEmail​(java.lang.String email)
      • getPassword

        public java.lang.String getPassword()
        Specified by:
        getPassword in interface org.springframework.security.core.userdetails.UserDetails
      • setPassword

        public void setPassword​(java.lang.String password)
      • getFirstName

        public java.lang.String getFirstName()
      • setFirstName

        public void setFirstName​(java.lang.String firstName)
      • getLastName

        public java.lang.String getLastName()
      • setLastName

        public void setLastName​(java.lang.String lastName)
      • getPhoneNumber

        public java.lang.String getPhoneNumber()
      • setPhoneNumber

        public void setPhoneNumber​(java.lang.String phoneNumber)
      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: IridaThing
        Get a human readable label for this object.
        Specified by:
        getLabel in interface IridaThing
        Returns:
        a human-readable label for the object.
      • getAuthorities

        public java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
        Specified by:
        getAuthorities in interface org.springframework.security.core.userdetails.UserDetails
      • isAccountNonExpired

        public boolean isAccountNonExpired()
        Specified by:
        isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails
      • isAccountNonLocked

        public boolean isAccountNonLocked()
        Specified by:
        isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails
      • isCredentialsNonExpired

        public boolean isCredentialsNonExpired()
        Specified by:
        isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface org.springframework.security.core.userdetails.UserDetails
      • setEnabled

        public void setEnabled​(boolean valid)
      • getModifiedDate

        public java.util.Date getModifiedDate()
        Description copied from interface: MutableIridaThing
        Get the date that this object was last modified
        Specified by:
        getModifiedDate in interface MutableIridaThing
        Returns:
        Date object of the modified date
      • setModifiedDate

        public void setModifiedDate​(java.util.Date modifiedDate)
        Description copied from interface: MutableIridaThing
        Set the modification time of this object
        Specified by:
        setModifiedDate in interface MutableIridaThing
        Parameters:
        modifiedDate - The date where this object was modified
      • getSystemRole

        public Role getSystemRole()
      • setCredentialsNonExpired

        public void setCredentialsNonExpired​(boolean credentialsNonExpired)
      • getLocale

        public java.lang.String getLocale()
      • setLocale

        public void setLocale​(java.lang.String locale)
      • getCreatedDate

        public java.util.Date getCreatedDate()
        Description copied from interface: Timestamped
        Get the created date of the object
        Specified by:
        getCreatedDate in interface Timestamped<java.lang.Long>
        Returns:
        A Date object of the created date
      • setSystemRole

        public void setSystemRole​(Role systemRole)
      • getLastLogin

        public java.util.Date getLastLogin()