Package com.flowable.core.idm.api
Interface PlatformUser
- All Superinterfaces:
java.io.Serializable,org.flowable.idm.api.User
- All Known Subinterfaces:
PlatformUserEntity
- All Known Implementing Classes:
BasicPlatformUser,LdapPlatformUser,PlatformUserEntityImpl
public interface PlatformUser
extends org.flowable.idm.api.User
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and Type Method Description <T> TfindOrElse(java.lang.String name, java.lang.Class<T> clazz, T defaultValue)<T> TfindOrElseGet(java.lang.String name, java.lang.Class<T> clazz, java.util.function.Supplier<T> defaultValueSupplier)default java.lang.StringfindString(java.lang.String name)Find a string info with the given name.java.lang.StringgetAvatarId()Returns the optional avatar image ID, if this user has an avatar saved in their profile.java.util.DategetCreationTime()java.lang.StringgetCreatorId()java.util.List<PlatformIdentityInfo>getIdentityInfo()Returns the identity info properties of this user.java.lang.StringgetLanguage()Returns the language of this user.java.lang.StringgetPresence()Returns the current presence of the user.java.util.DategetPresenceTime()The time the current presence of the user was setjava.lang.StringgetState()Returns the state of this user.java.lang.StringgetSubState()Returns the sub state of this user.java.lang.StringgetSubType()java.lang.StringgetTheme()java.lang.StringgetType()The type of the user.java.lang.StringgetUpdaterId()java.util.DategetUpdateTime()java.lang.StringgetUserDefinitionKey()default booleanisActive()Returnstrueif this user is active,falseif it is deactivated,nullif cannot be determined because the state field is not available.default booleanisBot()Helper method for checking that the user is of typeUserTypes.BOTdefault booleanisExternalUser()Helper method for checking that the user is of typeUserTypes.EXTERNAL
-
Method Details
-
getType
java.lang.String getType()The type of the user. It is possible that a user does not have this set, in this case this is a normal non special user.- Returns:
- the type of the user
- See Also:
for known types
-
getSubType
java.lang.String getSubType() -
getUserDefinitionKey
java.lang.String getUserDefinitionKey() -
getCreatorId
java.lang.String getCreatorId() -
getCreationTime
java.util.Date getCreationTime() -
getUpdaterId
java.lang.String getUpdaterId() -
getUpdateTime
java.util.Date getUpdateTime() -
getState
java.lang.String getState()Returns the state of this user.- Returns:
- the state
-
getSubState
java.lang.String getSubState()Returns the sub state of this user.- Returns:
- the sub state
-
isActive
default boolean isActive()Returnstrueif this user is active,falseif it is deactivated,nullif cannot be determined because the state field is not available.- Returns:
trueif this user is active
-
getAvatarId
java.lang.String getAvatarId()Returns the optional avatar image ID, if this user has an avatar saved in their profile. This can be a content item ID- Returns:
- the optional avatar image ID
-
getPresence
java.lang.String getPresence()Returns the current presence of the user.- Returns:
- the presence of the user
- See Also:
for known states
-
getPresenceTime
java.util.Date getPresenceTime()The time the current presence of the user was set- Returns:
- the time the presence of the user was set
-
getLanguage
java.lang.String getLanguage()Returns the language of this user.- Returns:
- the language
-
getTheme
java.lang.String getTheme() -
getIdentityInfo
java.util.List<PlatformIdentityInfo> getIdentityInfo()Returns the identity info properties of this user.- Returns:
- the identity info properties
-
findOrElseGet
<T> T findOrElseGet(java.lang.String name, java.lang.Class<T> clazz, java.util.function.Supplier<T> defaultValueSupplier) -
findOrElse
<T> T findOrElse(java.lang.String name, java.lang.Class<T> clazz, T defaultValue) -
findString
default java.lang.String findString(java.lang.String name)Find a string info with the given name.- Parameters:
name- the name of the info- Returns:
- the value for the given
name, ornullif such info does not exist
-
isExternalUser
default boolean isExternalUser()Helper method for checking that the user is of typeUserTypes.EXTERNAL- Returns:
trueif the user is of typeUserTypes.EXTERNAL,falseotherwise
-
isBot
default boolean isBot()Helper method for checking that the user is of typeUserTypes.BOT- Returns:
trueif the user is of typeUserTypes.BOT,falseotherwise
-