Package com.flowable.core.idm.api
Interface PlatformIdentityService
- 
- All Superinterfaces:
- IdmIdentityService
 - All Known Implementing Classes:
- BaseIdmIdentityServiceImpl,- IdmIdentityServiceImpl,- LdapIdmIdentityService,- ReadOnlyIdmIdentityService
 
 public interface PlatformIdentityService extends IdmIdentityService - Author:
- Filip Hrisafov
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description TokenAuthenticationBuildercreateAuthenticationTokenBuilder()Create a token authentication builder with which authentication tokens can be created.PlatformGroupBuildercreateNewGroupBuilder(String groupId)PlatformUserBuildercreateNewUserBuilder(String userId)Create user builder for a new user with iduserId.PlatformGroupQuerycreatePlatformGroupQuery()PlatformIdentityInfoBuildercreatePlatformIdentityInfoBuilder()Create a builder for updating or creating a platform identity info.PlatformIdentityInfoQuerycreatePlatformIdentityInfoQuery()Create a query for querying platform identity infos.PlatformUserQuerycreatePlatformUserQuery()IdmPropertycreateProperty(String name, String value)PlatformGroupBuildercreateUpdateGroupBuilder(String groupId)PlatformUserBuildercreateUpdateUserBuilder(String userId)default voiddeactivateUser(String userId, String newSubState)Deprecated.usesetUserStateAndSubState(String, String, String)instead with stateUserStates.INACTIVEvoiddeletePlatformIdentityInfoById(String id)Delete the platform identity info entry for the given idvoiddeletePlatformIdentityInfoByUserId(String userId)Delete all platform identity info entries of the uservoiddeletePlatformIdentityInfoByUserIdAndTenantId(String userId, String tenantId)Delete all platform identity info entries of the user in the given tenantvoiddeleteProperty(String name)PlatformIdentityInfofindIdentityInfoByUserIdAndName(String userId, String name)Deprecated.PlatformGroupfindPlatformGroupById(String groupId)Deprecated.usercreatePlatformGroupQuery()insteadList<PlatformGroup>findPlatformGroupsForUser(String userId)Deprecated.usecreatePlatformGroupQuery()withPlatformGroupQuery.groupMember(String)instead.PlatformUserfindPlatformUserById(String userId)Deprecated.usecreatePlatformUserQuery()insteadIdmPropertyfindPropertyByName(String name)List<String>findUniqueTenantIds()Find the unique tenant ids<T> Optional<T>getPlatformUserInfo(String userId, String infoName, Class<T> infoClass)Deprecated.default voidreactivateUser(String userId, String newSubState)Deprecated.usesetUserStateAndSubState(String, String, String)instead with stateUserStates.ACTIVEvoidsetPlatformUserInfo(String userId, String infoName, Object value)Deprecated.usecreatePlatformIdentityInfoBuilder()insteadvoidsetUserDefinitionById(String userId, String userDefinitionId)Update the user definition of the provided user.voidsetUserDefinitionByKey(String userId, String userDefinitionKey, String tenantId)Update the user definition of the provided user.default voidsetUserState(String userId, String state)Set the state of this user object.voidsetUserStateAndSubState(String userId, String state, String subState)Update the state and/or subState of the provided user.voidsetUserStateAndSubState(String userId, String state, String subState, String tenantId)Update the state and/or subState of the provided user.default voidsetUserSubState(String userId, String subState)Set the sub state of this user object.voidupdateProperty(IdmProperty idmProperty)voidupdateUserPresence(String userId, String presence)Deprecated.useupdateUserPresence(String, String, String)insteadvoidupdateUserPresence(String userId, String tenantId, String presence)Updates the presence status of the user in the given tenant- 
Methods inherited from interface org.flowable.idm.api.IdmIdentityServiceaddGroupPrivilegeMapping, 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
 
- 
 
- 
- 
- 
Method Detail- 
createNewUserBuilderPlatformUserBuilder createNewUserBuilder(String userId) Create user builder for a new user with iduserId. The user is transient and must be saved usingPlatformUserBuilder.save()- Parameters:
- userId- the id of the new user
 
 - 
createUpdateUserBuilderPlatformUserBuilder createUpdateUserBuilder(String userId) 
 - 
createNewGroupBuilderPlatformGroupBuilder createNewGroupBuilder(String groupId) 
 - 
createUpdateGroupBuilderPlatformGroupBuilder createUpdateGroupBuilder(String groupId) 
 - 
findPlatformUserById@Deprecated PlatformUser findPlatformUserById(String userId) Deprecated.usecreatePlatformUserQuery()instead
 - 
createPlatformUserQueryPlatformUserQuery createPlatformUserQuery() 
 - 
createPlatformGroupQueryPlatformGroupQuery createPlatformGroupQuery() 
 - 
findPlatformGroupById@Deprecated PlatformGroup findPlatformGroupById(String groupId) Deprecated.usercreatePlatformGroupQuery()instead
 - 
findPlatformGroupsForUser@Deprecated List<PlatformGroup> findPlatformGroupsForUser(String userId) Deprecated.usecreatePlatformGroupQuery()withPlatformGroupQuery.groupMember(String)instead.
 - 
createPlatformIdentityInfoBuilderPlatformIdentityInfoBuilder createPlatformIdentityInfoBuilder() Create a builder for updating or creating a platform identity info.
 - 
createPlatformIdentityInfoQueryPlatformIdentityInfoQuery createPlatformIdentityInfoQuery() Create a query for querying platform identity infos.
 - 
findUniqueTenantIdsList<String> findUniqueTenantIds() Find the unique tenant ids- Returns:
- a list of the unique tenant ids
 
 - 
