public interface PlatformIdentityService extends IdmIdentityService
Modifier and Type | Method and Description |
---|---|
TokenAuthenticationBuilder |
createAuthenticationTokenBuilder()
Create a token authentication builder with which authentication tokens can be created.
|
PlatformGroupBuilder |
createNewGroupBuilder(String groupId) |
PlatformUserBuilder |
createNewUserBuilder(String userId)
Create user builder for a new user with id
userId . |
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(String name,
String value) |
PlatformGroupBuilder |
createUpdateGroupBuilder(String groupId) |
PlatformUserBuilder |
createUpdateUserBuilder(String userId) |
default void |
deactivateUser(String userId,
String newSubState)
Deprecated.
use
setUserStateAndSubState(String, String, String) instead with state UserStates.INACTIVE |
void |
deletePlatformIdentityInfoById(String id)
Delete the platform identity info entry for the given id
|
void |
deletePlatformIdentityInfoByUserId(String userId)
Delete all platform identity info entries of the user
|
void |
deletePlatformIdentityInfoByUserIdAndTenantId(String userId,
String tenantId)
Delete all platform identity info entries of the user in the given tenant
|
void |
deleteProperty(String name) |
PlatformIdentityInfo |
findIdentityInfoByUserIdAndName(String userId,
String name)
Deprecated.
|
PlatformGroup |
findPlatformGroupById(String groupId)
Deprecated.
user
createPlatformGroupQuery() instead |
List<PlatformGroup> |
findPlatformGroupsForUser(String userId)
Deprecated.
use
createPlatformGroupQuery() with PlatformGroupQuery.groupMember(String) instead. |
PlatformUser |
findPlatformUserById(String userId)
Deprecated.
use
createPlatformUserQuery() instead |
IdmProperty |
findPropertyByName(String name) |
List<String> |
findUniqueTenantIds()
Find the unique tenant ids
|
<T> Optional<T> |
getPlatformUserInfo(String userId,
String infoName,
Class<T> infoClass)
Deprecated.
|
default void |
reactivateUser(String userId,
String newSubState)
Deprecated.
use
setUserStateAndSubState(String, String, String) instead with state UserStates.ACTIVE |
void |
setPlatformUserInfo(String userId,
String infoName,
Object value)
Deprecated.
use
createPlatformIdentityInfoBuilder() instead |
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.
|
default void |
setUserState(String userId,
String state)
Set the state of this user object.
|
void |
setUserStateAndSubState(String userId,
String state,
String subState)
Update the state and/or subState of the provided user.
|
void |
setUserStateAndSubState(String userId,
String state,
String subState,
String tenantId)
Update the state and/or subState of the provided user.
|
default void |
setUserSubState(String userId,
String subState)
Set the sub state of this user object.
|
void |
updateProperty(IdmProperty idmProperty) |
void |
updateUserPresence(String userId,
String presence)
Deprecated.
use
updateUserPresence(String, String, String) instead |
void |
updateUserPresence(String userId,
String tenantId,
String presence)
Updates the presence status of the user in the given tenant
|
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)
@Deprecated PlatformUser findPlatformUserById(String userId)
createPlatformUserQuery()
insteadPlatformUserQuery createPlatformUserQuery()
PlatformGroupQuery createPlatformGroupQuery()
@Deprecated PlatformGroup findPlatformGroupById(String groupId)
createPlatformGroupQuery()
instead@Deprecated List<PlatformGroup> findPlatformGroupsForUser(String userId)
createPlatformGroupQuery()
with PlatformGroupQuery.groupMember(String)
instead.PlatformIdentityInfoBuilder createPlatformIdentityInfoBuilder()
PlatformIdentityInfoQuery createPlatformIdentityInfoQuery()
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 setUserStateAndSubState(String userId, String state, String subState, String tenantId)
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 changedtenantId
- the tenant id in which the change should be donefor 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
@Deprecated void updateUserPresence(String userId, String presence)
updateUserPresence(String, String, String)
insteaduserId
- 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
void updateUserPresence(String userId, String tenantId, String presence)
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 updatedfor known states
@Deprecated void setPlatformUserInfo(String userId, String infoName, Object value)
createPlatformIdentityInfoBuilder()
instead@Deprecated <T> Optional<T> getPlatformUserInfo(String userId, String infoName, Class<T> infoClass)
@Deprecated PlatformIdentityInfo findIdentityInfoByUserIdAndName(String userId, String name)
void deletePlatformIdentityInfoById(String id)
id
- the id of the identity info entryvoid deletePlatformIdentityInfoByUserId(String userId)
userId
- the id of the uservoid deletePlatformIdentityInfoByUserIdAndTenantId(String userId, String tenantId)
userId
- the id of the usertenantId
- the id of the tenantTokenAuthenticationBuilder createAuthenticationTokenBuilder()
IdmProperty findPropertyByName(String name)
void updateProperty(IdmProperty idmProperty)
IdmProperty createProperty(String name, String value)
void deleteProperty(String name)