Package com.flowable.idm.engine.impl
Class BaseIdmIdentityServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<CoreIdmEngineConfiguration>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<CoreIdmEngineConfiguration>
com.flowable.idm.engine.impl.BaseIdmIdentityServiceImpl
- All Implemented Interfaces:
PlatformIdentityService,org.flowable.idm.api.IdmIdentityService
- Direct Known Subclasses:
IdmIdentityServiceImpl,ReadOnlyIdmIdentityService
public abstract class BaseIdmIdentityServiceImpl
extends org.flowable.common.engine.impl.service.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.org.flowable.idm.api.GroupQueryorg.flowable.idm.api.NativeTokenQueryCreate a builder for updating or creating a platform identity info.Create a query for querying platform identity infos.org.flowable.idm.api.PrivilegecreatePrivilege(String name) org.flowable.idm.api.PrivilegeQuerycreateProperty(String name, String value) org.flowable.idm.api.TokenQueryorg.flowable.idm.api.UserQueryvoiddeleteAccessToken(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) List<org.flowable.idm.api.PrivilegeMapping> getPrivilegeMappingsByPrivilegeId(String privilegeId) getUserInfo(String userId, String key) getUserInfoKeys(String userId) org.flowable.idm.api.PicturegetUserPicture(String userId) org.flowable.idm.api.TokenvoidsaveToken(org.flowable.idm.api.Token token) voidsetAuthenticatedUserId(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, org.flowable.idm.api.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
public org.flowable.idm.api.UserQuery createUserQuery()- Specified by:
createUserQueryin interfaceorg.flowable.idm.api.IdmIdentityService
-
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
public org.flowable.idm.api.GroupQuery createGroupQuery()- Specified by:
createGroupQueryin interfaceorg.flowable.idm.api.IdmIdentityService
-
setAuthenticatedUserId
- Specified by:
setAuthenticatedUserIdin interfaceorg.flowable.idm.api.IdmIdentityService
-
newToken
- Specified by:
newTokenin interfaceorg.flowable.idm.api.IdmIdentityService
-
saveToken
public void saveToken(org.flowable.idm.api.Token token) - Specified by:
saveTokenin interfaceorg.flowable.idm.api.IdmIdentityService
-
deleteToken
- Specified by:
deleteTokenin interfaceorg.flowable.idm.api.IdmIdentityService
-
createTokenQuery
public org.flowable.idm.api.TokenQuery createTokenQuery()- Specified by:
createTokenQueryin interfaceorg.flowable.idm.api.IdmIdentityService
-
createNativeTokenQuery
public org.flowable.idm.api.NativeTokenQuery createNativeTokenQuery()- Specified by:
createNativeTokenQueryin interfaceorg.flowable.idm.api.IdmIdentityService
-
setUserPicture
- Specified by:
setUserPicturein interfaceorg.flowable.idm.api.IdmIdentityService
-
getUserPicture
- Specified by:
getUserPicturein interfaceorg.flowable.idm.api.IdmIdentityService
-
getUserInfo
- Specified by:
getUserInfoin interfaceorg.flowable.idm.api.IdmIdentityService
-
getUserInfoKeys
- Specified by:
getUserInfoKeysin interfaceorg.flowable.idm.api.IdmIdentityService
-
setUserInfo
- Specified by:
setUserInfoin interfaceorg.flowable.idm.api.IdmIdentityService
-
deleteUserInfo
- Specified by:
deleteUserInfoin interfaceorg.flowable.idm.api.IdmIdentityService
-
createPrivilege
- Specified by:
createPrivilegein interfaceorg.flowable.idm.api.IdmIdentityService
-
addUserPrivilegeMapping
- Specified by:
addUserPrivilegeMappingin interfaceorg.flowable.idm.api.IdmIdentityService
-
deleteUserPrivilegeMapping
- Specified by:
deleteUserPrivilegeMappingin interfaceorg.flowable.idm.api.IdmIdentityService
-
addGroupPrivilegeMapping
- Specified by:
addGroupPrivilegeMappingin interfaceorg.flowable.idm.api.IdmIdentityService
-
deleteGroupPrivilegeMapping
- Specified by:
deleteGroupPrivilegeMappingin interfaceorg.flowable.idm.api.IdmIdentityService
-
getPrivilegeMappingsByPrivilegeId
public List<org.flowable.idm.api.PrivilegeMapping> getPrivilegeMappingsByPrivilegeId(String privilegeId) - Specified by:
getPrivilegeMappingsByPrivilegeIdin interfaceorg.flowable.idm.api.IdmIdentityService
-
deletePrivilege
- Specified by:
deletePrivilegein interfaceorg.flowable.idm.api.IdmIdentityService
-
createPrivilegeQuery
public org.flowable.idm.api.PrivilegeQuery createPrivilegeQuery()- Specified by:
createPrivilegeQueryin interfaceorg.flowable.idm.api.IdmIdentityService
-
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
-