setUserStateAndSubStatevoid setUserStateAndSubState(String userId, String state, String subState) Update the state and/or subState of the provided user. If the value for the state isnullthen the state of the user won't be changed. If the value for the subState isnullthen the subState of the user won't be changed. At least one of state and / or subState must be set- Parameters:
- userId- the id of the user that needs to have its state updated
- state- the optional new state to set, if- nullit won't be changed
- subState- the optional new subState to set, if- nullit won't be changed
- See Also:
- for 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
 
 - 
setUserStateAndSubStatevoid setUserStateAndSubState(String userId, String state, String subState, String tenantId) Update the state and/or subState of the provided user. If the value for the state isnullthen the state of the user won't be changed. If the value for the subState isnullthen the subState of the user won't be changed. At least one of state and / or subState must be set- Parameters:
- userId- the id of the user that needs to have its state updated
- state- the optional new state to set, if- nullit won't be changed
- subState- the optional new subState to set, if- nullit won't be changed
- tenantId- the tenant id in which the change should be done
- See Also:
- for 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
 
 - 
setUserDefinitionByIdvoid setUserDefinitionById(String userId, String userDefinitionId) Update the user definition of the provided user.- Parameters:
- userId- the id of the user that needs to have its user definition updated
- userDefinitionId- the user definition id of the new user definition
 
 - 
setUserDefinitionByKeyvoid setUserDefinitionByKey(String userId, String userDefinitionKey, String tenantId) Update the user definition of the provided user.- Parameters:
- userId- the id of the user that needs to have its user definition updated
- userDefinitionKey- the key of the new user definition
- tenantId- the tenant id of the new user definition
 
 - 
deactivateUser@Deprecated default void deactivateUser(String userId, String newSubState) Deprecated.usesetUserStateAndSubState(String, String, String)instead with stateUserStates.INACTIVESets the user state toUserStates.INACTIVE. This method should no longer be used as it would be removed.- Parameters:
- userId- the id of the user to be deactivated
- newSubState- the optional new sub state to set, leave it- nullto not change it
 
 - 
reactivateUser@Deprecated default void reactivateUser(String userId, String newSubState) Deprecated.usesetUserStateAndSubState(String, String, String)instead with stateUserStates.ACTIVESets the user state toUserStates.ACTIVE. This method should no longer be used as it would be removed.- Parameters:
- userId- the id of the user to be reactivated
- newSubState- the optional new sub state to set, leave it- nullto not change it
 
 - 
setUserStatedefault void setUserState(String userId, String state) Set the state of this user object. By default this method delegates tosetUserStateAndSubState(String, String, String)with subStatenull- Parameters:
- userId- the id of the user to change its state
- state- the new state to be set on this user object
- See Also:
- for a list of commonly used sub states, although you can create your own ones,- for more information
 
 - 
setUserSubStatedefault void setUserSubState(String userId, String subState) Set the sub state of this user object. The sub state might be used to more specifically describe the current state of the user. By default this method delegates tosetUserStateAndSubState(String, String, String)with statenull- Parameters:
- userId- the id of the user to change its substate
- subState- the new sub state to be set on this user object
- See Also:
- for a list of commonly used sub states, although you can create your own ones,- for more information
 
 - 
updateUserPresence@Deprecated void updateUserPresence(String userId, String presence) Deprecated.useupdateUserPresence(String, String, String)insteadUpdates the presence status of the user- Parameters:
- userId- the id of the user for which the presence status needs to be updated
- presence- the id of the user for which the presence status needs to be updated
- See Also:
- for known states
 
 - 
updateUserPresencevoid updateUserPresence(String userId, String tenantId, String presence) Updates the presence status of the user in the given tenant- Parameters:
- userId- the id of the user for which the presence status needs to be updated
- tenantId- the id of tenant in which the presence status needs to be updated
- presence- the id of the user for which the presence status needs to be updated
- See Also:
- for known states
 
 - 
setPlatformUserInfo@Deprecated void setPlatformUserInfo(String userId, String infoName, Object value) Deprecated.usecreatePlatformIdentityInfoBuilder()instead
 - 
getPlatformUserInfo@Deprecated <T> Optional<T> getPlatformUserInfo(String userId, String infoName, Class<T> infoClass) Deprecated.
 - 
findIdentityInfoByUserIdAndName@Deprecated PlatformIdentityInfo findIdentityInfoByUserIdAndName(String userId, String name) Deprecated.
 - 
deletePlatformIdentityInfoByIdvoid deletePlatformIdentityInfoById(String id) Delete the platform identity info entry for the given id- Parameters:
- id- the id of the identity info entry
 
 - 
deletePlatformIdentityInfoByUserIdvoid deletePlatformIdentityInfoByUserId(String userId) Delete all platform identity info entries of the user- Parameters:
- userId- the id of the user
 
 - 
deletePlatformIdentityInfoByUserIdAndTenantIdvoid deletePlatformIdentityInfoByUserIdAndTenantId(String userId, String tenantId) Delete all platform identity info entries of the user in the given tenant- Parameters:
- userId- the id of the user
- tenantId- the id of the tenant
 
 - 
createAuthenticationTokenBuilderTokenAuthenticationBuilder createAuthenticationTokenBuilder() Create a token authentication builder with which authentication tokens can be created.- Returns:
- the token authentication builder
 
 - 
findPropertyByNameIdmProperty findPropertyByName(String name) 
 - 
updatePropertyvoid updateProperty(IdmProperty idmProperty) 
 - 
createPropertyIdmProperty createProperty(String name, String value) 
 - 
deletePropertyvoid deleteProperty(String name) 
 
- 
 
-