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
commandExecutor
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
Constructor Summary
Constructors -
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.org.flowable.idm.api.GroupQuery
org.flowable.idm.api.NativeTokenQuery
Create a builder for updating or creating a platform identity info.Create a query for querying platform identity infos.org.flowable.idm.api.Privilege
createPrivilege
(String name) org.flowable.idm.api.PrivilegeQuery
createProperty
(String name, String value) org.flowable.idm.api.TokenQuery
org.flowable.idm.api.UserQuery
void
deleteAccessToken
(String tokenId) void
deleteGroupPrivilegeMapping
(String privilegeId, String groupId) void
Delete all platform identity info entries of the groupvoid
deletePlatformIdentityInfoByGroupIdAndTenantId
(String groupId, String tenantId) Delete all platform identity info entries of the group in the given tenantvoid
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) List
<org.flowable.idm.api.PrivilegeMapping> getPrivilegeMappingsByPrivilegeId
(String privilegeId) getUserInfo
(String userId, String key) getUserInfoKeys
(String userId) org.flowable.idm.api.Picture
getUserPicture
(String userId) org.flowable.idm.api.Token
void
saveToken
(org.flowable.idm.api.Token token) 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, org.flowable.idm.api.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
public org.flowable.idm.api.UserQuery createUserQuery()- Specified by:
createUserQuery
in interfaceorg.flowable.idm.api.IdmIdentityService
-
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
public org.flowable.idm.api.GroupQuery createGroupQuery()- Specified by:
createGroupQuery
in interfaceorg.flowable.idm.api.IdmIdentityService
-
setAuthenticatedUserId
- Specified by:
setAuthenticatedUserId
in interfaceorg.flowable.idm.api.IdmIdentityService
-
newToken
- Specified by:
newToken
in interfaceorg.flowable.idm.api.IdmIdentityService
-
saveToken
public void saveToken(org.flowable.idm.api.Token token) - Specified by:
saveToken
in interfaceorg.flowable.idm.api.IdmIdentityService
-
deleteToken
- Specified by:
deleteToken
in interfaceorg.flowable.idm.api.IdmIdentityService
-
createTokenQuery
public org.flowable.idm.api.TokenQuery createTokenQuery()- Specified by:
createTokenQuery
in interfaceorg.flowable.idm.api.IdmIdentityService
-
createNativeTokenQuery
public org.flowable.idm.api.NativeTokenQuery createNativeTokenQuery()- Specified by:
createNativeTokenQuery
in interfaceorg.flowable.idm.api.IdmIdentityService
-
setUserPicture
- Specified by:
setUserPicture
in interfaceorg.flowable.idm.api.IdmIdentityService
-
getUserPicture
- Specified by:
getUserPicture
in interfaceorg.flowable.idm.api.IdmIdentityService
-
getUserInfo
- Specified by:
getUserInfo
in interfaceorg.flowable.idm.api.IdmIdentityService
-
getUserInfoKeys
- Specified by:
getUserInfoKeys
in interfaceorg.flowable.idm.api.IdmIdentityService
-
setUserInfo
- Specified by:
setUserInfo
in interfaceorg.flowable.idm.api.IdmIdentityService
-
deleteUserInfo
- Specified by:
deleteUserInfo
in interfaceorg.flowable.idm.api.IdmIdentityService
-
createPrivilege
- Specified by:
createPrivilege
in interfaceorg.flowable.idm.api.IdmIdentityService
-
addUserPrivilegeMapping
- Specified by:
addUserPrivilegeMapping
in interfaceorg.flowable.idm.api.IdmIdentityService
-
deleteUserPrivilegeMapping
- Specified by:
deleteUserPrivilegeMapping
in interfaceorg.flowable.idm.api.IdmIdentityService
-
addGroupPrivilegeMapping
- Specified by:
addGroupPrivilegeMapping
in interfaceorg.flowable.idm.api.IdmIdentityService
-
deleteGroupPrivilegeMapping
- Specified by:
deleteGroupPrivilegeMapping
in interfaceorg.flowable.idm.api.IdmIdentityService
-
getPrivilegeMappingsByPrivilegeId
public List<org.flowable.idm.api.PrivilegeMapping> getPrivilegeMappingsByPrivilegeId(String privilegeId) - Specified by:
getPrivilegeMappingsByPrivilegeId
in interfaceorg.flowable.idm.api.IdmIdentityService
-
deletePrivilege
- Specified by:
deletePrivilege
in interfaceorg.flowable.idm.api.IdmIdentityService
-
createPrivilegeQuery
public org.flowable.idm.api.PrivilegeQuery createPrivilegeQuery()- Specified by:
createPrivilegeQuery
in interfaceorg.flowable.idm.api.IdmIdentityService
-
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
-
deletePlatformIdentityInfoByGroupId
Description copied from interface:PlatformIdentityService
Delete all platform identity info entries of the group- Specified by:
deletePlatformIdentityInfoByGroupId
in interfacePlatformIdentityService
- Parameters:
groupId
- the id of the group
-
deletePlatformIdentityInfoByGroupIdAndTenantId
Description copied from interface:PlatformIdentityService
Delete all platform identity info entries of the group in the given tenant- Specified by:
deletePlatformIdentityInfoByGroupIdAndTenantId
in interfacePlatformIdentityService
- Parameters:
groupId
- the id of the grouptenantId
- 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
-