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 Summary
All 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.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
-
-
-
-
Method Detail
-
createNewUserBuilder
PlatformUserBuilder 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
-
createUpdateUserBuilder
PlatformUserBuilder createUpdateUserBuilder(String userId)
-
createNewGroupBuilder
PlatformGroupBuilder createNewGroupBuilder(String groupId)
-
createUpdateGroupBuilder
PlatformGroupBuilder createUpdateGroupBuilder(String groupId)
-
findPlatformUserById
@Deprecated PlatformUser findPlatformUserById(String userId)
Deprecated.usecreatePlatformUserQuery()instead
-
createPlatformUserQuery
PlatformUserQuery createPlatformUserQuery()
-
createPlatformGroupQuery
PlatformGroupQuery createPlatformGroupQuery()
-
findPlatformGroupById
@Deprecated PlatformGroup findPlatformGroupById(String groupId)
Deprecated.usercreatePlatformGroupQuery()instead
-
findPlatformGroupsForUser
@Deprecated List<PlatformGroup> findPlatformGroupsForUser(String userId)
Deprecated.usecreatePlatformGroupQuery()withPlatformGroupQuery.groupMember(String)instead.
-
createPlatformIdentityInfoBuilder
PlatformIdentityInfoBuilder createPlatformIdentityInfoBuilder()
Create a builder for updating or creating a platform identity info.
-
createPlatformIdentityInfoQuery
PlatformIdentityInfoQuery createPlatformIdentityInfoQuery()
Create a query for querying platform identity infos.
-
findUniqueTenantIds
List<String> findUniqueTenantIds()
Find the unique tenant ids- Returns:
- a list of the unique tenant ids
-
setUserStateAndSubState
void 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 updatedstate- the optional new state to set, ifnullit won't be changedsubState- the optional new subState to set, ifnullit 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
-
setUserStateAndSubState
void 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 updatedstate- the optional new state to set, ifnullit won't be changedsubState- the optional new subState to set, ifnullit won't be changedtenantId- 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
-
setUserDefinitionById
void 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 updateduserDefinitionId- the user definition id of the new user definition
-
setUserDefinitionByKey
void 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 updateduserDefinitionKey- the key of the new user definitiontenantId- 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 deactivatednewSubState- the optional new sub state to set, leave itnullto 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 reactivatednewSubState- the optional new sub state to set, leave itnullto not change it
-
setUserState
default 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 statestate- 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
-
setUserSubState
default 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 substatesubState- 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 updatedpresence- the id of the user for which the presence status needs to be updated- See Also:
for known states
-
updateUserPresence
void 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 updatedtenantId- the id of tenant in which the presence status needs to be updatedpresence- 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.
-
deletePlatformIdentityInfoById
void deletePlatformIdentityInfoById(String id)
Delete the platform identity info entry for the given id- Parameters:
id- the id of the identity info entry
-
deletePlatformIdentityInfoByUserId
void deletePlatformIdentityInfoByUserId(String userId)
Delete all platform identity info entries of the user- Parameters:
userId- the id of the user
-
deletePlatformIdentityInfoByUserIdAndTenantId
void deletePlatformIdentityInfoByUserIdAndTenantId(String userId, String tenantId)
Delete all platform identity info entries of the user in the given tenant- Parameters:
userId- the id of the usertenantId- the id of the tenant
-
createAuthenticationTokenBuilder
TokenAuthenticationBuilder createAuthenticationTokenBuilder()
Create a token authentication builder with which authentication tokens can be created.- Returns:
- the token authentication builder
-
findPropertyByName
IdmProperty findPropertyByName(String name)
-
updateProperty
void updateProperty(IdmProperty idmProperty)
-
createProperty
IdmProperty createProperty(String name, String value)
-
deleteProperty
void deleteProperty(String name)
-
-