public abstract class BaseIdmIdentityServiceImpl extends CommonEngineServiceImpl<CoreIdmEngineConfiguration> implements PlatformIdentityService
commandExecutor
configuration
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, setCommandExecutor
getConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createNewGroupBuilder, createNewUserBuilder, createPlatformGroupQuery, createPlatformUserQuery, createUpdateGroupBuilder, createUpdateUserBuilder, deactivateUser, findPlatformGroupById, findPlatformGroupsForUser, findPlatformUserById, findUniqueTenantIds, reactivateUser, setUserState, setUserSubState
checkPassword, createMembership, createNativeGroupQuery, createNativeUserQuery, deleteGroup, deleteMembership, deleteUser, getGroupsWithPrivilege, getUsersWithPrivilege, newGroup, newUser, saveGroup, saveUser, updateUserPassword
public BaseIdmIdentityServiceImpl(CoreIdmEngineConfiguration configuration)
public void setUserStateAndSubState(String userId, String state, String subState)
PlatformIdentityService
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 setsetUserStateAndSubState
in interface PlatformIdentityService
userId
- 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
public void setUserStateAndSubState(String userId, String state, String subState, String tenantId)
PlatformIdentityService
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 setsetUserStateAndSubState
in interface PlatformIdentityService
userId
- 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
public void setUserDefinitionById(String userId, String userDefinitionId)
PlatformIdentityService
setUserDefinitionById
in interface PlatformIdentityService
userId
- 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)
PlatformIdentityService
setUserDefinitionByKey
in interface PlatformIdentityService
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 definitionpublic void updateUserPresence(String userId, String presence)
PlatformIdentityService
updateUserPresence
in interface PlatformIdentityService
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 updatedfor known states
public void updateUserPresence(String userId, String tenantId, String presence)
PlatformIdentityService
updateUserPresence
in interface PlatformIdentityService
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
public UserQuery createUserQuery()
createUserQuery
in interface IdmIdentityService
public <T> Optional<T> getPlatformUserInfo(String userId, String name, Class<T> infoClass)
getPlatformUserInfo
in interface PlatformIdentityService
public void setPlatformUserInfo(String userId, String name, Object value)
setPlatformUserInfo
in interface PlatformIdentityService
public PlatformIdentityInfoBuilder createPlatformIdentityInfoBuilder()
PlatformIdentityService
createPlatformIdentityInfoBuilder
in interface PlatformIdentityService
public PlatformIdentityInfoQuery createPlatformIdentityInfoQuery()
PlatformIdentityService
createPlatformIdentityInfoQuery
in interface PlatformIdentityService
public GroupQuery createGroupQuery()
createGroupQuery
in interface IdmIdentityService
public void setAuthenticatedUserId(String authenticatedUserId)
setAuthenticatedUserId
in interface IdmIdentityService
public Token newToken(String tokenId)
newToken
in interface IdmIdentityService
public void saveToken(Token token)
saveToken
in interface IdmIdentityService
public void deleteToken(String tokenId)
deleteToken
in interface IdmIdentityService
public TokenQuery createTokenQuery()
createTokenQuery
in interface IdmIdentityService
public NativeTokenQuery createNativeTokenQuery()
createNativeTokenQuery
in interface IdmIdentityService
public void setUserPicture(String userId, Picture picture)
setUserPicture
in interface IdmIdentityService
public Picture getUserPicture(String userId)
getUserPicture
in interface IdmIdentityService
public String getUserInfo(String userId, String key)
getUserInfo
in interface IdmIdentityService
public List<String> getUserInfoKeys(String userId)
getUserInfoKeys
in interface IdmIdentityService
public void setUserInfo(String userId, String key, String value)
setUserInfo
in interface IdmIdentityService
public void deleteUserInfo(String userId, String key)
deleteUserInfo
in interface IdmIdentityService
public Privilege createPrivilege(String name)
createPrivilege
in interface IdmIdentityService
public void addUserPrivilegeMapping(String privilegeId, String userId)
addUserPrivilegeMapping
in interface IdmIdentityService
public void deleteUserPrivilegeMapping(String privilegeId, String userId)
deleteUserPrivilegeMapping
in interface IdmIdentityService
public void addGroupPrivilegeMapping(String privilegeId, String groupId)
addGroupPrivilegeMapping
in interface IdmIdentityService
public void deleteGroupPrivilegeMapping(String privilegeId, String groupId)
deleteGroupPrivilegeMapping
in interface IdmIdentityService
public List<PrivilegeMapping> getPrivilegeMappingsByPrivilegeId(String privilegeId)
getPrivilegeMappingsByPrivilegeId
in interface IdmIdentityService
public void deletePrivilege(String id)
deletePrivilege
in interface IdmIdentityService
public PrivilegeQuery createPrivilegeQuery()
createPrivilegeQuery
in interface IdmIdentityService
public PlatformIdentityInfo findIdentityInfoByUserIdAndName(String userId, String name)
findIdentityInfoByUserIdAndName
in interface PlatformIdentityService
public void deletePlatformIdentityInfoById(String id)
PlatformIdentityService
deletePlatformIdentityInfoById
in interface PlatformIdentityService
id
- the id of the identity info entrypublic void deletePlatformIdentityInfoByUserId(String userId)
PlatformIdentityService
deletePlatformIdentityInfoByUserId
in interface PlatformIdentityService
userId
- the id of the userpublic void deletePlatformIdentityInfoByUserIdAndTenantId(String userId, String tenantId)
PlatformIdentityService
deletePlatformIdentityInfoByUserIdAndTenantId
in interface PlatformIdentityService
userId
- the id of the usertenantId
- the id of the tenantpublic TokenAuthenticationBuilder createAuthenticationTokenBuilder()
PlatformIdentityService
createAuthenticationTokenBuilder
in interface PlatformIdentityService
public IdmProperty findPropertyByName(String name)
findPropertyByName
in interface PlatformIdentityService
public void updateProperty(IdmProperty idmProperty)
updateProperty
in interface PlatformIdentityService
public IdmProperty createProperty(String name, String value)
createProperty
in interface PlatformIdentityService
public void deleteProperty(String name)
deleteProperty
in interface PlatformIdentityService