Class UserIdentityRESTServices
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.server.UserIdentityRESTServices
-
public class UserIdentityRESTServices extends Object
UserIdentityResource provides the APIs for maintaining user identities and their relationships with profiles.
-
-
Constructor Summary
Constructors Constructor Description UserIdentityRESTServices()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoidResponseaddIdentityToProfile(String serverName, String userId, String userIdentityGUID, String profileGUID, MetadataSourceRequestBody requestBody)Link a user identity to a profile.GUIDResponsecreateUserIdentity(String serverName, String userId, UserIdentityRequestBody requestBody)Create a UserIdentity.VoidResponsedeleteUserIdentity(String serverName, String userId, String userIdentityGUID, MetadataSourceRequestBody requestBody)Remove a user identity object.UserIdentityListResponsefindUserIdentities(String serverName, String userId, int startFrom, int pageSize, SearchStringRequestBody requestBody)Retrieve the list of user identity metadata elements that contain the search string.UserIdentityListResponsegetUserIdentitiesByName(String serverName, String userId, int startFrom, int pageSize, NameRequestBody requestBody)Retrieve the list of user identity metadata elements with a matching qualified name.UserIdentityResponsegetUserIdentityByGUID(String serverName, String userId, String userIdentityGUID)Retrieve the userIdentity metadata element with the supplied unique identifier.VoidResponseremoveIdentityFromProfile(String serverName, String userId, String userIdentityGUID, String profileGUID, MetadataSourceRequestBody requestBody)Remove a user identity object.VoidResponseupdateUserIdentity(String serverName, String userId, String userIdentityGUID, boolean isMergeUpdate, UserIdentityRequestBody requestBody)Update a UserIdentity.
-
-
-
Method Detail
-
createUserIdentity
public GUIDResponse createUserIdentity(String serverName, String userId, UserIdentityRequestBody requestBody)
Create a UserIdentity. This is not connected to a profile.- Parameters:
serverName- name of target serveruserId- the name of the calling userrequestBody- userId for the new userIdentity- Returns:
- void or InvalidParameterException - one of the parameters is invalid or PropertyServerException - there is a problem retrieving information from the property server(s) or UserNotAuthorizedException - the requesting user is not authorized to issue this request.
-
updateUserIdentity
public VoidResponse updateUserIdentity(String serverName, String userId, String userIdentityGUID, boolean isMergeUpdate, UserIdentityRequestBody requestBody)
Update a UserIdentity.- Parameters:
serverName- name of target serveruserId- the name of the calling useruserIdentityGUID- unique identifier of the UserIdentityisMergeUpdate- should the supplied properties be overlaid on the existing properties (true) or replace them (falserequestBody- updated properties for the new userIdentity- Returns:
- void or 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.
-
deleteUserIdentity
public VoidResponse deleteUserIdentity(String serverName, String userId, String userIdentityGUID, MetadataSourceRequestBody requestBody)
Remove a user identity object.- Parameters:
serverName- name of target serveruserId- the name of the calling user.userIdentityGUID- unique identifier of the UserIdentityrequestBody- external source identifiers- Returns:
- void or InvalidParameterException - one of the parameters is invalid or PropertyServerException - there is a problem retrieving information from the property server(s) or UserNotAuthorizedException - the requesting user is not authorized to issue this request.
-
addIdentityToProfile
public VoidResponse addIdentityToProfile(String serverName, String userId, String userIdentityGUID, String profileGUID, MetadataSourceRequestBody requestBody)
Link a user identity to a profile.- Parameters:
serverName- name of target serveruserId- the name of the calling user.userIdentityGUID- unique identifier of the UserIdentityprofileGUID- the profile to add the identity to.requestBody- external source identifiers- Returns:
- void or InvalidParameterException - one of the parameters is invalid or PropertyServerException - there is a problem retrieving information from the property server(s) or UserNotAuthorizedException - the requesting user is not authorized to issue this request.
-
removeIdentityFromProfile
public VoidResponse removeIdentityFromProfile(String serverName, String userId, String userIdentityGUID, String profileGUID, MetadataSourceRequestBody requestBody)
Remove a user identity object.- Parameters:
serverName- name of target serveruserId- the name of the calling user.userIdentityGUID- unique identifier of the UserIdentityprofileGUID- profile to remove it from.requestBody- external source identifiers- Returns:
- void or InvalidParameterException - one of the parameters is invalid or PropertyServerException - there is a problem retrieving information from the property server(s) or UserNotAuthorizedException - the requesting user is not authorized to issue this request.
-
findUserIdentities
public UserIdentityListResponse findUserIdentities(String serverName, String userId, int startFrom, int pageSize, SearchStringRequestBody requestBody)
Retrieve the list of user identity metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
serverName- name of target serveruserId- calling userstartFrom- paging start pointpageSize- maximum results that can be returnedrequestBody- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getUserIdentitiesByName
public UserIdentityListResponse getUserIdentitiesByName(String serverName, String userId, int startFrom, int pageSize, NameRequestBody requestBody)
Retrieve the list of user identity metadata elements with a matching qualified name. There are no wildcards supported on this request.- Parameters:
serverName- name of target serveruserId- calling userstartFrom- paging start pointpageSize- maximum results that can be returnedrequestBody- name to search for- Returns:
- list of matching metadata elements InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getUserIdentityByGUID
public UserIdentityResponse getUserIdentityByGUID(String serverName, String userId, String userIdentityGUID)
Retrieve the userIdentity metadata element with the supplied unique identifier.- Parameters:
serverName- name of target serveruserId- calling useruserIdentityGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
-