@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/governance-program/users/{userId}/leadership")
public class GovernanceLeadershipResource
extends Object
| Constructor and Description |
|---|
GovernanceLeadershipResource()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
VoidResponse |
appointGovernanceOfficer(String serverName,
String userId,
String governanceOfficerGUID,
AppointmentRequestBody requestBody)
Link a person to a governance officer.
|
GUIDResponse |
createGovernanceOfficer(String serverName,
String userId,
GovernanceOfficerDetailsRequestBody requestBody)
Create the governance officer appointment.
|
VoidResponse |
deleteGovernanceOfficer(String serverName,
String userId,
String governanceOfficerGUID,
GovernanceOfficerValidatorRequestBody requestBody)
Remove the requested governance officer.
|
GovernanceOfficerListResponse |
getActiveGovernanceOfficers(String serverName,
String userId)
Return all of the active governance officers.
|
GovernanceOfficerResponse |
getGovernanceOfficerByAppointmentId(String serverName,
String userId,
String appointmentId)
Retrieve a governance officer by unique appointment id.
|
GovernanceOfficerResponse |
getGovernanceOfficerByGUID(String serverName,
String userId,
String governanceOfficerGUID)
Retrieve a governance officer description by unique guid.
|
GovernanceOfficerListResponse |
getGovernanceOfficers(String serverName,
String userId)
Return all of the defined governance officers.
|
GovernanceOfficerListResponse |
getGovernanceOfficersByDomain(String serverName,
String userId,
GovernanceDomainRequestBody requestBody)
Return all of the defined governance officers for a specific governance domain.
|
VoidResponse |
relieveGovernanceOfficer(String serverName,
String userId,
String governanceOfficerGUID,
AppointmentRequestBody requestBody)
Unlink a person from a governance officer appointment.
|
VoidResponse |
updateGovernanceOfficer(String serverName,
String userId,
String governanceOfficerGUID,
GovernanceOfficerDetailsRequestBody requestBody)
Update selected fields for the governance officer.
|
public GovernanceLeadershipResource()
@PostMapping(path="/governance-officers") public GUIDResponse createGovernanceOfficer(@PathVariable String serverName, @PathVariable String userId, @RequestBody GovernanceOfficerDetailsRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling user.requestBody - properties of the governance officer.@PostMapping(path="/governance-officers/{governanceOfficerGUID}")
public VoidResponse updateGovernanceOfficer(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String governanceOfficerGUID,
@RequestBody
GovernanceOfficerDetailsRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.requestBody - properties of the governance officer@PostMapping(path="/governance-officers/{governanceOfficerGUID}/delete")
public VoidResponse deleteGovernanceOfficer(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String governanceOfficerGUID,
@RequestBody
GovernanceOfficerValidatorRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.requestBody - properties to verify this is the right governance officer@GetMapping(path="/governance-officers/{governanceOfficerGUID}")
public GovernanceOfficerResponse getGovernanceOfficerByGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String governanceOfficerGUID)
serverName - name of server instance to calluserId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.@GetMapping(path="/governance-officers/by-appointment-id/{appointmentId}")
public GovernanceOfficerResponse getGovernanceOfficerByAppointmentId(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String appointmentId)
serverName - name of server instance to calluserId - the name of the calling user.appointmentId - the unique appointment identifier of the governance officer.@GetMapping(path="/governance-officers") public GovernanceOfficerListResponse getGovernanceOfficers(@PathVariable String serverName, @PathVariable String userId)
serverName - name of server instance to calluserId - the name of the calling user.@GetMapping(path="/governance-officers/active") public GovernanceOfficerListResponse getActiveGovernanceOfficers(@PathVariable String serverName, @PathVariable String userId)
serverName - name of server instance to calluserId - the name of the calling user.@PostMapping(path="/governance-officers/by-domain") public GovernanceOfficerListResponse getGovernanceOfficersByDomain(@PathVariable String serverName, @PathVariable String userId, @RequestBody GovernanceDomainRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling user.requestBody - domain of interest@PostMapping(path="/governance-officers/{governanceOfficerGUID}/appoint")
public VoidResponse appointGovernanceOfficer(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String governanceOfficerGUID,
@RequestBody
AppointmentRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.requestBody - unique identifier for the profile and start date.@PostMapping(path="/governance-officers/{governanceOfficerGUID}/relieve")
public VoidResponse relieveGovernanceOfficer(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String governanceOfficerGUID,
@RequestBody
AppointmentRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.requestBody - unique identifier for the profile and end date.Copyright © 2018–2020 ODPi. All rights reserved.