@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/community-profile/users/{userId}")
public class UserIdentityResource
extends Object
| Constructor and Description |
|---|
UserIdentityResource() |
| Modifier and Type | Method and Description |
|---|---|
VoidResponse |
addIdentityToProfile(String serverName,
String userId,
String userIdentityGUID,
String profileGUID,
MetadataSourceRequestBody requestBody)
Link a user identity to a profile.
|
GUIDResponse |
createUserIdentity(String serverName,
String userId,
UserIdentityRequestBody requestBody)
Create a UserIdentity.
|
VoidResponse |
deleteUserIdentity(String serverName,
String userId,
String userIdentityGUID,
MetadataSourceRequestBody requestBody)
Remove a user identity object.
|
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.
|
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.
|
UserIdentityResponse |
getUserIdentityByGUID(String serverName,
String userId,
String userIdentityGUID)
Retrieve the userIdentity metadata element with the supplied unique identifier.
|
VoidResponse |
removeIdentityFromProfile(String serverName,
String userId,
String userIdentityGUID,
String profileGUID,
MetadataSourceRequestBody requestBody)
Remove a user identity object.
|
VoidResponse |
updateUserIdentity(String serverName,
String userId,
String userIdentityGUID,
boolean isMergeUpdate,
UserIdentityRequestBody requestBody)
Update a UserIdentity.
|
@PostMapping(path="/user-identities") public GUIDResponse createUserIdentity(@PathVariable String serverName, @PathVariable String userId, @RequestBody UserIdentityRequestBody requestBody)
serverName - name of target serveruserId - the name of the calling user.requestBody - userId for the new userIdentity.@PostMapping(path="/user-identities/{userIdentityGUID}")
public VoidResponse updateUserIdentity(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String userIdentityGUID,
@RequestParam
boolean isMergeUpdate,
@RequestBody
UserIdentityRequestBody requestBody)
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@PostMapping(path="/user-identities/{userIdentityGUID}/delete")
public VoidResponse deleteUserIdentity(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String userIdentityGUID,
@RequestBody
MetadataSourceRequestBody requestBody)
serverName - name of target serveruserId - the name of the calling user.userIdentityGUID - unique identifier of the UserIdentityrequestBody - external source identifiers@PostMapping(path="/user-identities/{userIdentityGUID}/personal-profiles/{profileGUID}/link")
public VoidResponse addIdentityToProfile(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String userIdentityGUID,
@PathVariable
String profileGUID,
@RequestBody
MetadataSourceRequestBody requestBody)
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@PostMapping(path="/user-identities/{userIdentityGUID}/profiles/{profileGUID}/unlink")
public VoidResponse removeIdentityFromProfile(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String userIdentityGUID,
@PathVariable
String profileGUID,
@RequestBody
MetadataSourceRequestBody requestBody)
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@PostMapping(path="/user-identities/by-search-string") public UserIdentityListResponse findUserIdentities(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody SearchStringRequestBody requestBody)
serverName - name of target serveruserId - calling userstartFrom - paging start pointpageSize - maximum results that can be returnedrequestBody - string to find in the properties@PostMapping(path="/user-identities/by-name") public UserIdentityListResponse getUserIdentitiesByName(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody NameRequestBody requestBody)
serverName - name of target serveruserId - calling userstartFrom - paging start pointpageSize - maximum results that can be returnedrequestBody - name to search forpublic UserIdentityResponse getUserIdentityByGUID(String serverName, String userId, String userIdentityGUID)
serverName - name of target serveruserId - calling useruserIdentityGUID - unique identifier of the requested metadata elementCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.