@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/community-profile/users/{userId}")
public class PersonalProfileResource
extends Object
| Constructor and Description |
|---|
PersonalProfileResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GUIDResponse |
createPersonalProfile(String serverName,
String userId,
PersonalProfileRequestBody requestBody)
Create a personal profile for an individual who is to be appointed to a governance role but does not
have a profile in open metadata.
|
VoidResponse |
deletePersonalProfile(String serverName,
String userId,
String profileGUID,
PersonalProfileValidatorRequestBody requestBody)
Delete the personal profile.
|
PersonalProfileResponse |
getPersonalProfileByGUID(String serverName,
String userId,
String profileGUID)
Retrieve a personal profile by guid.
|
PersonalProfileResponse |
getPersonalProfileByQualifiedName(String serverName,
String userId,
NameRequestBody requestBody)
Return a list of candidate personal profiles for an individual.
|
PersonalProfileResponse |
getPersonalProfileForUser(String serverName,
String userId,
String profileUserId)
Return the profile for this user.
|
PersonalProfileListResponse |
getPersonalProfilesByName(String serverName,
String userId,
int startFrom,
int pageSize,
NameRequestBody requestBody)
Return a list of candidate personal profiles for an individual.
|
VoidResponse |
updatePersonalProfile(String serverName,
String userId,
String profileGUID,
PersonalProfileRequestBody requestBody)
Update properties for the personal properties.
|
@PostMapping(path="/personal-profiles") public GUIDResponse createPersonalProfile(@PathVariable String serverName, @PathVariable String userId, @RequestBody PersonalProfileRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling user.requestBody - properties about the individual.@PostMapping(path="/personal-profiles/{profileGUID}")
public VoidResponse updatePersonalProfile(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String profileGUID,
@RequestBody
PersonalProfileRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling user.profileGUID - unique identifier for the profile.requestBody - properties about the individual.@PostMapping(path="/personal-profiles/{profileGUID}/delete")
public VoidResponse deletePersonalProfile(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String profileGUID,
@RequestBody
PersonalProfileValidatorRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling user.profileGUID - unique identifier for the profile.requestBody - personnel/serial/unique employee number of the individual.@GetMapping(path="/personal-profiles/user/{profileUserId}")
public PersonalProfileResponse getPersonalProfileForUser(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String profileUserId)
serverName - name of the server instances for this requestuserId - userId of the user making the request.profileUserId - userId for person that profile belongs to@GetMapping(path="/personal-profiles/{profileGUID}")
public PersonalProfileResponse getPersonalProfileByGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String profileGUID)
serverName - name of server instance to calluserId - the name of the calling user.profileGUID - unique identifier for the profile.@PostMapping(path="/personal-profiles/by-qualified-name") public PersonalProfileResponse getPersonalProfileByQualifiedName(@PathVariable String serverName, @PathVariable String userId, @RequestBody NameRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling userrequestBody - name of individual@PostMapping(path="/personal-profiles/by-name") public PersonalProfileListResponse getPersonalProfilesByName(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody NameRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling userstartFrom - scan pointerpageSize - maximum number of resultsrequestBody - name of individualCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.