public interface PlatformUser extends User
Modifier and Type | Method and Description |
---|---|
<T> T |
findOrElse(String name,
Class<T> clazz,
T defaultValue) |
<T> T |
findOrElseGet(String name,
Class<T> clazz,
Supplier<T> defaultValueSupplier) |
default String |
findString(String name)
Find a string info with the given name.
|
String |
getAvatarId()
Returns the optional avatar image ID, if this user has an avatar saved in their profile.
|
Date |
getCreationTime() |
String |
getCreatorId() |
List<PlatformIdentityInfo> |
getIdentityInfo()
Returns the identity info properties of this user.
|
String |
getLanguage()
Returns the language of this user.
|
String |
getPresence()
Returns the current presence of the user.
|
Date |
getPresenceTime()
The time the current presence of the user was set
|
String |
getState()
Returns the state of this user.
|
String |
getSubState()
Returns the sub state of this user.
|
String |
getSubType() |
String |
getTheme() |
String |
getType()
The type of the user.
|
String |
getUpdaterId() |
Date |
getUpdateTime() |
String |
getUserDefinitionKey() |
default boolean |
isActive()
Returns
true if this user is active, false if it is deactivated, null if cannot be determined
because the state field is not available. |
default boolean |
isBot()
Helper method for checking that the user is of type
UserTypes.BOT |
default boolean |
isExternalUser()
Helper method for checking that the user is of type
UserTypes.EXTERNAL |
getDisplayName, getEmail, getFirstName, getId, getLastName, getPassword, getTenantId, isPictureSet, setDisplayName, setEmail, setFirstName, setId, setLastName, setPassword, setTenantId
String getType()
for known types
String getSubType()
String getUserDefinitionKey()
String getCreatorId()
Date getCreationTime()
String getUpdaterId()
Date getUpdateTime()
String getState()
String getSubState()
default boolean isActive()
true
if this user is active, false
if it is deactivated, null
if cannot be determined
because the state field is not available.true
if this user is activeString getAvatarId()
String getPresence()
for known states
Date getPresenceTime()
String getLanguage()
String getTheme()
List<PlatformIdentityInfo> getIdentityInfo()
default String findString(String name)
name
- the name of the infoname
, or null
if such info does not existdefault boolean isExternalUser()
UserTypes.EXTERNAL
true
if the user is of type UserTypes.EXTERNAL
, false
otherwisedefault boolean isBot()
UserTypes.BOT
true
if the user is of type UserTypes.BOT
, false
otherwise