Package com.flowable.core.idm.api
Interface PlatformIdentityService
- All Superinterfaces:
IdmIdentityService
- All Known Implementing Classes:
BaseIdmIdentityServiceImpl
,IdmIdentityServiceImpl
,LdapIdmIdentityService
,ReadOnlyIdmIdentityService
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkAccessToken
(String tokenId, String tokenValue) Check if the access token with the given id is valid for the given valueDeprecated.createNewGroupBuilder
(String groupId) createNewUserBuilder
(String userId) Create user builder for a new user with iduserId
.Create a builder for updating or creating a platform identity info.Create a query for querying platform identity infos.createProperty
(String name, String value) createUpdateGroupBuilder
(String groupId) createUpdateUserBuilder
(String userId) default void
deactivateUser
(String userId, String newSubState) Deprecated.usesetUserStateAndSubState(String, String, String)
instead with stateUserStates.INACTIVE
void
deleteAccessToken
(String tokenId) void
Delete the platform identity info entry for the given idvoid
Delete all platform identity info entries of the uservoid
deletePlatformIdentityInfoByUserIdAndTenantId
(String userId, String tenantId) Delete all platform identity info entries of the user in the given tenantvoid
deleteProperty
(String name) findAccessToken
(String tokenId) findIdentityInfoByUserIdAndName
(String userId, String name) Deprecated.findPlatformGroupById
(String groupId) Deprecated.usercreatePlatformGroupQuery()
insteadfindPlatformGroupsForUser
(String userId) Deprecated.usecreatePlatformGroupQuery()
withPlatformGroupQuery.groupMember(String)
instead.findPlatformUserById
(String userId) Deprecated.usecreatePlatformUserQuery()
insteadfindPropertyByName
(String name) Find the unique tenant ids<T> Optional<T>
getPlatformUserInfo
(String userId, String infoName, Class<T> infoClass) Deprecated.default void
reactivateUser
(String userId, String newSubState) Deprecated.usesetUserStateAndSubState(String, String, String)
instead with stateUserStates.ACTIVE
void
setPlatformUserInfo
(String userId, String infoName, Object value) Deprecated.usecreatePlatformIdentityInfoBuilder()
insteadvoid
setUserDefinitionById
(String userId, String userDefinitionId) Update the user definition of the provided user.void
setUserDefinitionByKey
(String userId, String userDefinitionKey, String tenantId) Update the user definition of the provided user.default void
setUserState
(String userId, String state) Set the state of this user object.void
setUserStateAndSubState
(String userId, String state, String subState) Update the state and/or subState of the provided user.void
setUserStateAndSubState
(String userId, String state, String subState, String tenantId) Update the state and/or subState of the provided user.default void
setUserSubState
(String userId, String subState) Set the sub state of this user object.void
updateProperty
(IdmProperty idmProperty) void
updateUserPresence
(String userId, String presence) Deprecated.useupdateUserPresence(String, String, String)
insteadvoid
updateUserPresence
(String userId, String tenantId, String presence) Updates the presence status of the user in the given tenantMethods inherited from interface org.flowable.idm.api.IdmIdentityService
addGroupPrivilegeMapping, addUserPrivilegeMapping, checkPassword, createGroupQuery, createMembership, createNativeGroupQuery, createNativeTokenQuery, createNativeUserQuery, createPrivilege, createPrivilegeQuery, createTokenQuery, createUserQuery, deleteGroup, deleteGroupPrivilegeMapping, deleteMembership, deletePrivilege, deleteToken, deleteUser, deleteUserInfo, deleteUserPrivilegeMapping, getGroupsWithPrivilege, getPrivilegeMappingsByPrivilegeId, getUserInfo, getUserInfoKeys, getUserPicture, getUsersWithPrivilege, newGroup, newToken, newUser, saveGroup, saveToken, saveUser, setAuthenticatedUserId, setUserInfo, setUserPicture, updateUserPassword
-
Method Details
-
createNewUserBuilder
Create user builder for a new user with iduserId
. The user is transient and must be saved usingPlatformUserBuilder.save()
- Parameters:
userId
- the id of the new user
-
createUpdateUserBuilder
-
createNewGroupBuilder
-
createUpdateGroupBuilder
-
findPlatformUserById
Deprecated.usecreatePlatformUserQuery()
instead -
createPlatformUserQuery
PlatformUserQuery createPlatformUserQuery() -
createPlatformGroupQuery
PlatformGroupQuery createPlatformGroupQuery() -
findPlatformGroupById
Deprecated.usercreatePlatformGroupQuery()
instead -
findPlatformGroupsForUser
Deprecated.usecreatePlatformGroupQuery()
withPlatformGroupQuery.groupMember(String)
instead. -
createPlatformIdentityInfoBuilder
PlatformIdentityInfoBuilder createPlatformIdentityInfoBuilder()Create a builder for updating or creating a platform identity info. -
createPlatformIdentityInfoQuery
PlatformIdentityInfoQuery createPlatformIdentityInfoQuery()Create a query for querying platform identity infos. -
findUniqueTenantIds
Find the unique tenant ids- Returns:
- a list of the unique tenant ids
-
setUserStateAndSubState
Update the state and/or subState of the provided user. If the value for the state isnull
then the state of the user won't be changed. If the value for the subState isnull
then the subState of the user won't be changed. At least one of state and / or subState must be set- Parameters:
userId
- the id of the user that needs to have its state updatedstate
- the optional new state to set, ifnull
it won't be changedsubState
- the optional new subState to set, ifnull
it won't be changed- See Also:
-
setUserStateAndSubState
Update the state and/or subState of the provided user. If the value for the state isnull
then the state of the user won't be changed. If the value for the subState isnull
then the subState of the user won't be changed. At least one of state and / or subState must be set- Parameters:
userId
- the id of the user that needs to have its state updatedstate
- the optional new state to set, ifnull
it won't be changedsubState
- the optional new subState to set, ifnull
it won't be changedtenantId
- the tenant id in which the change should be done- See Also:
-
setUserDefinitionById
Update the user definition of the provided user.- Parameters:
userId
- the id of the user that needs to have its user definition updateduserDefinitionId
- the user definition id of the new user definition
-
setUserDefinitionByKey
Update the user definition of the provided user.- Parameters:
userId
- the id of the user that needs to have its user definition updateduserDefinitionKey
- the key of the new user definitiontenantId
- the tenant id of the new user definition
-
deactivateUser
Deprecated.usesetUserStateAndSubState(String, String, String)
instead with stateUserStates.INACTIVE
Sets the user state toUserStates.INACTIVE
. This method should no longer be used as it would be removed.- Parameters:
userId
- the id of the user to be deactivatednewSubState
- the optional new sub state to set, leave itnull
to not change it
-
reactivateUser
Deprecated.usesetUserStateAndSubState(String, String, String)
instead with stateUserStates.ACTIVE
Sets the user state toUserStates.ACTIVE
. This method should no longer be used as it would be removed.- Parameters:
userId
- the id of the user to be reactivatednewSubState
- the optional new sub state to set, leave itnull
to not change it
-
setUserState
Set the state of this user object. By default this method delegates tosetUserStateAndSubState(String, String, String)
with subStatenull
- Parameters:
userId
- the id of the user to change its statestate
- the new state to be set on this user object- See Also:
-
setUserSubState
Set the sub state of this user object. The sub state might be used to more specifically describe the current state of the user. By default this method delegates tosetUserStateAndSubState(String, String, String)
with statenull
- Parameters:
userId
- the id of the user to change its substatesubState
- the new sub state to be set on this user object- See Also:
-
updateUserPresence
Deprecated.useupdateUserPresence(String, String, String)
insteadUpdates the presence status of the user- Parameters:
userId
- the id of the user for which the presence status needs to be updatedpresence
- the id of the user for which the presence status needs to be updated- See Also:
-
updateUserPresence
Updates the presence status of the user in the given tenant- Parameters:
userId
- the id of the user for which the presence status needs to be updatedtenantId
- the id of tenant in which the presence status needs to be updatedpresence
- the id of the user for which the presence status needs to be updated- See Also:
-
setPlatformUserInfo
Deprecated.usecreatePlatformIdentityInfoBuilder()
instead -
getPlatformUserInfo
Deprecated. -
findIdentityInfoByUserIdAndName
Deprecated. -
deletePlatformIdentityInfoById
Delete the platform identity info entry for the given id- Parameters:
id
- the id of the identity info entry
-
deletePlatformIdentityInfoByUserId
Delete all platform identity info entries of the user- Parameters:
userId
- the id of the user
-
deletePlatformIdentityInfoByUserIdAndTenantId
Delete all platform identity info entries of the user in the given tenant- Parameters:
userId
- the id of the usertenantId
- the id of the tenant
-
createAuthenticationTokenBuilder
Deprecated.usecreateNewAccessTokenBuilder()
insteadCreate a token authentication builder with which authentication tokens can be created.- Returns:
- the token authentication builder
-
findPropertyByName
-
updateProperty
-
createProperty
-
deleteProperty
-
createNewAccessTokenBuilder
AccessTokenBuilder createNewAccessTokenBuilder() -
createAccessTokenQuery
AccessTokenQuery createAccessTokenQuery() -
findAccessToken
-
checkAccessToken
Check if the access token with the given id is valid for the given value- Parameters:
tokenId
- the id of the token to checktokenValue
- the value that should be checked
-
deleteAccessToken
-
createNewAccessTokenBuilder()
instead