public class UserIdentityHandler extends Object
| Constructor and Description |
|---|
UserIdentityHandler(String serviceName,
InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
RepositoryErrorHandler errorHandler)
Construct the discovery engine configuration handler caching the objects
needed to operate within a single server instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIdentityToProfile(String userId,
String profileGUID,
String newIdentity,
String methodName)
Link a user identity to a profile.
|
String |
addUserIdentity(String userId,
String profileUserId,
String methodName)
Add the UserIdentity entity for a PersonalProfile.
|
UserIdentity |
getUserIdentity(EntityDetail userIdentityEntity)
Create a userIdentity from an entity.
|
void |
removeIdentityFromProfile(String userId,
String profileGUID,
String obsoleteIdentity,
String methodName)
Remove a user identity object.
|
void |
removeUserIdentity(String userId,
String obsoleteIdentity,
String methodName)
Remove a user identity object.
|
public UserIdentityHandler(String serviceName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler, RepositoryErrorHandler errorHandler)
serviceName - name of the consuming serviceinvalidParameterHandler - handler for invalid parametersrepositoryHelper - helper used by the convertersrepositoryHandler - handler for calling the repository serviceserrorHandler - handler for repository service errorspublic UserIdentity getUserIdentity(EntityDetail userIdentityEntity)
userIdentityEntity - principle entity of the profile.public String addUserIdentity(String userId, String profileUserId, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of the calling user.profileUserId - userId of the profile owner.methodName - calling method.InvalidParameterException - one of the parameters is invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void addIdentityToProfile(String userId, String profileGUID, String newIdentity, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.profileGUID - the profile to add the identity to.newIdentity - additional userId for the profile.methodName - calling method.InvalidParameterException - one of the parameters is invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void removeIdentityFromProfile(String userId, String profileGUID, String obsoleteIdentity, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.profileGUID - profile to remove it from.obsoleteIdentity - user identity to remove.methodName - calling method.InvalidParameterException - one of the parameters is invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void removeUserIdentity(String userId, String obsoleteIdentity, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.obsoleteIdentity - user identity to remove.methodName - calling method.InvalidParameterException - one of the parameters is invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.