Package com.flowable.idm.engine.impl
Class BaseIdmIdentityServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<CoreIdmEngineConfiguration>
com.flowable.idm.engine.impl.BaseIdmIdentityServiceImpl
- All Implemented Interfaces:
PlatformIdentityService
,IdmIdentityService
- Direct Known Subclasses:
IdmIdentityServiceImpl
,ReadOnlyIdmIdentityService
public abstract class BaseIdmIdentityServiceImpl
extends CommonEngineServiceImpl<CoreIdmEngineConfiguration>
implements PlatformIdentityService
- Author:
- Tijs Rademakers, Filip Hrisafov
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGroupPrivilegeMapping
(String privilegeId, String groupId) void
addUserPrivilegeMapping
(String privilegeId, String userId) boolean
checkAccessToken
(String tokenId, String tokenValue) Check if the access token with the given id is valid for the given valueDeprecated.Create a builder for updating or creating a platform identity info.Create a query for querying platform identity infos.createPrivilege
(String name) createProperty
(String name, String value) void
deleteAccessToken
(String tokenId) void
deleteGroupPrivilegeMapping
(String privilegeId, String groupId) 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
void
deleteProperty
(String name) void
deleteToken
(String tokenId) void
deleteUserInfo
(String userId, String key) void
deleteUserPrivilegeMapping
(String privilegeId, String userId) findAccessToken
(String tokenId) findIdentityInfoByUserIdAndName
(String userId, String name) findPropertyByName
(String name) <T> Optional<T>
getPlatformUserInfo
(String userId, String name, Class<T> infoClass) getPrivilegeMappingsByPrivilegeId
(String privilegeId) getUserInfo
(String userId, String key) getUserInfoKeys
(String userId) getUserPicture
(String userId) void
void
setAuthenticatedUserId
(String authenticatedUserId) void
setPlatformUserInfo
(String userId, String name, Object value) void
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.void
setUserInfo
(String userId, String key, String value) void
setUserPicture
(String userId, Picture picture) 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.void
updateProperty
(IdmProperty idmProperty) void
updateUserPresence
(String userId, String presence) Updates the presence status of the uservoid
updateUserPresence
(String userId, String tenantId, String presence) Updates the presence status of the user in the given tenantMethods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.idm.api.IdmIdentityService
checkPassword, createMembership, createNativeGroupQuery, createNativeUserQuery, deleteGroup, deleteMembership, deleteUser, getGroupsWithPrivilege, getUsersWithPrivilege, newGroup, newUser, saveGroup, saveUser, updateUserPassword
Methods inherited from interface com.flowable.core.idm.api.PlatformIdentityService
createNewGroupBuilder, createNewUserBuilder, createPlatformGroupQuery, createPlatformUserQuery, createUpdateGroupBuilder, createUpdateUserBuilder, deactivateUser, findPlatformGroupById, findPlatformGroupsForUser, findPlatformUserById, findUniqueTenantIds, reactivateUser, setUserState, setUserSubState
-
Constructor Details
-
BaseIdmIdentityServiceImpl
-
-
Method Details
-
setUserStateAndSubState
Description copied from interface:PlatformIdentityService
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- Specified by:
setUserStateAndSubState
in interfacePlatformIdentityService
- 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
Description copied from interface:PlatformIdentityService
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- Specified by:
setUserStateAndSubState
in interfacePlatformIdentityService
- 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
Description copied from interface:PlatformIdentityService
Update the user definition of the provided user.- Specified by:
setUserDefinitionById
in interfacePlatformIdentityService
- 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
Description copied from interface:PlatformIdentityService
Update the user definition of the provided user.- Specified by:
setUserDefinitionByKey
in interfacePlatformIdentityService
- 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
-
updateUserPresence
Description copied from interface:PlatformIdentityService
Updates the presence status of the user- Specified by:
updateUserPresence
in interfacePlatformIdentityService
- 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
Description copied from interface:PlatformIdentityService
Updates the presence status of the user in the given tenant- Specified by:
updateUserPresence
in interfacePlatformIdentityService
- 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:
-
createUserQuery
- Specified by:
createUserQuery
in interfaceIdmIdentityService
-
getPlatformUserInfo
- Specified by:
getPlatformUserInfo
in interfacePlatformIdentityService
-
setPlatformUserInfo
- Specified by:
setPlatformUserInfo
in interfacePlatformIdentityService
-
createPlatformIdentityInfoBuilder
Description copied from interface:PlatformIdentityService
Create a builder for updating or creating a platform identity info.- Specified by:
createPlatformIdentityInfoBuilder
in interfacePlatformIdentityService
-
createPlatformIdentityInfoQuery
Description copied from interface:PlatformIdentityService
Create a query for querying platform identity infos.- Specified by:
createPlatformIdentityInfoQuery
in interfacePlatformIdentityService
-
createGroupQuery
- Specified by:
createGroupQuery
in interfaceIdmIdentityService
-
setAuthenticatedUserId
- Specified by:
setAuthenticatedUserId
in interfaceIdmIdentityService
-
newToken
- Specified by:
newToken
in interfaceIdmIdentityService
-
saveToken
- Specified by:
saveToken
in interfaceIdmIdentityService
-
deleteToken
- Specified by:
deleteToken
in interfaceIdmIdentityService
-
createTokenQuery
- Specified by:
createTokenQuery
in interfaceIdmIdentityService
-
createNativeTokenQuery
- Specified by:
createNativeTokenQuery
in interfaceIdmIdentityService
-
setUserPicture
- Specified by:
setUserPicture
in interfaceIdmIdentityService
-
getUserPicture
- Specified by:
getUserPicture
in interfaceIdmIdentityService
-
getUserInfo
- Specified by:
getUserInfo
in interfaceIdmIdentityService
-
getUserInfoKeys
- Specified by:
getUserInfoKeys
in interfaceIdmIdentityService
-
setUserInfo
- Specified by:
setUserInfo
in interfaceIdmIdentityService
-
deleteUserInfo
- Specified by:
deleteUserInfo
in interfaceIdmIdentityService
-
createPrivilege
- Specified by:
createPrivilege
in interfaceIdmIdentityService
-
addUserPrivilegeMapping
- Specified by:
addUserPrivilegeMapping
in interfaceIdmIdentityService
-
deleteUserPrivilegeMapping
- Specified by:
deleteUserPrivilegeMapping
in interfaceIdmIdentityService
-
addGroupPrivilegeMapping
- Specified by:
addGroupPrivilegeMapping
in interfaceIdmIdentityService
-
deleteGroupPrivilegeMapping
- Specified by:
deleteGroupPrivilegeMapping
in interfaceIdmIdentityService
-
getPrivilegeMappingsByPrivilegeId
- Specified by:
getPrivilegeMappingsByPrivilegeId
in interfaceIdmIdentityService
-
deletePrivilege
- Specified by:
deletePrivilege
in interfaceIdmIdentityService
-
createPrivilegeQuery
- Specified by:
createPrivilegeQuery
in interfaceIdmIdentityService
-
findIdentityInfoByUserIdAndName
- Specified by:
findIdentityInfoByUserIdAndName
in interfacePlatformIdentityService
-
deletePlatformIdentityInfoById
Description copied from interface:PlatformIdentityService
Delete the platform identity info entry for the given id- Specified by:
deletePlatformIdentityInfoById
in interfacePlatformIdentityService
- Parameters:
id
- the id of the identity info entry
-
deletePlatformIdentityInfoByUserId
Description copied from interface:PlatformIdentityService
Delete all platform identity info entries of the user- Specified by:
deletePlatformIdentityInfoByUserId
in interfacePlatformIdentityService
- Parameters:
userId
- the id of the user
-
deletePlatformIdentityInfoByUserIdAndTenantId
Description copied from interface:PlatformIdentityService
Delete all platform identity info entries of the user in the given tenant- Specified by:
deletePlatformIdentityInfoByUserIdAndTenantId
in interfacePlatformIdentityService
- Parameters:
userId
- the id of the usertenantId
- the id of the tenant
-
createAuthenticationTokenBuilder
Deprecated.Description copied from interface:PlatformIdentityService
Create a token authentication builder with which authentication tokens can be created.- Specified by:
createAuthenticationTokenBuilder
in interfacePlatformIdentityService
- Returns:
- the token authentication builder
-
findPropertyByName
- Specified by:
findPropertyByName
in interfacePlatformIdentityService
-
updateProperty
- Specified by:
updateProperty
in interfacePlatformIdentityService
-
createProperty
- Specified by:
createProperty
in interfacePlatformIdentityService
-
deleteProperty
- Specified by:
deleteProperty
in interfacePlatformIdentityService
-
createNewAccessTokenBuilder
- Specified by:
createNewAccessTokenBuilder
in interfacePlatformIdentityService
-
createAccessTokenQuery
- Specified by:
createAccessTokenQuery
in interfacePlatformIdentityService
-
findAccessToken
- Specified by:
findAccessToken
in interfacePlatformIdentityService
-
checkAccessToken
Description copied from interface:PlatformIdentityService
Check if the access token with the given id is valid for the given value- Specified by:
checkAccessToken
in interfacePlatformIdentityService
- Parameters:
tokenId
- the id of the token to checktokenValue
- the value that should be checked
-
deleteAccessToken
- Specified by:
deleteAccessToken
in interfacePlatformIdentityService
-