Package com.flowable.core.idm.api
Interface PlatformIdentityService
- All Superinterfaces:
org.flowable.idm.api.IdmIdentityService
- All Known Implementing Classes:
BaseIdmIdentityServiceImpl
,IdmIdentityServiceImpl
,LdapIdmIdentityService
,ReadOnlyIdmIdentityService
public interface PlatformIdentityService
extends org.flowable.idm.api.IdmIdentityService
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and Type Method Description PlatformGroupBuilder
createNewGroupBuilder(java.lang.String groupId)
PlatformUserBuilder
createNewUserBuilder(java.lang.String userId)
Create user builder for a new user with iduserId
.PlatformGroupQuery
createPlatformGroupQuery()
PlatformIdentityInfoBuilder
createPlatformIdentityInfoBuilder()
Create a builder for updating or creating a platform identity info.PlatformIdentityInfoQuery
createPlatformIdentityInfoQuery()
Create a query for querying platform identity infos.PlatformUserQuery
createPlatformUserQuery()
IdmProperty
createProperty(java.lang.String name, java.lang.String value)
PlatformGroupBuilder
createUpdateGroupBuilder(java.lang.String groupId)
PlatformUserBuilder
createUpdateUserBuilder(java.lang.String userId)
default void
deactivateUser(java.lang.String userId, java.lang.String newSubState)
Deprecated.usesetUserStateAndSubState(String, String, String)
instead with stateUserStates.INACTIVE
void
deletePlatformIdentityInfoById(java.lang.String id)
void
deletePlatformIdentityInfoByUserId(java.lang.String userId)
void
deleteProperty(java.lang.String name)
PlatformIdentityInfo
findIdentityInfoByUserIdAndName(java.lang.String userId, java.lang.String name)
Deprecated.PlatformGroup
findPlatformGroupById(java.lang.String groupId)
Deprecated.usercreatePlatformGroupQuery()
insteadjava.util.List<PlatformGroup>
findPlatformGroupsForUser(java.lang.String userId)
Deprecated.usecreatePlatformGroupQuery()
withPlatformGroupQuery.groupMember(String)
instead.PlatformUser
findPlatformUserById(java.lang.String userId)
Deprecated.usecreatePlatformUserQuery()
insteadIdmProperty
findPropertyByName(java.lang.String name)
java.util.List<java.lang.String>
findUniqueTenantIds()
Find the unique tenant ids<T> java.util.Optional<T>
getPlatformUserInfo(java.lang.String userId, java.lang.String infoName, java.lang.Class<T> infoClass)
Deprecated.default void
reactivateUser(java.lang.String userId, java.lang.String newSubState)
Deprecated.usesetUserStateAndSubState(String, String, String)
instead with stateUserStates.ACTIVE
void
setPlatformUserInfo(java.lang.String userId, java.lang.String infoName, java.lang.Object value)
Deprecated.usecreatePlatformIdentityInfoBuilder()
insteadvoid
setUserDefinitionById(java.lang.String userId, java.lang.String userDefinitionId)
Update the user definition of the provided user.void
setUserDefinitionByKey(java.lang.String userId, java.lang.String userDefinitionKey, java.lang.String tenantId)
Update the user definition of the provided user.default void
setUserState(java.lang.String userId, java.lang.String state)
Set the state of this user object.void
setUserStateAndSubState(java.lang.String userId, java.lang.String state, java.lang.String subState)
Update the state and/or subState of the provided user.void
setUserStateAndSubState(java.lang.String userId, java.lang.String state, java.lang.String subState, java.lang.String tenantId)
Update the state and/or subState of the provided user.default void
setUserSubState(java.lang.String userId, java.lang.String subState)
Set the sub state of this user object.void
updateProperty(IdmProperty idmProperty)
void
updateUserPresence(java.lang.String userId, java.lang.String presence)
Deprecated.useupdateUserPresence(String, String, String)
insteadvoid
updateUserPresence(java.lang.String userId, java.lang.String tenantId, java.lang.String presence)
Updates the presence status of the user in the given tenantMethods 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 Details
-
createNewUserBuilder
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
-
createNewGroupBuilder
-
createUpdateGroupBuilder
-
findPlatformUserById
Deprecated.usecreatePlatformUserQuery()
instead -
createPlatformUserQuery
PlatformUserQuery createPlatformUserQuery() -
createPlatformGroupQuery
PlatformGroupQuery createPlatformGroupQuery() -
findPlatformGroupById
Deprecated.usercreatePlatformGroupQuery()
instead -
findPlatformGroupsForUser
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
java.util.List<java.lang.String> findUniqueTenantIds()Find the unique tenant ids- Returns:
- a list of the unique tenant ids
-
setUserStateAndSubState
void setUserStateAndSubState(java.lang.String userId, java.lang.String state, java.lang.String subState)Update the state and/or subState of the provided user. If the value for the state isnull
then the state of the user won't be changed. If the value for the subState isnull
then 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, ifnull
it won't be changedsubState
- the optional new subState to set, ifnull
it 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(java.lang.String userId, java.lang.String state, java.lang.String subState, java.lang.String tenantId)Update the state and/or subState of the provided user. If the value for the state isnull
then the state of the user won't be changed. If the value for the subState isnull
then 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, ifnull
it won't be changedsubState
- the optional new subState to set, ifnull
it 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(java.lang.String userId, java.lang.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(java.lang.String userId, java.lang.String userDefinitionKey, java.lang.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(java.lang.String userId, java.lang.String newSubState)Deprecated.usesetUserStateAndSubState(String, String, String)
instead with stateUserStates.INACTIVE
Sets 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 itnull
to not change it
-
reactivateUser
@Deprecated default void reactivateUser(java.lang.String userId, java.lang.String newSubState)Deprecated.usesetUserStateAndSubState(String, String, String)
instead with stateUserStates.ACTIVE
Sets 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 itnull
to not change it
-
setUserState
default void setUserState(java.lang.String userId, java.lang.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(java.lang.String userId, java.lang.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(java.lang.String userId, java.lang.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(java.lang.String userId, java.lang.String tenantId, java.lang.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(java.lang.String userId, java.lang.String infoName, java.lang.Object value)Deprecated.usecreatePlatformIdentityInfoBuilder()
instead -
getPlatformUserInfo
@Deprecated <T> java.util.Optional<T> getPlatformUserInfo(java.lang.String userId, java.lang.String infoName, java.lang.Class<T> infoClass)Deprecated. -
findIdentityInfoByUserIdAndName
@Deprecated PlatformIdentityInfo findIdentityInfoByUserIdAndName(java.lang.String userId, java.lang.String name)Deprecated. -
deletePlatformIdentityInfoById
void deletePlatformIdentityInfoById(java.lang.String id) -
deletePlatformIdentityInfoByUserId
void deletePlatformIdentityInfoByUserId(java.lang.String userId) -
findPropertyByName
-
updateProperty
-
createProperty
-
deleteProperty
void deleteProperty(java.lang.String name)
-