Package org.craftercms.profile.api
Class Profile
- java.lang.Object
-
- org.craftercms.profile.api.Profile
-
public class Profile extends Object
Representation of a user.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description Profile()
-
Method Summary
-
-
-
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)
-
hasAnyRole
public boolean hasAnyRole(Collection<String> roles)
-
getAttribute
public <T> T getAttribute(String name)
-
increaseFailedLoginAttempts
public void increaseFailedLoginAttempts()
-
-