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, setCommandExecutor
getConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deactivateUser, reactivateUser, setUserState, setUserSubState
public IdmIdentityServiceImpl(CoreIdmEngineConfiguration configuration)
public org.flowable.idm.api.Group newGroup(String groupId)
newGroup
in interface org.flowable.idm.api.IdmIdentityService
public org.flowable.idm.api.User newUser(String userId)
newUser
in interface org.flowable.idm.api.IdmIdentityService
public void saveGroup(org.flowable.idm.api.Group group)
saveGroup
in interface org.flowable.idm.api.IdmIdentityService
public void saveUser(org.flowable.idm.api.User user)
saveUser
in interface org.flowable.idm.api.IdmIdentityService
public void updateUserPassword(org.flowable.idm.api.User user)
updateUserPassword
in interface org.flowable.idm.api.IdmIdentityService
public void setUserStateAndSubState(String userId, String state, String subState)
PlatformIdentityService
null
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 PlatformIdentityService
userId
- 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 ones
public void setUserDefinitionById(String userId, String userDefinitionId)
PlatformIdentityService
setUserDefinitionById
in interface PlatformIdentityService
userId
- 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)
PlatformIdentityService
setUserDefinitionByKey
in interface PlatformIdentityService
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 definitionpublic void updateUserPresence(String userId, String presence)
PlatformIdentityService
updateUserPresence
in interface PlatformIdentityService
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 updatedfor known states
public org.flowable.idm.api.UserQuery createUserQuery()
createUserQuery
in interface org.flowable.idm.api.IdmIdentityService
public PlatformUserQuery createPlatformUserQuery()
createPlatformUserQuery
in interface PlatformIdentityService
public PlatformGroupQuery createPlatformGroupQuery()
createPlatformGroupQuery
in interface PlatformIdentityService
public PlatformGroup findPlatformGroupById(String groupId)
findPlatformGroupById
in interface PlatformIdentityService
public List<PlatformGroup> findPlatformGroupsForUser(String userId)
findPlatformGroupsForUser
in interface PlatformIdentityService
public List<String> findUniqueTenantIds()
PlatformIdentityService
findUniqueTenantIds
in interface PlatformIdentityService
public org.flowable.idm.api.NativeUserQuery createNativeUserQuery()
createNativeUserQuery
in interface org.flowable.idm.api.IdmIdentityService
public PlatformUserBuilder createNewUserBuilder(String userId)
PlatformIdentityService
userId
. The user is transient and must be saved using PlatformUserBuilder.save()
createNewUserBuilder
in interface PlatformIdentityService
userId
- the id of the new userpublic PlatformGroupBuilder createNewGroupBuilder(String groupId)
createNewGroupBuilder
in interface PlatformIdentityService
public PlatformGroupBuilder createUpdateGroupBuilder(String groupId)
createUpdateGroupBuilder
in interface PlatformIdentityService
public PlatformUserEntity findPlatformUserById(String userId)
findPlatformUserById
in interface PlatformIdentityService
public PlatformUser findPlatformUserBySystemIdAndSystemType(String systemId, String systemType)
findPlatformUserBySystemIdAndSystemType
in interface PlatformIdentityService
public PlatformUserBuilder createUpdateUserBuilder(String userId)
createUpdateUserBuilder
in interface PlatformIdentityService
public <T> Optional<T> getPlatformUserInfo(String userId, String name, Class<T> infoClass)
getPlatformUserInfo
in interface PlatformIdentityService
public void setPlatformUserInfo(String userId, String name, Object value)
setPlatformUserInfo
in interface PlatformIdentityService
public org.flowable.idm.api.GroupQuery createGroupQuery()
createGroupQuery
in interface org.flowable.idm.api.IdmIdentityService
public org.flowable.idm.api.NativeGroupQuery createNativeGroupQuery()
createNativeGroupQuery
in interface org.flowable.idm.api.IdmIdentityService
public void createMembership(String userId, String groupId)
createMembership
in interface org.flowable.idm.api.IdmIdentityService
public void deleteGroup(String groupId)
deleteGroup
in interface org.flowable.idm.api.IdmIdentityService
public void deleteMembership(String userId, String groupId)
deleteMembership
in interface org.flowable.idm.api.IdmIdentityService
public boolean checkPassword(String userId, String password)
checkPassword
in interface org.flowable.idm.api.IdmIdentityService
public void setAuthenticatedUserId(String authenticatedUserId)
setAuthenticatedUserId
in interface org.flowable.idm.api.IdmIdentityService
public void deleteUser(String userId)
deleteUser
in interface org.flowable.idm.api.IdmIdentityService
public org.flowable.idm.api.Token newToken(String tokenId)
newToken
in interface org.flowable.idm.api.IdmIdentityService
public void saveToken(org.flowable.idm.api.Token token)
saveToken
in interface org.flowable.idm.api.IdmIdentityService
public void deleteToken(String tokenId)
deleteToken
in interface org.flowable.idm.api.IdmIdentityService
public org.flowable.idm.api.TokenQuery createTokenQuery()
createTokenQuery
in interface org.flowable.idm.api.IdmIdentityService
public org.flowable.idm.api.NativeTokenQuery createNativeTokenQuery()
createNativeTokenQuery
in interface org.flowable.idm.api.IdmIdentityService
public void setUserPicture(String userId, org.flowable.idm.api.Picture picture)
setUserPicture
in interface org.flowable.idm.api.IdmIdentityService
public org.flowable.idm.api.Picture getUserPicture(String userId)
getUserPicture
in interface org.flowable.idm.api.IdmIdentityService
public String getUserInfo(String userId, String key)
getUserInfo
in interface org.flowable.idm.api.IdmIdentityService
public List<String> getUserInfoKeys(String userId)
getUserInfoKeys
in interface org.flowable.idm.api.IdmIdentityService
public void setUserInfo(String userId, String key, String value)
setUserInfo
in interface org.flowable.idm.api.IdmIdentityService
public void deleteUserInfo(String userId, String key)
deleteUserInfo
in interface org.flowable.idm.api.IdmIdentityService
public org.flowable.idm.api.Privilege createPrivilege(String name)
createPrivilege
in interface org.flowable.idm.api.IdmIdentityService
public void addUserPrivilegeMapping(String privilegeId, String userId)
addUserPrivilegeMapping
in interface org.flowable.idm.api.IdmIdentityService
public void deleteUserPrivilegeMapping(String privilegeId, String userId)
deleteUserPrivilegeMapping
in interface org.flowable.idm.api.IdmIdentityService
public void addGroupPrivilegeMapping(String privilegeId, String groupId)
addGroupPrivilegeMapping
in interface org.flowable.idm.api.IdmIdentityService
public void deleteGroupPrivilegeMapping(String privilegeId, String groupId)
deleteGroupPrivilegeMapping
in interface org.flowable.idm.api.IdmIdentityService
public List<org.flowable.idm.api.PrivilegeMapping> getPrivilegeMappingsByPrivilegeId(String privilegeId)
getPrivilegeMappingsByPrivilegeId
in interface org.flowable.idm.api.IdmIdentityService
public void deletePrivilege(String id)
deletePrivilege
in interface org.flowable.idm.api.IdmIdentityService
public org.flowable.idm.api.PrivilegeQuery createPrivilegeQuery()
createPrivilegeQuery
in interface org.flowable.idm.api.IdmIdentityService
public List<org.flowable.idm.api.Group> getGroupsWithPrivilege(String name)
getGroupsWithPrivilege
in interface org.flowable.idm.api.IdmIdentityService
public List<org.flowable.idm.api.User> getUsersWithPrivilege(String name)
getUsersWithPrivilege
in interface org.flowable.idm.api.IdmIdentityService
public PlatformIdentityInfo findIdentityInfoByUserIdAndName(String userId, String name)
findIdentityInfoByUserIdAndName
in interface PlatformIdentityService
public void deletePlatformIdentityInfoById(String id)
deletePlatformIdentityInfoById
in interface PlatformIdentityService
public void deletePlatformIdentityInfoByUserId(String userId)
deletePlatformIdentityInfoByUserId
in interface PlatformIdentityService
public IdmProperty findPropertyByName(String name)
findPropertyByName
in interface PlatformIdentityService
public void updateProperty(IdmProperty idmProperty)
updateProperty
in interface PlatformIdentityService
public IdmProperty createProperty(String name, String value)
createProperty
in interface PlatformIdentityService
public void deleteProperty(String name)
deleteProperty
in interface PlatformIdentityService
Copyright © 2019. All rights reserved.