public class IdmIdentityServiceImpl extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<CoreIdmEngineConfiguration> implements PlatformIdentityService
| Constructor and Description |
|---|
IdmIdentityServiceImpl(CoreIdmEngineConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupPrivilegeMapping(String privilegeId,
String groupId) |
void |
addUserPrivilegeMapping(String privilegeId,
String userId) |
boolean |
checkPassword(String userId,
String password) |
org.flowable.idm.api.GroupQuery |
createGroupQuery() |
void |
createMembership(String userId,
String groupId) |
org.flowable.idm.api.NativeGroupQuery |
createNativeGroupQuery() |
org.flowable.idm.api.NativeTokenQuery |
createNativeTokenQuery() |
org.flowable.idm.api.NativeUserQuery |
createNativeUserQuery() |
PlatformGroupBuilder |
createNewGroupBuilder(String groupId) |
PlatformUserBuilder |
createNewUserBuilder(String userId)
Create user builder for a new user with id
userId. |
PlatformGroupQuery |
createPlatformGroupQuery() |
PlatformUserQuery |
createPlatformUserQuery() |
org.flowable.idm.api.Privilege |
createPrivilege(String name) |
org.flowable.idm.api.PrivilegeQuery |
createPrivilegeQuery() |
IdmProperty |
createProperty(String name,
String value) |
org.flowable.idm.api.TokenQuery |
createTokenQuery() |
PlatformGroupBuilder |
createUpdateGroupBuilder(String groupId) |
PlatformUserBuilder |
createUpdateUserBuilder(String userId) |
org.flowable.idm.api.UserQuery |
createUserQuery() |
void |
deleteGroup(String groupId) |
void |
deleteGroupPrivilegeMapping(String privilegeId,
String groupId) |
void |
deleteMembership(String userId,
String groupId) |
void |
deletePlatformIdentityInfoById(String id) |
void |
deletePlatformIdentityInfoByUserId(String userId) |
void |
deletePrivilege(String id) |
void |
deleteProperty(String name) |
void |
deleteToken(String tokenId) |
void |
deleteUser(String userId) |
void |
deleteUserInfo(String userId,
String key) |
void |
deleteUserPrivilegeMapping(String privilegeId,
String userId) |
PlatformIdentityInfo |
findIdentityInfoByUserIdAndName(String userId,
String name) |
PlatformGroup |
findPlatformGroupById(String groupId) |
List<PlatformGroup> |
findPlatformGroupsForUser(String userId) |
PlatformUserEntity |
findPlatformUserById(String userId) |
PlatformUser |
findPlatformUserBySystemIdAndSystemType(String systemId,
String systemType) |
IdmProperty |
findPropertyByName(String name) |
List<String> |
findUniqueTenantIds()
Find the unique tenant ids
|
List<org.flowable.idm.api.Group> |
getGroupsWithPrivilege(String name) |
<T> Optional<T> |
getPlatformUserInfo(String userId,
String name,
Class<T> infoClass) |
List<org.flowable.idm.api.PrivilegeMapping> |
getPrivilegeMappingsByPrivilegeId(String privilegeId) |
String |
getUserInfo(String userId,
String key) |
List<String> |
getUserInfoKeys(String userId) |
org.flowable.idm.api.Picture |
getUserPicture(String userId) |
List<org.flowable.idm.api.User> |
getUsersWithPrivilege(String name) |
org.flowable.idm.api.Group |
newGroup(String groupId) |
org.flowable.idm.api.Token |
newToken(String tokenId) |
org.flowable.idm.api.User |
newUser(String userId) |
void |
saveGroup(org.flowable.idm.api.Group group) |
void |
saveToken(org.flowable.idm.api.Token token) |
void |
saveUser(org.flowable.idm.api.User user) |
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 |
updateProperty(IdmProperty idmProperty) |
void |
updateUserPassword(org.flowable.idm.api.User user) |
void |
updateUserPresence(String userId,
String presence)
Updates the presence status of the user
|
getCommandExecutor, setCommandExecutorgetConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeactivateUser, reactivateUser, setUserState, setUserSubStatepublic IdmIdentityServiceImpl(CoreIdmEngineConfiguration configuration)
public org.flowable.idm.api.Group newGroup(String groupId)
newGroup in interface org.flowable.idm.api.IdmIdentityServicepublic org.flowable.idm.api.User newUser(String userId)
newUser in interface org.flowable.idm.api.IdmIdentityServicepublic void saveGroup(org.flowable.idm.api.Group group)
saveGroup in interface org.flowable.idm.api.IdmIdentityServicepublic void saveUser(org.flowable.idm.api.User user)
saveUser in interface org.flowable.idm.api.IdmIdentityServicepublic void updateUserPassword(org.flowable.idm.api.User user)
updateUserPassword in interface org.flowable.idm.api.IdmIdentityServicepublic void setUserStateAndSubState(String userId, String state, String subState)
PlatformIdentityServicenull then the state of the user won't be changed.
If the value for the subState is null then the subState of the user won't be changed.
At least one of state and / or subState must be setsetUserStateAndSubState in interface PlatformIdentityServiceuserId - the id of the user that needs to have its state updatedstate - the optional new state to set, if null it won't be changedsubState - the optional new subState to set, if null it won't be changedfor a list of commonly used states, although you can create your own ones,
for a list of commonly used sub states, although you can create your own onespublic void setUserDefinitionById(String userId, String userDefinitionId)
PlatformIdentityServicesetUserDefinitionById in interface PlatformIdentityServiceuserId - the id of the user that needs to have its user definition updateduserDefinitionId - the user definition id of the new user definitionpublic void setUserDefinitionByKey(String userId, String userDefinitionKey, String tenantId)
PlatformIdentityServicesetUserDefinitionByKey in interface PlatformIdentityServiceuserId - 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 definitionpublic void updateUserPresence(String userId, String presence)
PlatformIdentityServiceupdateUserPresence in interface PlatformIdentityServiceuserId - 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 updatedfor known statespublic org.flowable.idm.api.UserQuery createUserQuery()
createUserQuery in interface org.flowable.idm.api.IdmIdentityServicepublic PlatformUserQuery createPlatformUserQuery()
createPlatformUserQuery in interface PlatformIdentityServicepublic PlatformGroupQuery createPlatformGroupQuery()
createPlatformGroupQuery in interface PlatformIdentityServicepublic PlatformGroup findPlatformGroupById(String groupId)
findPlatformGroupById in interface PlatformIdentityServicepublic List<PlatformGroup> findPlatformGroupsForUser(String userId)
findPlatformGroupsForUser in interface PlatformIdentityServicepublic List<String> findUniqueTenantIds()
PlatformIdentityServicefindUniqueTenantIds in interface PlatformIdentityServicepublic org.flowable.idm.api.NativeUserQuery createNativeUserQuery()
createNativeUserQuery in interface org.flowable.idm.api.IdmIdentityServicepublic PlatformUserBuilder createNewUserBuilder(String userId)
PlatformIdentityServiceuserId. The user is transient and must be saved using PlatformUserBuilder.save()createNewUserBuilder in interface PlatformIdentityServiceuserId - the id of the new userpublic PlatformGroupBuilder createNewGroupBuilder(String groupId)
createNewGroupBuilder in interface PlatformIdentityServicepublic PlatformGroupBuilder createUpdateGroupBuilder(String groupId)
createUpdateGroupBuilder in interface PlatformIdentityServicepublic PlatformUserEntity findPlatformUserById(String userId)
findPlatformUserById in interface PlatformIdentityServicepublic PlatformUser findPlatformUserBySystemIdAndSystemType(String systemId, String systemType)
findPlatformUserBySystemIdAndSystemType in interface PlatformIdentityServicepublic PlatformUserBuilder createUpdateUserBuilder(String userId)
createUpdateUserBuilder in interface PlatformIdentityServicepublic <T> Optional<T> getPlatformUserInfo(String userId, String name, Class<T> infoClass)
getPlatformUserInfo in interface PlatformIdentityServicepublic void setPlatformUserInfo(String userId, String name, Object value)
setPlatformUserInfo in interface PlatformIdentityServicepublic org.flowable.idm.api.GroupQuery createGroupQuery()
createGroupQuery in interface org.flowable.idm.api.IdmIdentityServicepublic org.flowable.idm.api.NativeGroupQuery createNativeGroupQuery()
createNativeGroupQuery in interface org.flowable.idm.api.IdmIdentityServicepublic void createMembership(String userId, String groupId)
createMembership in interface org.flowable.idm.api.IdmIdentityServicepublic void deleteGroup(String groupId)
deleteGroup in interface org.flowable.idm.api.IdmIdentityServicepublic void deleteMembership(String userId, String groupId)
deleteMembership in interface org.flowable.idm.api.IdmIdentityServicepublic boolean checkPassword(String userId, String password)
checkPassword in interface org.flowable.idm.api.IdmIdentityServicepublic void setAuthenticatedUserId(String authenticatedUserId)
setAuthenticatedUserId in interface org.flowable.idm.api.IdmIdentityServicepublic void deleteUser(String userId)
deleteUser in interface org.flowable.idm.api.IdmIdentityServicepublic org.flowable.idm.api.Token newToken(String tokenId)
newToken in interface org.flowable.idm.api.IdmIdentityServicepublic void saveToken(org.flowable.idm.api.Token token)
saveToken in interface org.flowable.idm.api.IdmIdentityServicepublic void deleteToken(String tokenId)
deleteToken in interface org.flowable.idm.api.IdmIdentityServicepublic org.flowable.idm.api.TokenQuery createTokenQuery()
createTokenQuery in interface org.flowable.idm.api.IdmIdentityServicepublic org.flowable.idm.api.NativeTokenQuery createNativeTokenQuery()
createNativeTokenQuery in interface org.flowable.idm.api.IdmIdentityServicepublic void setUserPicture(String userId, org.flowable.idm.api.Picture picture)
setUserPicture in interface org.flowable.idm.api.IdmIdentityServicepublic org.flowable.idm.api.Picture getUserPicture(String userId)
getUserPicture in interface org.flowable.idm.api.IdmIdentityServicepublic String getUserInfo(String userId, String key)
getUserInfo in interface org.flowable.idm.api.IdmIdentityServicepublic List<String> getUserInfoKeys(String userId)
getUserInfoKeys in interface org.flowable.idm.api.IdmIdentityServicepublic void setUserInfo(String userId, String key, String value)
setUserInfo in interface org.flowable.idm.api.IdmIdentityServicepublic void deleteUserInfo(String userId, String key)
deleteUserInfo in interface org.flowable.idm.api.IdmIdentityServicepublic org.flowable.idm.api.Privilege createPrivilege(String name)
createPrivilege in interface org.flowable.idm.api.IdmIdentityServicepublic void addUserPrivilegeMapping(String privilegeId, String userId)
addUserPrivilegeMapping in interface org.flowable.idm.api.IdmIdentityServicepublic void deleteUserPrivilegeMapping(String privilegeId, String userId)
deleteUserPrivilegeMapping in interface org.flowable.idm.api.IdmIdentityServicepublic void addGroupPrivilegeMapping(String privilegeId, String groupId)
addGroupPrivilegeMapping in interface org.flowable.idm.api.IdmIdentityServicepublic void deleteGroupPrivilegeMapping(String privilegeId, String groupId)
deleteGroupPrivilegeMapping in interface org.flowable.idm.api.IdmIdentityServicepublic List<org.flowable.idm.api.PrivilegeMapping> getPrivilegeMappingsByPrivilegeId(String privilegeId)
getPrivilegeMappingsByPrivilegeId in interface org.flowable.idm.api.IdmIdentityServicepublic void deletePrivilege(String id)
deletePrivilege in interface org.flowable.idm.api.IdmIdentityServicepublic org.flowable.idm.api.PrivilegeQuery createPrivilegeQuery()
createPrivilegeQuery in interface org.flowable.idm.api.IdmIdentityServicepublic List<org.flowable.idm.api.Group> getGroupsWithPrivilege(String name)
getGroupsWithPrivilege in interface org.flowable.idm.api.IdmIdentityServicepublic List<org.flowable.idm.api.User> getUsersWithPrivilege(String name)
getUsersWithPrivilege in interface org.flowable.idm.api.IdmIdentityServicepublic PlatformIdentityInfo findIdentityInfoByUserIdAndName(String userId, String name)
findIdentityInfoByUserIdAndName in interface PlatformIdentityServicepublic void deletePlatformIdentityInfoById(String id)
deletePlatformIdentityInfoById in interface PlatformIdentityServicepublic void deletePlatformIdentityInfoByUserId(String userId)
deletePlatformIdentityInfoByUserId in interface PlatformIdentityServicepublic IdmProperty findPropertyByName(String name)
findPropertyByName in interface PlatformIdentityServicepublic void updateProperty(IdmProperty idmProperty)
updateProperty in interface PlatformIdentityServicepublic IdmProperty createProperty(String name, String value)
createProperty in interface PlatformIdentityServicepublic void deleteProperty(String name)
deleteProperty in interface PlatformIdentityServiceCopyright © 2019. All rights reserved.