Package org.flowable.idm.engine.impl
Class IdmIdentityServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<IdmEngineConfiguration>
org.flowable.idm.engine.impl.IdmIdentityServiceImpl
- All Implemented Interfaces:
IdmIdentityService
public class IdmIdentityServiceImpl
extends CommonEngineServiceImpl<IdmEngineConfiguration>
implements IdmIdentityService
- Author:
- Tijs Rademakers
-
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) Assigns a privilege to a group.voidaddUserPrivilegeMapping(String privilegeId, String userId) Assigns a privilege to a user.booleancheckPassword(String userId, String password) Checks if the password is valid for the given user.Creates aGroupQuerythat allows to programmatically query the groups.voidcreateMembership(String userId, String groupId) Returns a newNativeQueryfor tasks.Returns a newNativeQueryfor tokens.Returns a newNativeQueryfor tasks.createPrivilege(String name) Creates a newPrivilegewith the provided name.Creates aPrivilegeQuerythat allows to programmatically query privileges.Creates aTokenQuerythat allows to programmatically query the tokens.Creates aUserQuerythat allows to programmatically query the users.voiddeleteGroup(String groupId) Deletes the group.voiddeleteGroupPrivilegeMapping(String privilegeId, String groupId) Delete a privilege for a group.voiddeleteMembership(String userId, String groupId) Delete the membership of the user in the group.voidDeletes the privilege with the given id.voiddeleteToken(String tokenId) voiddeleteUser(String userId) voiddeleteUserInfo(String userId, String key) Delete an entry of the generic extensibility key-value pairs associated with a uservoiddeleteUserPrivilegeMapping(String privilegeId, String userId) Removes a privilege for a user.getGroupsWithPrivilege(String name) Returns allGroupinstances that have a particular privilege.getPrivilegeMappingsByPrivilegeId(String privilegeId) Get all privilege mappings for a specific privilegegetUserInfo(String userId, String key) Generic extensibility key-value pairs associated with a usergetUserInfoKeys(String userId) Generic extensibility keys associated with a usergetUserPicture(String userId) Retrieves the picture for a given user.getUsersWithPrivilege(String name) Returns allUserinstances that have a particular privilege.Creates a new group.Creates a new token.Creates a new user.voidSaves the group.voidSaves the token.voidSaves the user.voidsetAuthenticatedUserId(String authenticatedUserId) Passes the authenticated user id for this particular thread.voidsetUserInfo(String userId, String key, String value) Generic extensibility key-value pairs associated with a uservoidsetUserPicture(String userId, Picture picture) Sets the picture for a given user.voidupdateUserPassword(User user) Update user password.Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutorMethods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
IdmIdentityServiceImpl
-
-
Method Details
-
newGroup
Description copied from interface:IdmIdentityServiceCreates a new group. The group is transient and must be saved usingIdmIdentityService.saveGroup(Group).- Specified by:
newGroupin interfaceIdmIdentityService- Parameters:
groupId- id for the new group, cannot be null.
-
newUser
Description copied from interface:IdmIdentityServiceCreates a new user. The user is transient and must be saved usingIdmIdentityService.saveUser(User).- Specified by:
newUserin interfaceIdmIdentityService- Parameters:
userId- id for the new user, cannot be null.
-
saveGroup
Description copied from interface:IdmIdentityServiceSaves the group. If the group already existed, the group is updated.- Specified by:
saveGroupin interfaceIdmIdentityService- Parameters:
group- group to save. Cannot be null.
-
saveUser
Description copied from interface:IdmIdentityServiceSaves the user. If the user already existed, the user is updated except user password. UseIdmIdentityService.updateUserPassword(User)to update existing user password.- Specified by:
saveUserin interfaceIdmIdentityService- Parameters:
user- user to save, cannot be null.- See Also:
-
updateUserPassword
Description copied from interface:IdmIdentityServiceUpdate user password. UseIdmIdentityService.saveUser(User)for new user.- Specified by:
updateUserPasswordin interfaceIdmIdentityService- Parameters:
user- user password to change, cannot be null.- See Also:
-
createUserQuery
Description copied from interface:IdmIdentityServiceCreates aUserQuerythat allows to programmatically query the users.- Specified by:
createUserQueryin interfaceIdmIdentityService
-
createNativeUserQuery
Description copied from interface:IdmIdentityServiceReturns a newNativeQueryfor tasks.- Specified by:
createNativeUserQueryin interfaceIdmIdentityService
-
createGroupQuery
Description copied from interface:IdmIdentityServiceCreates aGroupQuerythat allows to programmatically query the groups.- Specified by:
createGroupQueryin interfaceIdmIdentityService
-
createNativeGroupQuery
Description copied from interface:IdmIdentityServiceReturns a newNativeQueryfor tasks.- Specified by:
createNativeGroupQueryin interfaceIdmIdentityService
-
createMembership
- Specified by:
createMembershipin interfaceIdmIdentityService- Parameters:
userId- the userId, cannot be null.groupId- the groupId, cannot be null.
-
deleteGroup
Description copied from interface:IdmIdentityServiceDeletes the group. When no group exists with the given id, this operation is ignored.- Specified by:
deleteGroupin interfaceIdmIdentityService- Parameters:
groupId- id of the group that should be deleted, cannot be null.
-
deleteMembership
Description copied from interface:IdmIdentityServiceDelete the membership of the user in the group. When the group or user don't exist or when the user is not a member of the group, this operation is ignored.- Specified by:
deleteMembershipin interfaceIdmIdentityService- Parameters:
userId- the user's id, cannot be null.groupId- the group's id, cannot be null.
-
checkPassword
Description copied from interface:IdmIdentityServiceChecks if the password is valid for the given user. Arguments userId and password are nullsafe.- Specified by:
checkPasswordin interfaceIdmIdentityService
-
setAuthenticatedUserId
Description copied from interface:IdmIdentityServicePasses the authenticated user id for this particular thread. All service method (from any service) invocations done by the same thread will have access to this authenticatedUserId.- Specified by:
setAuthenticatedUserIdin interfaceIdmIdentityService
-
deleteUser
- Specified by:
deleteUserin interfaceIdmIdentityService- Parameters:
userId- id of user to delete, cannot be null. When an id is passed for a non-existent user, this operation is ignored.
-
newToken
Description copied from interface:IdmIdentityServiceCreates a new token. The token is transient and must be saved usingIdmIdentityService.saveToken(Token).- Specified by:
newTokenin interfaceIdmIdentityService- Parameters:
tokenId- id for the new token, cannot be null.
-
saveToken
Description copied from interface:IdmIdentityServiceSaves the token. If the token already existed, the token is updated.- Specified by:
saveTokenin interfaceIdmIdentityService- Parameters:
token- token to save, cannot be null.
-
deleteToken
- Specified by:
deleteTokenin interfaceIdmIdentityService- Parameters:
tokenId- id of token to delete, cannot be null. When an id is passed for an non-existent token, this operation is ignored.
-
createTokenQuery
Description copied from interface:IdmIdentityServiceCreates aTokenQuerythat allows to programmatically query the tokens.- Specified by:
createTokenQueryin interfaceIdmIdentityService
-
createNativeTokenQuery
Description copied from interface:IdmIdentityServiceReturns a newNativeQueryfor tokens.- Specified by:
createNativeTokenQueryin interfaceIdmIdentityService
-
setUserPicture
Description copied from interface:IdmIdentityServiceSets the picture for a given user.- Specified by:
setUserPicturein interfaceIdmIdentityServicepicture- can be null to delete the picture.
-
getUserPicture
Description copied from interface:IdmIdentityServiceRetrieves the picture for a given user.- Specified by:
getUserPicturein interfaceIdmIdentityService- Returns:
- null if the user doesn't have a picture.
-
getUserInfo
Description copied from interface:IdmIdentityServiceGeneric extensibility key-value pairs associated with a user- Specified by:
getUserInfoin interfaceIdmIdentityService
-
getUserInfoKeys
Description copied from interface:IdmIdentityServiceGeneric extensibility keys associated with a user- Specified by:
getUserInfoKeysin interfaceIdmIdentityService
-
setUserInfo
Description copied from interface:IdmIdentityServiceGeneric extensibility key-value pairs associated with a user- Specified by:
setUserInfoin interfaceIdmIdentityService
-
deleteUserInfo
Description copied from interface:IdmIdentityServiceDelete an entry of the generic extensibility key-value pairs associated with a user- Specified by:
deleteUserInfoin interfaceIdmIdentityService
-
createPrivilege
Description copied from interface:IdmIdentityServiceCreates a newPrivilegewith the provided name.- Specified by:
createPrivilegein interfaceIdmIdentityService
-
addUserPrivilegeMapping
Description copied from interface:IdmIdentityServiceAssigns a privilege to a user.- Specified by:
addUserPrivilegeMappingin interfaceIdmIdentityService
-
deleteUserPrivilegeMapping
Description copied from interface:IdmIdentityServiceRemoves a privilege for a user.- Specified by:
deleteUserPrivilegeMappingin interfaceIdmIdentityService
-
addGroupPrivilegeMapping
Description copied from interface:IdmIdentityServiceAssigns a privilege to a group.- Specified by:
addGroupPrivilegeMappingin interfaceIdmIdentityService
-
deleteGroupPrivilegeMapping
Description copied from interface:IdmIdentityServiceDelete a privilege for a group.- Specified by:
deleteGroupPrivilegeMappingin interfaceIdmIdentityService
-
getPrivilegeMappingsByPrivilegeId
Description copied from interface:IdmIdentityServiceGet all privilege mappings for a specific privilege- Specified by:
getPrivilegeMappingsByPrivilegeIdin interfaceIdmIdentityService
-
deletePrivilege
Description copied from interface:IdmIdentityServiceDeletes the privilege with the given id. Note that this also removes all user/group mappings for this privilege.- Specified by:
deletePrivilegein interfaceIdmIdentityService
-
createPrivilegeQuery
Description copied from interface:IdmIdentityServiceCreates aPrivilegeQuerythat allows to programmatically query privileges.- Specified by:
createPrivilegeQueryin interfaceIdmIdentityService
-
getGroupsWithPrivilege
Description copied from interface:IdmIdentityServiceReturns allGroupinstances that have a particular privilege.- Specified by:
getGroupsWithPrivilegein interfaceIdmIdentityService
-
getUsersWithPrivilege
Description copied from interface:IdmIdentityServiceReturns allUserinstances that have a particular privilege.- Specified by:
getUsersWithPrivilegein interfaceIdmIdentityService
-