public class User extends CommunoteEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
User.Factory
Constructs new instances of
User. |
| Constructor and Description |
|---|
User() |
| Modifier and Type | Method and Description |
|---|---|
String |
attributesToString()
Builds a string showing the current attribute values
|
boolean |
equals(Object object)
This entity does not have any identifiers but since it extends the
com.communote.server.persistence.user.KenmeiEntityImpl class it will simply
delegate the call up there. |
String |
getAlias()
Return the alias either of group or of user
|
String |
getAuthenticationToken()
A token, which can be used for authentication processes.
|
String |
getEmail()
The email of the user
|
Set<ExternalUserAuthentication> |
getExternalAuthentications() |
Set<AuthenticationFailedStatus> |
getFailedAuthentication() |
Set<GlobalId> |
getFollowedItems() |
GlobalId |
getFollowId() |
String |
getLanguageCode() |
Locale |
getLanguageLocale() |
Timestamp |
getLastLogin() |
String |
getPassword() |
UserProfile |
getProfile() |
Set<UserProperty> |
getProperties()
Properties
|
UserRole[] |
getRoles() |
UserStatus |
getStatus() |
Timestamp |
getStatusChanged() |
Set<UserAuthority> |
getUserAuthorities() |
boolean |
hasExternalAuthentication(String externalSystemId)
Test whether the user has an external authentication with the given ID.
|
int |
hashCode()
This entity does not have any identifiers but since it extends the
com.communote.server.persistence.user.KenmeiEntityImpl class it will simply
delegate the call up there. |
boolean |
hasRole(UserRole role)
Test whether the user has the given role.
|
boolean |
hasStatus(UserStatus status) |
boolean |
isActivated() |
boolean |
isReminderMailSent() |
boolean |
isTermsAccepted() |
void |
setAlias(String alias) |
void |
setAuthenticationToken(String authenticationToken) |
void |
setEmail(String email) |
void |
setExternalAuthentications(Set<ExternalUserAuthentication> externalAuthentications) |
void |
setFailedAuthentication(Set<AuthenticationFailedStatus> failedAuthentication) |
void |
setFollowedItems(Set<GlobalId> followedItems) |
void |
setLanguageCode(String languageCode) |
void |
setLanguageLocale(Locale languageLocale) |
void |
setLastLogin(Timestamp lastLogin) |
void |
setPassword(String password) |
void |
setProfile(UserProfile profile) |
void |
setProperties(Set<UserProperty> properties) |
void |
setReminderMailSent(boolean reminderMailSent) |
void |
setStatus(UserStatus status) |
void |
setStatusChanged(Timestamp statusChanged) |
void |
setTermsAccepted(boolean termsAccepted) |
void |
setUserAuthorities(Set<UserAuthority> userAuthorities) |
getGlobalId, getGroups, getId, getMemberships, getTags, setGlobalId, setGroups, setId, setMemberships, setTagspublic String attributesToString()
attributesToString in class CommunoteEntitypublic boolean equals(Object object)
com.communote.server.persistence.user.KenmeiEntityImpl class it will simply
delegate the call up there.equals in class CommunoteEntityCommunoteEntity.equals(Object)public String getAlias()
CommunoteEntityReturn the alias either of group or of user
getAlias in class CommunoteEntitypublic String getAuthenticationToken()
A token, which can be used for authentication processes. The format is CREATION_TIME:TOKEN, where CREATION_TIME is the timestamp in millis. This token should not be used directly, instead the AuthorizationTokenManagement should be used.
public String getEmail()
The email of the user
public Set<ExternalUserAuthentication> getExternalAuthentications()
public Set<AuthenticationFailedStatus> getFailedAuthentication()
public GlobalId getFollowId()
getFollowId in interface FollowablegetFollowId in class CommunoteEntitypublic String getLanguageCode()
Locale.ENGLISH as default.public Locale getLanguageLocale()
public Timestamp getLastLogin()
public String getPassword()
public UserProfile getProfile()
public Set<UserProperty> getProperties()
CommunoteEntityProperties
getProperties in interface PropertyablegetProperties in class CommunoteEntitypublic UserRole[] getRoles()
public UserStatus getStatus()
public Timestamp getStatusChanged()
public Set<UserAuthority> getUserAuthorities()
public boolean hasExternalAuthentication(String externalSystemId)
externalSystemId - the ID of the external systempublic int hashCode()
com.communote.server.persistence.user.KenmeiEntityImpl class it will simply
delegate the call up there.hashCode in class CommunoteEntityCommunoteEntity.hashCode()public boolean hasRole(UserRole role)
role - the role to testpublic boolean hasStatus(UserStatus status)
public boolean isActivated()
public boolean isReminderMailSent()
public boolean isTermsAccepted()
public void setAlias(String alias)
public void setAuthenticationToken(String authenticationToken)
public void setEmail(String email)
public void setExternalAuthentications(Set<ExternalUserAuthentication> externalAuthentications)
public void setFailedAuthentication(Set<AuthenticationFailedStatus> failedAuthentication)
public void setLanguageCode(String languageCode)
public void setLanguageLocale(Locale languageLocale)
public void setLastLogin(Timestamp lastLogin)
public void setPassword(String password)
public void setProfile(UserProfile profile)
public void setProperties(Set<UserProperty> properties)
public void setReminderMailSent(boolean reminderMailSent)
public void setStatus(UserStatus status)
public void setStatusChanged(Timestamp statusChanged)
public void setTermsAccepted(boolean termsAccepted)
public void setUserAuthorities(Set<UserAuthority> userAuthorities)
Copyright © 2019 Communote team. All rights reserved.