public abstract class BaseIdmIdentityServiceImpl extends CommonEngineServiceImpl<CoreIdmEngineConfiguration> implements PlatformIdentityService
commandExecutorconfiguration| Constructor and Description |
|---|
BaseIdmIdentityServiceImpl(CoreIdmEngineConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroupPrivilegeMapping(String privilegeId,
String groupId) |
void |
addUserPrivilegeMapping(String privilegeId,
String userId) |
TokenAuthenticationBuilder |
createAuthenticationTokenBuilder()
Create a token authentication builder with which authentication tokens can be created.
|
GroupQuery |
createGroupQuery() |
NativeTokenQuery |
createNativeTokenQuery() |
PlatformIdentityInfoBuilder |
createPlatformIdentityInfoBuilder()
Create a builder for updating or creating a platform identity info.
|
PlatformIdentityInfoQuery |
createPlatformIdentityInfoQuery()
Create a query for querying platform identity infos.
|
Privilege |
createPrivilege(String name) |
PrivilegeQuery |
createPrivilegeQuery() |
IdmProperty |
createProperty(String name,
String value) |
TokenQuery |
createTokenQuery() |
UserQuery |
createUserQuery() |
void |
deleteGroupPrivilegeMapping(String privilegeId,
String groupId) |
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 |
deletePrivilege(String id) |
void |
deleteProperty(String name) |
void |
deleteToken(String tokenId) |
void |
deleteUserInfo(String userId,
String key) |
void |
deleteUserPrivilegeMapping(String privilegeId,
String userId) |
PlatformIdentityInfo |
findIdentityInfoByUserIdAndName(String userId,
String name) |
IdmProperty |
findPropertyByName(String name) |
<T> Optional<T> |
getPlatformUserInfo(String userId,
String name,
Class<T> infoClass) |
List<PrivilegeMapping> |
getPrivilegeMappingsByPrivilegeId(String privilegeId) |
String |
getUserInfo(String userId,
String key) |
List<String> |
getUserInfoKeys(String userId) |
Picture |
getUserPicture(String userId) |
Token |
newToken(String tokenId) |
void |
saveToken(Token token) |
void |
setAuthenticatedUserId(String authenticatedUserId) |
void |
setPlatformUserInfo(String userId,
String name,
Object value) |
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.
|
void |
setUserInfo(String userId,
String key,
String value) |
void |
setUserPicture(String userId,
Picture picture) |
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.
|
void |
updateProperty(IdmProperty idmProperty) |
void |
updateUserPresence(String userId,
String presence)
Updates the presence status of the user
|
void |
updateUserPresence(String userId,
String tenantId,
String presence)
Updates the presence status of the user in the given tenant
|
getCommandExecutor, setCommandExecutorgetConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateNewGroupBuilder, createNewUserBuilder, createPlatformGroupQuery, createPlatformUserQuery, createUpdateGroupBuilder, createUpdateUserBuilder, deactivateUser, findPlatformGroupById, findPlatformGroupsForUser, findPlatformUserById, findUniqueTenantIds, reactivateUser, setUserState, setUserSubStatecheckPassword, createMembership, createNativeGroupQuery, createNativeUserQuery, deleteGroup, deleteMembership, deleteUser, getGroupsWithPrivilege, getUsersWithPrivilege, newGroup, newUser, saveGroup, saveUser, updateUserPasswordpublic BaseIdmIdentityServiceImpl(CoreIdmEngineConfiguration configuration)
public void setUserStateAndSubState(String userId, String state, String subState)
PlatformIdentityServicenull 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 setsetUserStateAndSubState in interface PlatformIdentityServiceuserId - 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 onespublic void setUserStateAndSubState(String userId, String state, String subState, String tenantId)
PlatformIdentityServicenull 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 setsetUserStateAndSubState in interface PlatformIdentityServiceuserId - 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 onespublic void setUserDefinitionById(String userId, String userDefinitionId)
PlatformIdentityServicesetUserDefinitionById in interface PlatformIdentityServiceuserId - the id of the user that needs to have its user definition updateduserDefinitionId - the user definition id of the new user definitionpublic void setUserDefinitionByKey(String userId, String userDefinitionKey, String tenantId)
PlatformIdentityServicesetUserDefinitionByKey in interface PlatformIdentityServiceuserId - 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 definitionpublic void updateUserPresence(String userId, String presence)
PlatformIdentityServiceupdateUserPresence in interface PlatformIdentityServiceuserId - 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 statespublic void updateUserPresence(String userId, String tenantId, String presence)
PlatformIdentityServiceupdateUserPresence in interface PlatformIdentityServiceuserId - 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 statespublic UserQuery createUserQuery()
createUserQuery in interface IdmIdentityServicepublic <T> Optional<T> getPlatformUserInfo(String userId, String name, Class<T> infoClass)
getPlatformUserInfo in interface PlatformIdentityServicepublic void setPlatformUserInfo(String userId, String name, Object value)
setPlatformUserInfo in interface PlatformIdentityServicepublic PlatformIdentityInfoBuilder createPlatformIdentityInfoBuilder()
PlatformIdentityServicecreatePlatformIdentityInfoBuilder in interface PlatformIdentityServicepublic PlatformIdentityInfoQuery createPlatformIdentityInfoQuery()
PlatformIdentityServicecreatePlatformIdentityInfoQuery in interface PlatformIdentityServicepublic GroupQuery createGroupQuery()
createGroupQuery in interface IdmIdentityServicepublic void setAuthenticatedUserId(String authenticatedUserId)
setAuthenticatedUserId in interface IdmIdentityServicepublic Token newToken(String tokenId)
newToken in interface IdmIdentityServicepublic void saveToken(Token token)
saveToken in interface IdmIdentityServicepublic void deleteToken(String tokenId)
deleteToken in interface IdmIdentityServicepublic TokenQuery createTokenQuery()
createTokenQuery in interface IdmIdentityServicepublic NativeTokenQuery createNativeTokenQuery()
createNativeTokenQuery in interface IdmIdentityServicepublic void setUserPicture(String userId, Picture picture)
setUserPicture in interface IdmIdentityServicepublic Picture getUserPicture(String userId)
getUserPicture in interface IdmIdentityServicepublic String getUserInfo(String userId, String key)
getUserInfo in interface IdmIdentityServicepublic List<String> getUserInfoKeys(String userId)
getUserInfoKeys in interface IdmIdentityServicepublic void setUserInfo(String userId, String key, String value)
setUserInfo in interface IdmIdentityServicepublic void deleteUserInfo(String userId, String key)
deleteUserInfo in interface IdmIdentityServicepublic Privilege createPrivilege(String name)
createPrivilege in interface IdmIdentityServicepublic void addUserPrivilegeMapping(String privilegeId, String userId)
addUserPrivilegeMapping in interface IdmIdentityServicepublic void deleteUserPrivilegeMapping(String privilegeId, String userId)
deleteUserPrivilegeMapping in interface IdmIdentityServicepublic void addGroupPrivilegeMapping(String privilegeId, String groupId)
addGroupPrivilegeMapping in interface IdmIdentityServicepublic void deleteGroupPrivilegeMapping(String privilegeId, String groupId)
deleteGroupPrivilegeMapping in interface IdmIdentityServicepublic List<PrivilegeMapping> getPrivilegeMappingsByPrivilegeId(String privilegeId)
getPrivilegeMappingsByPrivilegeId in interface IdmIdentityServicepublic void deletePrivilege(String id)
deletePrivilege in interface IdmIdentityServicepublic PrivilegeQuery createPrivilegeQuery()
createPrivilegeQuery in interface IdmIdentityServicepublic PlatformIdentityInfo findIdentityInfoByUserIdAndName(String userId, String name)
findIdentityInfoByUserIdAndName in interface PlatformIdentityServicepublic void deletePlatformIdentityInfoById(String id)
PlatformIdentityServicedeletePlatformIdentityInfoById in interface PlatformIdentityServiceid - the id of the identity info entrypublic void deletePlatformIdentityInfoByUserId(String userId)
PlatformIdentityServicedeletePlatformIdentityInfoByUserId in interface PlatformIdentityServiceuserId - the id of the userpublic void deletePlatformIdentityInfoByUserIdAndTenantId(String userId, String tenantId)
PlatformIdentityServicedeletePlatformIdentityInfoByUserIdAndTenantId in interface PlatformIdentityServiceuserId - the id of the usertenantId - the id of the tenantpublic TokenAuthenticationBuilder createAuthenticationTokenBuilder()
PlatformIdentityServicecreateAuthenticationTokenBuilder in interface PlatformIdentityServicepublic IdmProperty findPropertyByName(String name)
findPropertyByName in interface PlatformIdentityServicepublic void updateProperty(IdmProperty idmProperty)
updateProperty in interface PlatformIdentityServicepublic IdmProperty createProperty(String name, String value)
createProperty in interface PlatformIdentityServicepublic void deleteProperty(String name)
deleteProperty in interface PlatformIdentityService