public class User extends SecureIdentity implements Buildable<User>, _InternalJSONColumn, Tenantable
Modifier and Type | Field and Description |
---|---|
boolean |
active |
java.time.LocalDate |
birthDate |
UUID |
cleanSpeakId |
Map<String,Object> |
data |
String |
email |
java.time.ZonedDateTime |
expiry |
String |
firstName |
String |
fullName |
URI |
imageUrl |
java.time.ZonedDateTime |
insertInstant |
String |
lastName |
java.time.ZonedDateTime |
lastUpdateInstant |
String |
middleName |
String |
mobilePhone |
String |
parentEmail |
List<Locale> |
preferredLanguages |
UUID |
tenantId |
java.time.ZoneId |
timezone |
UserTwoFactorConfiguration |
twoFactor |
breachedPasswordLastCheckedInstant, breachedPasswordStatus, connectorId, encryptionScheme, factor, id, lastLoginInstant, password, passwordChangeReason, passwordChangeRequired, passwordLastUpdateInstant, salt, uniqueUsername, username, usernameStatus, verified
Modifier and Type | Method and Description |
---|---|
void |
addMemberships(GroupMember member)
Safely adds a membership to a user.
|
boolean |
equals(Object o) |
int |
getAge() |
GroupMember |
getGroupMemberForGroup(UUID id) |
String |
getLogin() |
List<GroupMember> |
getMemberships() |
String |
getName() |
UserRegistration |
getRegistrationForApplication(UUID id) |
List<UserRegistration> |
getRegistrations() |
Set<String> |
getRoleNamesForApplication(UUID id) |
UUID |
getTenantId() |
int |
hashCode() |
boolean |
hasUserData()
Return true if user data is provided for this user or any registrations.
|
String |
lookupEmail()
Attempt to retrieve the users email address first by checking the top level and then in user data.
|
Locale |
lookupPreferredLanguage(UUID applicationId) |
void |
normalize()
Normalizes all of the fields.
|
void |
removeMembershipById(UUID groupId) |
User |
secure()
Clear out sensitive data.
|
User |
sort() |
String |
toString() |
boolean |
twoFactorEnabled() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDataToDatabase, setDataFromDatabase
public boolean active
public java.time.LocalDate birthDate
public UUID cleanSpeakId
public String email
public java.time.ZonedDateTime expiry
public String firstName
public String fullName
public URI imageUrl
public java.time.ZonedDateTime insertInstant
public String lastName
public java.time.ZonedDateTime lastUpdateInstant
public String middleName
public String mobilePhone
public String parentEmail
public UUID tenantId
public java.time.ZoneId timezone
public UserTwoFactorConfiguration twoFactor
public User()
public User(User other)
public void addMemberships(GroupMember member)
member
- The member.public boolean equals(Object o)
equals
in class SecureIdentity
public int getAge()
public GroupMember getGroupMemberForGroup(UUID id)
public String getLogin()
public List<GroupMember> getMemberships()
public String getName()
public UserRegistration getRegistrationForApplication(UUID id)
public List<UserRegistration> getRegistrations()
public UUID getTenantId()
getTenantId
in interface Tenantable
public boolean hasUserData()
public int hashCode()
hashCode
in class SecureIdentity
public String lookupEmail()
public void normalize()
public void removeMembershipById(UUID groupId)
public User secure()
public User sort()
public boolean twoFactorEnabled()
Copyright © 2021. All rights reserved.