public class UserIdentityManagement extends Object implements UserIdentityManagementInterface
| Constructor and Description |
|---|
UserIdentityManagement(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
UserIdentityManagement(String serverName,
String serverPlatformURLRoot,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
UserIdentityManagement(String serverName,
String serverPlatformURLRoot,
CommunityProfileRESTClient restClient,
int maxPageSize)
Create a new client that passes userId and password in each HTTP request.
|
UserIdentityManagement(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
UserIdentityManagement(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIdentityToProfile(String userId,
String externalSourceGUID,
String externalSourceName,
String userIdentityGUID,
String profileGUID)
Link a user identity to a profile.
|
String |
createUserIdentity(String userId,
String externalSourceGUID,
String externalSourceName,
UserIdentityProperties newIdentity)
Create a UserIdentity.
|
void |
deleteUserIdentity(String userId,
String externalSourceGUID,
String externalSourceName,
String userIdentityGUID)
Remove a user identity object.
|
List<UserIdentityElement> |
findUserIdentities(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of user identity metadata elements that contain the search string.
|
List<UserIdentityElement> |
getUserIdentitiesByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of user identity metadata elements with a matching qualified name.
|
UserIdentityElement |
getUserIdentityByGUID(String userId,
String userIdentityGUID)
Retrieve the userIdentity metadata element with the supplied unique identifier.
|
void |
removeIdentityFromProfile(String userId,
String externalSourceGUID,
String externalSourceName,
String userIdentityGUID,
String profileGUID)
Unlink a user identity from a profile.
|
void |
updateUserIdentity(String userId,
String externalSourceGUID,
String externalSourceName,
String userIdentityGUID,
boolean isMergeUpdate,
UserIdentityProperties properties)
Update a UserIdentity.
|
public UserIdentityManagement(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - bad input parameterspublic UserIdentityManagement(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public UserIdentityManagement(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - bad input parameterspublic UserIdentityManagement(String serverName, String serverPlatformURLRoot, String userId, String password, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsauditLog - logging destinationInvalidParameterException - bad input parameterspublic UserIdentityManagement(String serverName, String serverPlatformURLRoot, CommunityProfileRESTClient restClient, int maxPageSize) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - pre-initialized REST clientmaxPageSize - pre-initialized parameter limitInvalidParameterException - there is a problem with the information about the remote OMASpublic String createUserIdentity(String userId, String externalSourceGUID, String externalSourceName, UserIdentityProperties newIdentity) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
createUserIdentity in interface UserIdentityManagementInterfaceuserId - the name of the calling user.externalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callernewIdentity - properties for the new userIdentity.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 updateUserIdentity(String userId, String externalSourceGUID, String externalSourceName, String userIdentityGUID, boolean isMergeUpdate, UserIdentityProperties properties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
updateUserIdentity in interface UserIdentityManagementInterfaceuserId - the name of the calling userexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the calleruserIdentityGUID - unique identifier of the UserIdentityisMergeUpdate - should the supplied properties be overlaid on the existing properties (true) or replace them (falseproperties - updated properties for the new userIdentityInvalidParameterException - 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 deleteUserIdentity(String userId, String externalSourceGUID, String externalSourceName, String userIdentityGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
deleteUserIdentity in interface UserIdentityManagementInterfaceuserId - the name of the calling userexternalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the calleruserIdentityGUID - unique identifier of the UserIdentityInvalidParameterException - 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 externalSourceGUID, String externalSourceName, String userIdentityGUID, String profileGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
addIdentityToProfile in interface UserIdentityManagementInterfaceuserId - the name of the calling user.externalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the callerprofileGUID - the profile to add the identity to.userIdentityGUID - additional userId for the profile.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 externalSourceGUID, String externalSourceName, String userIdentityGUID, String profileGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
removeIdentityFromProfile in interface UserIdentityManagementInterfaceuserId - the name of the calling user.externalSourceGUID - unique identifier of software server capability representing the callerexternalSourceName - unique name of software server capability representing the calleruserIdentityGUID - unique identifier of the UserIdentityprofileGUID - profile to remove it from.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 List<UserIdentityElement> findUserIdentities(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findUserIdentities in interface UserIdentityManagementInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public List<UserIdentityElement> getUserIdentitiesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getUserIdentitiesByName in interface UserIdentityManagementInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public UserIdentityElement getUserIdentityByGUID(String userId, String userIdentityGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getUserIdentityByGUID in interface UserIdentityManagementInterfaceuserId - calling useruserIdentityGUID - unique identifier of the requested metadata elementInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.