@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 |
getPersonalProfileByEmployeeNumber(String serverName,
String userId,
String employeeNumber)
Retrieve a personal profile by personnel/serial/unique employee number of the individual.
|
PersonalProfileResponse |
getPersonalProfileByGUID(String serverName,
String userId,
String profileGUID)
Retrieve a personal profile by guid.
|
PersonalProfileResponse |
getPersonalProfileForUser(String serverName,
String userId,
String profileUserId)
Return the profile for this user.
|
PersonalProfileListResponse |
getPersonalProfilesByName(String serverName,
String userId,
String name,
int startFrom,
int pageSize)
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.@GetMapping(path="/personal-profiles/by-employee-number/{employeeNumber}")
public PersonalProfileResponse getPersonalProfileByEmployeeNumber(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String employeeNumber)
serverName - name of server instance to calluserId - the name of the calling user.employeeNumber - personnel/serial/unique employee number of the individual.@GetMapping(path="/personal-profiles/by-name/{name}")
public PersonalProfileListResponse getPersonalProfilesByName(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String name,
@RequestParam
int startFrom,
@RequestParam
int pageSize)
serverName - name of server instance to calluserId - the name of the calling user.name - name of individual.startFrom - scan pointerpageSize - maximum number of resultsCopyright © 2018–2020 ODPi. All rights reserved.