public class GovernanceProgramRESTServices extends Object
| Constructor and Description |
|---|
GovernanceProgramRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
VoidResponse |
appointGovernanceOfficer(String userId,
String governanceOfficerGUID,
AppointmentRequestBody requestBody)
Link a person to a governance officer.
|
GUIDResponse |
createGovernanceOfficer(String userId,
GovernanceOfficerDetailsRequestBody requestBody)
Create the governance officer appointment.
|
GUIDResponse |
createPersonalProfile(String userId,
PersonalDetailsRequestBody 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 |
deleteGovernanceOfficer(String userId,
String governanceOfficerGUID,
GovernanceOfficerValidatorRequestBody requestBody)
Remove the requested governance officer.
|
VoidResponse |
deletePersonalProfile(String userId,
String profileGUID,
PersonalProfileValidatorRequestBody requestBody)
Delete the personal profile.
|
GovernanceOfficerListResponse |
getActiveGovernanceOfficers(String userId)
Return all of the defined governance officers.
|
GovernanceOfficerResponse |
getGovernanceOfficerByAppointmentId(String userId,
String appointmentId)
Retrieve a governance officer by unique appointment id.
|
GovernanceOfficerResponse |
getGovernanceOfficerByGUID(String userId,
String governanceOfficerGUID)
Retrieve a governance officer description by unique guid.
|
GovernanceOfficerListResponse |
getGovernanceOfficers(String userId)
Return all of the defined governance officers.
|
GovernanceOfficerListResponse |
getGovernanceOfficersByDomain(String userId,
GovernanceDomainRequestBody requestBody)
Return all of the defined governance officers for a specific governance domain.
|
PersonalProfileResponse |
getPersonalProfileByEmployeeNumber(String userId,
String employeeNumber)
Retrieve a personal profile by personnel/serial/unique employee number of the individual.
|
PersonalProfileResponse |
getPersonalProfileByGUID(String userId,
String profileGUID)
Retrieve a personal profile by guid.
|
PersonalProfileListResponse |
getPersonalProfilesByName(String userId,
String name)
Return a list of candidate personal profiles for an individual.
|
VoidResponse |
relieveGovernanceOfficer(String userId,
String governanceOfficerGUID,
AppointmentRequestBody requestBody)
Unlink a person from a governance officer appointment.
|
static void |
setRepositoryConnector(String accessServiceName,
OMRSRepositoryConnector repositoryConnector)
Provide a connector to the REST Services.
|
VoidResponse |
updateGovernanceOfficer(String userId,
String governanceOfficerGUID,
GovernanceOfficerDetailsRequestBody requestBody)
Update selected fields for the governance officer.
|
VoidResponse |
updatePersonalProfile(String userId,
String profileGUID,
PersonalDetailsRequestBody requestBody)
Update properties for the personal properties.
|
public GovernanceProgramRESTServices()
public static void setRepositoryConnector(String accessServiceName, OMRSRepositoryConnector repositoryConnector)
accessServiceName - name of this access servicerepositoryConnector - OMRS Repository Connector to the property server.public GUIDResponse createPersonalProfile(String userId, PersonalDetailsRequestBody requestBody)
userId - the name of the calling user.requestBody - properties about the individual.public VoidResponse updatePersonalProfile(String userId, String profileGUID, PersonalDetailsRequestBody requestBody)
userId - the name of the calling user.profileGUID - unique identifier for the profile.requestBody - properties about the individual.public VoidResponse deletePersonalProfile(String userId, String profileGUID, PersonalProfileValidatorRequestBody requestBody)
userId - the name of the calling user.profileGUID - unique identifier for the profile.requestBody - personnel/serial/unique employee number of the individual.public PersonalProfileResponse getPersonalProfileByGUID(String userId, String profileGUID)
userId - the name of the calling user.profileGUID - unique identifier for the profile.public PersonalProfileResponse getPersonalProfileByEmployeeNumber(String userId, String employeeNumber)
userId - the name of the calling user.employeeNumber - personnel/serial/unique employee number of the individual.public PersonalProfileListResponse getPersonalProfilesByName(String userId, String name)
userId - the name of the calling user.name - name of individual.public GUIDResponse createGovernanceOfficer(String userId, GovernanceOfficerDetailsRequestBody requestBody)
userId - the name of the calling user.requestBody - properties of the governance officer.public VoidResponse updateGovernanceOfficer(String userId, String governanceOfficerGUID, GovernanceOfficerDetailsRequestBody requestBody)
userId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.requestBody - properties of the governance officerpublic VoidResponse deleteGovernanceOfficer(String userId, String governanceOfficerGUID, GovernanceOfficerValidatorRequestBody requestBody)
userId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.requestBody - properties to verify this is the right governance officerpublic GovernanceOfficerResponse getGovernanceOfficerByGUID(String userId, String governanceOfficerGUID)
userId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.public GovernanceOfficerResponse getGovernanceOfficerByAppointmentId(String userId, String appointmentId)
userId - the name of the calling user.appointmentId - the unique appointment identifier of the governance officer.public GovernanceOfficerListResponse getGovernanceOfficers(String userId)
userId - the name of the calling user.public GovernanceOfficerListResponse getActiveGovernanceOfficers(String userId)
userId - the name of the calling user.public GovernanceOfficerListResponse getGovernanceOfficersByDomain(String userId, GovernanceDomainRequestBody requestBody)
userId - the name of the calling user.requestBody - domain of interest.public VoidResponse appointGovernanceOfficer(String userId, String governanceOfficerGUID, AppointmentRequestBody requestBody)
userId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.requestBody - unique identifier for the profilepublic VoidResponse relieveGovernanceOfficer(String userId, String governanceOfficerGUID, AppointmentRequestBody requestBody)
userId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.requestBody - unique identifier for the profile.Copyright © 2017–2018 ODPi. All rights reserved.