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
commandExecutorFields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupPrivilegeMapping(String privilegeId, String groupId) voidaddUserPrivilegeMapping(String privilegeId, String userId) booleancheckAccessToken(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) voiddeleteAccessToken(String tokenId) voiddeleteGroupPrivilegeMapping(String privilegeId, String groupId) voidDelete all platform identity info entries of the groupvoiddeletePlatformIdentityInfoByGroupIdAndTenantId(String groupId, String tenantId) Delete all platform identity info entries of the group in the given tenantvoidDelete the platform identity info entry for the given idvoidDelete all platform identity info entries of the uservoiddeletePlatformIdentityInfoByUserIdAndTenantId(String userId, String tenantId) Delete all platform identity info entries of the user in the given tenantvoidvoiddeleteProperty(String name) voiddeleteToken(String tokenId) voiddeleteUserInfo(String userId, String key) voiddeleteUserPrivilegeMapping(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) voidvoidsetAuthenticatedUserId(String authenticatedUserId) voidsetPlatformUserInfo(String userId, String name, Object value) voidsetUserDefinitionById(String userId, String userDefinitionId) Update the user definition of the provided user.voidsetUserDefinitionByKey(String userId, String userDefinitionKey, String tenantId) Update the user definition of the provided user.voidsetUserInfo(String userId, String key, String value) voidsetUserPicture(String userId, Picture picture) voidsetUserStateAndSubState(String userId, String state, String subState) Update the state and/or subState of the provided user.voidsetUserStateAndSubState(String userId, String state, String subState, String tenantId) Update the state and/or subState of the provided user.voidupdateProperty(IdmProperty idmProperty) voidupdateUserPresence(String userId, String presence) Updates the presence status of the uservoidupdateUserPresence(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, setCommandExecutorMethods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfigurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.idm.api.IdmIdentityService
checkPassword, createMembership, createNativeGroupQuery, createNativeUserQuery, deleteGroup, deleteMembership, deleteUser, getGroupsWithPrivilege, getUsersWithPrivilege, newGroup, newUser, saveGroup, saveUser, updateUserPasswordMethods 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:PlatformIdentityServiceUpdate the state and/or subState of the provided user. If the value for the state isnullthen the state of the user won't be changed. If the value for the subState isnullthen the subState of the user won't be changed. At least one of state and / or subState must be set- Specified by:
setUserStateAndSubStatein interfacePlatformIdentityService- Parameters:
userId- the id of the user that needs to have its state updatedstate- the optional new state to set, ifnullit won't be changedsubState- the optional new subState to set, ifnullit won't be changed- See Also:
-
setUserStateAndSubState
Description copied from interface:PlatformIdentityServiceUpdate the state and/or subState of the provided user. If the value for the state isnullthen the state of the user won't be changed. If the value for the subState isnullthen the subState of the user won't be changed. At least one of state and / or subState must be set- Specified by:
setUserStateAndSubStatein interfacePlatformIdentityService- Parameters:
userId- the id of the user that needs to have its state updatedstate- the optional new state to set, ifnullit won't be changedsubState- the optional new subState to set, ifnullit won't be changedtenantId- the tenant id in which the change should be done- See Also:
-
setUserDefinitionById
Description copied from interface:PlatformIdentityServiceUpdate the user definition of the provided user.- Specified by:
setUserDefinitionByIdin 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:PlatformIdentityServiceUpdate the user definition of the provided user.- Specified by:
setUserDefinitionByKeyin 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:PlatformIdentityServiceUpdates the presence status of the user- Specified by:
updateUserPresencein 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:PlatformIdentityServiceUpdates the presence status of the user in the given tenant- Specified by:
updateUserPresencein 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:
createUserQueryin interfaceIdmIdentityService
-
getPlatformUserInfo
- Specified by:
getPlatformUserInfoin interfacePlatformIdentityService
-
setPlatformUserInfo
- Specified by:
setPlatformUserInfoin interfacePlatformIdentityService
-
createPlatformIdentityInfoBuilder
Description copied from interface:PlatformIdentityServiceCreate a builder for updating or creating a platform identity info.- Specified by:
createPlatformIdentityInfoBuilderin interfacePlatformIdentityService
-
createPlatformIdentityInfoQuery
Description copied from interface:PlatformIdentityServiceCreate a query for querying platform identity infos.- Specified by:
createPlatformIdentityInfoQueryin interfacePlatformIdentityService
-
createGroupQuery
- Specified by:
createGroupQueryin interfaceIdmIdentityService
-
setAuthenticatedUserId
- Specified by:
setAuthenticatedUserIdin interfaceIdmIdentityService
-
newToken
- Specified by:
newTokenin interfaceIdmIdentityService
-
saveToken
- Specified by:
saveTokenin interfaceIdmIdentityService
-
deleteToken
- Specified by:
deleteTokenin interfaceIdmIdentityService
-
createTokenQuery
- Specified by:
createTokenQueryin interfaceIdmIdentityService
-
createNativeTokenQuery
- Specified by:
createNativeTokenQueryin interfaceIdmIdentityService
-
setUserPicture
- Specified by:
setUserPicturein interfaceIdmIdentityService
-
getUserPicture
- Specified by:
getUserPicturein interfaceIdmIdentityService
-
getUserInfo
- Specified by:
getUserInfoin interfaceIdmIdentityService
-
getUserInfoKeys
- Specified by:
getUserInfoKeysin interfaceIdmIdentityService
-
setUserInfo
- Specified by:
setUserInfoin interfaceIdmIdentityService
-
deleteUserInfo
- Specified by:
deleteUserInfoin interfaceIdmIdentityService
-
createPrivilege
- Specified by:
createPrivilegein interfaceIdmIdentityService
-
addUserPrivilegeMapping
- Specified by:
addUserPrivilegeMappingin interfaceIdmIdentityService
-
deleteUserPrivilegeMapping
- Specified by:
deleteUserPrivilegeMappingin interfaceIdmIdentityService
-
addGroupPrivilegeMapping
- Specified by:
addGroupPrivilegeMappingin interfaceIdmIdentityService
-
deleteGroupPrivilegeMapping
- Specified by:
deleteGroupPrivilegeMappingin interfaceIdmIdentityService
-
getPrivilegeMappingsByPrivilegeId
- Specified by:
getPrivilegeMappingsByPrivilegeIdin interfaceIdmIdentityService
-
deletePrivilege
- Specified by:
deletePrivilegein interfaceIdmIdentityService
-
createPrivilegeQuery
- Specified by:
createPrivilegeQueryin interfaceIdmIdentityService
-
findIdentityInfoByUserIdAndName
- Specified by:
findIdentityInfoByUserIdAndNamein interfacePlatformIdentityService
-
deletePlatformIdentityInfoById
Description copied from interface:PlatformIdentityServiceDelete the platform identity info entry for the given id- Specified by:
deletePlatformIdentityInfoByIdin interfacePlatformIdentityService- Parameters:
id- the id of the identity info entry
-
deletePlatformIdentityInfoByUserId
Description copied from interface:PlatformIdentityServiceDelete all platform identity info entries of the user- Specified by:
deletePlatformIdentityInfoByUserIdin interfacePlatformIdentityService- Parameters:
userId- the id of the user
-
deletePlatformIdentityInfoByUserIdAndTenantId
Description copied from interface:PlatformIdentityServiceDelete all platform identity info entries of the user in the given tenant- Specified by:
deletePlatformIdentityInfoByUserIdAndTenantIdin interfacePlatformIdentityService- Parameters:
userId- the id of the usertenantId- the id of the tenant
-
deletePlatformIdentityInfoByGroupId
Description copied from interface:PlatformIdentityServiceDelete all platform identity info entries of the group- Specified by:
deletePlatformIdentityInfoByGroupIdin interfacePlatformIdentityService- Parameters:
groupId- the id of the group
-
deletePlatformIdentityInfoByGroupIdAndTenantId
Description copied from interface:PlatformIdentityServiceDelete all platform identity info entries of the group in the given tenant- Specified by:
deletePlatformIdentityInfoByGroupIdAndTenantIdin interfacePlatformIdentityService- Parameters:
groupId- the id of the grouptenantId- the id of the tenant
-
createAuthenticationTokenBuilder
Deprecated.Description copied from interface:PlatformIdentityServiceCreate a token authentication builder with which authentication tokens can be created.- Specified by:
createAuthenticationTokenBuilderin interfacePlatformIdentityService- Returns:
- the token authentication builder
-
findPropertyByName
- Specified by:
findPropertyByNamein interfacePlatformIdentityService
-
updateProperty
- Specified by:
updatePropertyin interfacePlatformIdentityService
-
createProperty
- Specified by:
createPropertyin interfacePlatformIdentityService
-
deleteProperty
- Specified by:
deletePropertyin interfacePlatformIdentityService
-
createNewAccessTokenBuilder
- Specified by:
createNewAccessTokenBuilderin interfacePlatformIdentityService
-
createAccessTokenQuery
- Specified by:
createAccessTokenQueryin interfacePlatformIdentityService
-
findAccessToken
- Specified by:
findAccessTokenin interfacePlatformIdentityService
-
checkAccessToken
Description copied from interface:PlatformIdentityServiceCheck if the access token with the given id is valid for the given value- Specified by:
checkAccessTokenin interfacePlatformIdentityService- Parameters:
tokenId- the id of the token to checktokenValue- the value that should be checked
-
deleteAccessToken
- Specified by:
deleteAccessTokenin interfacePlatformIdentityService
-