Class Profile


  • public class Profile
    extends Object
    Representation of a user.
    Author:
    avasquez
    • Constructor Detail

      • Profile

        public Profile()
    • Method Detail

      • getId

        public org.bson.types.ObjectId getId()
      • setId

        public void setId​(org.bson.types.ObjectId id)
      • getUsername

        public String getUsername()
      • setUsername

        public void setUsername​(String username)
      • getPassword

        public String getPassword()
      • setPassword

        public void setPassword​(String password)
      • getEmail

        public String getEmail()
      • setEmail

        public void setEmail​(String email)
      • isVerified

        public boolean isVerified()
      • setVerified

        public void setVerified​(boolean verified)
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • getCreatedOn

        public Date getCreatedOn()
      • setCreatedOn

        public void setCreatedOn​(Date createdOn)
      • getLastModified

        public Date getLastModified()
      • setLastModified

        public void setLastModified​(Date lastModified)
      • getTenant

        public String getTenant()
      • setTenant

        public void setTenant​(String tenant)
      • hasRole

        public boolean hasRole​(String role)
      • getFailedLoginAttempts

        public int getFailedLoginAttempts()
      • setFailedLoginAttempts

        public void setFailedLoginAttempts​(int failedLoginAttempts)
      • getLastFailedLogin

        public Date getLastFailedLogin()
      • setLastFailedLogin

        public void setLastFailedLogin​(Date lastFailedLogin)
      • hasAnyRole

        public boolean hasAnyRole​(String... roles)
      • setRoles

        public void setRoles​(Set<String> roles)
      • getAttribute

        public <T> T getAttribute​(String name)
      • setAttributes

        public void setAttributes​(Map<String,​Object> attributes)
      • setAttribute

        public void setAttribute​(String name,
                                 Object value)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • increaseFailedLoginAttempts

        public void increaseFailedLoginAttempts()