Class Profile

java.lang.Object
org.craftercms.profile.api.Profile

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

    • Profile

      public Profile()
  • Method Details

    • 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)
    • hasAnyRole

      public boolean hasAnyRole(Collection<String> roles)
    • getRoles

      public Set<String> getRoles()
    • setRoles

      public void setRoles(Set<String> roles)
    • getAttributes

      public Map<String,Object> getAttributes()
    • getAttribute

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

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

      public void setAttribute(String name, Object value)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • increaseFailedLoginAttempts

      public void increaseFailedLoginAttempts()