public interface IdmIdentityService
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupPrivilegeMapping(String privilegeId,
String groupId)
Assigns a privilege to a group.
|
void |
addUserPrivilegeMapping(String privilegeId,
String userId)
Assigns a privilege to a user.
|
boolean |
checkPassword(String userId,
String password)
Checks if the password is valid for the given user.
|
GroupQuery |
createGroupQuery()
Creates a
GroupQuery that allows to programmatically query the groups. |
void |
createMembership(String userId,
String groupId) |
NativeGroupQuery |
createNativeGroupQuery()
Returns a new
NativeQuery for tasks. |
NativeTokenQuery |
createNativeTokenQuery()
Returns a new
NativeQuery for tokens. |
NativeUserQuery |
createNativeUserQuery()
Returns a new
NativeQuery for tasks. |
Privilege |
createPrivilege(String privilegeName)
Creates a new
Privilege with the provided name. |
PrivilegeQuery |
createPrivilegeQuery()
Creates a
PrivilegeQuery that allows to programmatically query privileges. |
TokenQuery |
createTokenQuery()
Creates a
TokenQuery that allows to programmatically query the tokens. |
UserQuery |
createUserQuery()
Creates a
UserQuery that allows to programmatically query the users. |
void |
deleteGroup(String groupId)
Deletes the group.
|
void |
deleteGroupPrivilegeMapping(String privilegeId,
String groupId)
Delete a privilege for a group.
|
void |
deleteMembership(String userId,
String groupId)
Delete the membership of the user in the group.
|
void |
deletePrivilege(String privilegeId)
Deletes the privilege with the given id.
|
void |
deleteToken(String tokenId) |
void |
deleteUser(String userId) |
void |
deleteUserInfo(String userId,
String key)
Delete an entry of the generic extensibility key-value pairs associated with a user
|
void |
deleteUserPrivilegeMapping(String privilegeId,
String userId)
Removes a privilege for a user.
|
List<Group> |
getGroupsWithPrivilege(String privilegeId)
Returns all
Group instances that have a particular privilege. |
List<PrivilegeMapping> |
getPrivilegeMappingsByPrivilegeId(String privilegeId)
Get all privilege mappings for a specific privilege
|
String |
getUserInfo(String userId,
String key)
Generic extensibility key-value pairs associated with a user
|
List<String> |
getUserInfoKeys(String userId)
Generic extensibility keys associated with a user
|
Picture |
getUserPicture(String userId)
Retrieves the picture for a given user.
|
List<User> |
getUsersWithPrivilege(String privilegeId)
Returns all
User instances that have a particular privilege. |
Group |
newGroup(String groupId)
Creates a new group.
|
Token |
newToken(String id)
Creates a new token.
|
User |
newUser(String userId)
Creates a new user.
|
void |
saveGroup(Group group)
Saves the group.
|
void |
saveToken(Token token)
Saves the token.
|
void |
saveUser(User user)
Saves the user.
|
void |
setAuthenticatedUserId(String authenticatedUserId)
Passes the authenticated user id for this particular thread.
|
void |
setUserInfo(String userId,
String key,
String value)
Generic extensibility key-value pairs associated with a user
|
void |
setUserPicture(String userId,
Picture picture)
Sets the picture for a given user.
|
void |
updateUserPassword(User user)
Update user password.
|
User newUser(String userId)
saveUser(User).userId - id for the new user, cannot be null.void saveUser(User user)
updateUserPassword(User) to update existing user password.user - user to save, cannot be null.RuntimeException - when a user with the same name already exists.updateUserPassword(User)void updateUserPassword(User user)
saveUser(User) for new user.user - user password to change, cannot be null.saveUser(User)UserQuery createUserQuery()
UserQuery that allows to programmatically query the users.NativeUserQuery createNativeUserQuery()
NativeQuery for tasks.void deleteUser(String userId)
userId - id of user to delete, cannot be null. When an id is passed for a non-existent user, this operation is ignored.Group newGroup(String groupId)
saveGroup(Group).groupId - id for the new group, cannot be null.GroupQuery createGroupQuery()
GroupQuery that allows to programmatically query the groups.NativeGroupQuery createNativeGroupQuery()
NativeQuery for tasks.void saveGroup(Group group)
group - group to save. Cannot be null.RuntimeException - when a group with the same name already exists.void deleteGroup(String groupId)
groupId - id of the group that should be deleted, cannot be null.void createMembership(String userId, String groupId)
userId - the userId, cannot be null.groupId - the groupId, cannot be null.RuntimeException - when the given user or group doesn't exist or when the user is already member of the group.void deleteMembership(String userId, String groupId)
userId - the user's id, cannot be null.groupId - the group's id, cannot be null.boolean checkPassword(String userId, String password)
void setAuthenticatedUserId(String authenticatedUserId)
void setUserPicture(String userId, Picture picture)
userId - picture - can be null to delete the picture.FlowableObjectNotFoundException - if the user doesn't exist.Picture getUserPicture(String userId)
userId - FlowableObjectNotFoundException - if the user doesn't exist.Token newToken(String id)
saveToken(Token).id - id for the new token, cannot be null.void saveToken(Token token)
token - token to save, cannot be null.void deleteToken(String tokenId)
tokenId - id of token to delete, cannot be null. When an id is passed for an non-existent token, this operation is ignored.TokenQuery createTokenQuery()
TokenQuery that allows to programmatically query the tokens.NativeTokenQuery createNativeTokenQuery()
NativeQuery for tokens.void setUserInfo(String userId, String key, String value)
String getUserInfo(String userId, String key)
List<String> getUserInfoKeys(String userId)
void deleteUserInfo(String userId, String key)
Privilege createPrivilege(String privilegeName)
Privilege with the provided name.FlowableIllegalArgumentException - if privilegeName is null.void addUserPrivilegeMapping(String privilegeId, String userId)
void deleteUserPrivilegeMapping(String privilegeId, String userId)
void addGroupPrivilegeMapping(String privilegeId, String groupId)
void deleteGroupPrivilegeMapping(String privilegeId, String groupId)
List<PrivilegeMapping> getPrivilegeMappingsByPrivilegeId(String privilegeId)
void deletePrivilege(String privilegeId)
List<User> getUsersWithPrivilege(String privilegeId)
User instances that have a particular privilege.List<Group> getGroupsWithPrivilege(String privilegeId)
Group instances that have a particular privilege.PrivilegeQuery createPrivilegeQuery()
PrivilegeQuery that allows to programmatically query privileges.Copyright © 2020 Flowable. All rights reserved.