public interface PlatformIdentityService
extends org.flowable.idm.api.IdmIdentityService
addGroupPrivilegeMapping, addUserPrivilegeMapping, checkPassword, createGroupQuery, createMembership, createNativeGroupQuery, createNativeTokenQuery, createNativeUserQuery, createPrivilege, createPrivilegeQuery, createTokenQuery, createUserQuery, deleteGroup, deleteGroupPrivilegeMapping, deleteMembership, deletePrivilege, deleteToken, deleteUser, deleteUserInfo, deleteUserPrivilegeMapping, getGroupsWithPrivilege, getPrivilegeMappingsByPrivilegeId, getUserInfo, getUserInfoKeys, getUserPicture, getUsersWithPrivilege, newGroup, newToken, newUser, saveGroup, saveToken, saveUser, setAuthenticatedUserId, setUserInfo, setUserPicture, updateUserPassword
PlatformUserBuilder createNewUserBuilder(String userId)
userId
. The user is transient and must be saved using PlatformUserBuilder.save()
userId
- the id of the new userPlatformUserBuilder createUpdateUserBuilder(String userId)
PlatformGroupBuilder createNewGroupBuilder(String groupId)
PlatformGroupBuilder createUpdateGroupBuilder(String groupId)
PlatformUser findPlatformUserById(String userId)
PlatformUser findPlatformUserBySystemIdAndSystemType(String systemId, String systemType)
PlatformUserQuery createPlatformUserQuery()
PlatformGroupQuery createPlatformGroupQuery()
PlatformGroup findPlatformGroupById(String groupId)
List<PlatformGroup> findPlatformGroupsForUser(String userId)
List<String> findUniqueTenantIds()
void setUserStateAndSubState(String userId, String state, String subState)
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 setuserId
- 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
void setUserDefinitionById(String userId, String userDefinitionId)
userId
- the id of the user that needs to have its user definition updateduserDefinitionId
- the user definition id of the new user definitionvoid setUserDefinitionByKey(String userId, String userDefinitionKey, String tenantId)
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@Deprecated default void deactivateUser(String userId, String newSubState)
setUserStateAndSubState(String, String, String)
instead with state UserStates.INACTIVE
UserStates.INACTIVE
. This method should no longer be used as it would be removed.userId
- the id of the user to be deactivatednewSubState
- the optional new sub state to set, leave it null
to not change it@Deprecated default void reactivateUser(String userId, String newSubState)
setUserStateAndSubState(String, String, String)
instead with state UserStates.ACTIVE
UserStates.ACTIVE
. This method should no longer be used as it would be removed.userId
- the id of the user to be reactivatednewSubState
- the optional new sub state to set, leave it null
to not change itdefault void setUserState(String userId, String state)
setUserStateAndSubState(String, String, String)
with subState null
userId
- the id of the user to change its statestate
- the new state to be set on this user objectfor a list of commonly used sub states, although you can create your own ones
,
for more information
default void setUserSubState(String userId, String subState)
setUserStateAndSubState(String, String, String)
with state null
userId
- the id of the user to change its substatesubState
- the new sub state to be set on this user objectfor a list of commonly used sub states, although you can create your own ones
,
for more information
void updateUserPresence(String userId, String presence)
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
<T> Optional<T> getPlatformUserInfo(String userId, String infoName, Class<T> infoClass)
PlatformIdentityInfo findIdentityInfoByUserIdAndName(String userId, String name)
void deletePlatformIdentityInfoById(String id)
void deletePlatformIdentityInfoByUserId(String userId)
IdmProperty findPropertyByName(String name)
void updateProperty(IdmProperty idmProperty)
IdmProperty createProperty(String name, String value)
void deleteProperty(String name)
Copyright © 2019. All rights reserved.