public class GovernanceOfficerHandler extends Object
| Constructor and Description |
|---|
GovernanceOfficerHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
PersonalProfileHandler personalProfileHandler,
ExternalReferencesHandler externalReferencesHandler)
Construct the handler caching the objects
needed to operate within a single server instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appointGovernanceOfficer(String userId,
String governanceOfficerGUID,
String profileGUID,
Date startDate)
Link a person to a governance officer.
|
String |
createGovernanceOfficer(String userId,
GovernanceDomain governanceDomain,
String appointmentId,
String appointmentContext,
String title,
Map<String,String> additionalProperties,
List<ExternalReference> externalReferences)
Create the governance officer appointment.
|
void |
deleteGovernanceOfficer(String userId,
String governanceOfficerGUID,
String appointmentId,
GovernanceDomain governanceDomain)
Remove the requested governance officer.
|
List<GovernanceOfficer> |
getActiveGovernanceOfficers(String userId)
Return all of the active governance officers.
|
GovernanceOfficer |
getGovernanceOfficerByAppointmentId(String userId,
String appointmentId)
Retrieve a governance officer by unique appointment id.
|
GovernanceOfficer |
getGovernanceOfficerByGUID(String userId,
String governanceOfficerGUID)
Retrieve a governance officer description by unique guid.
|
List<GovernanceOfficer> |
getGovernanceOfficers(String userId)
Return all of the defined governance officers.
|
List<GovernanceOfficer> |
getGovernanceOfficersByDomain(String userId,
GovernanceDomain governanceDomain)
Return all of the defined governance officers for a specific governance domain.
|
void |
relieveGovernanceOfficer(String userId,
String governanceOfficerGUID,
String profileGUID,
Date endDate)
Unlink a person from a governance officer appointment.
|
void |
updateGovernanceOfficer(String userId,
String governanceOfficerGUID,
GovernanceDomain governanceDomain,
String appointmentId,
String appointmentContext,
String title,
Map<String,String> additionalProperties,
List<ExternalReference> externalReferences)
Update selected fields for the governance officer.
|
public GovernanceOfficerHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler, PersonalProfileHandler personalProfileHandler, ExternalReferencesHandler externalReferencesHandler)
serviceName - name of the consuming serviceserverName - name of this server instanceinvalidParameterHandler - handler for invalid parametersrepositoryHelper - helper used by the convertersrepositoryHandler - handler for calling the repository servicespersonalProfileHandler - handler to manage personal profilesexternalReferencesHandler - handler to manage external referencespublic String createGovernanceOfficer(String userId, GovernanceDomain governanceDomain, String appointmentId, String appointmentContext, String title, Map<String,String> additionalProperties, List<ExternalReference> externalReferences) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.governanceDomain - the governance domain for the governance officer.appointmentId - the unique identifier of the governance officer.appointmentContext - the context in which the governance officer is appointed.
This may be an organizational scope, location, or scope of assets.title - job title for the governance officeradditionalProperties - additional properties for the governance officer.externalReferences - links to addition information. This could be, for example, the home page
for the governance officer, or details of the role.InvalidParameterException - the governance domain, title or appointment id is null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public void updateGovernanceOfficer(String userId, String governanceOfficerGUID, GovernanceDomain governanceDomain, String appointmentId, String appointmentContext, String title, Map<String,String> additionalProperties, List<ExternalReference> externalReferences) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.governanceDomain - the governance domain for the governance officer.appointmentId - the unique identifier of the governance officer.appointmentContext - the context in which the governance officer is appointed.
This may be an organizational scope, location, or scope of assets.title - job title for the governance officeradditionalProperties - additional properties for the governance officer.externalReferences - links to addition information. This could be, for example, the home page
for the governance officer, or details of the role.InvalidParameterException - the title is null or the governanceDomain/appointmentId does not match the
the existing values associated with the governanceOfficerGUID.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public void deleteGovernanceOfficer(String userId, String governanceOfficerGUID, String appointmentId, GovernanceDomain governanceDomain) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.appointmentId - the unique identifier of the governance officer.governanceDomain - the governance domain for the governance officer.InvalidParameterException - the appointmentId or governance domain is either null or invalid.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public GovernanceOfficer getGovernanceOfficerByGUID(String userId, String governanceOfficerGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.InvalidParameterException - the unique identifier of the governance officer is either null or invalid.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public GovernanceOfficer getGovernanceOfficerByAppointmentId(String userId, String appointmentId) throws InvalidParameterException, PropertyServerException, AppointmentIdNotUniqueException, UserNotAuthorizedException
userId - the name of the calling user.appointmentId - the unique appointment identifier of the governance officer.InvalidParameterException - the appointmentId or governance domain is either null or invalid.AppointmentIdNotUniqueException - more than one governance officer entity was retrieved for this appointmentIdPropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public List<GovernanceOfficer> getGovernanceOfficers(String userId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.InvalidParameterException - the userId is null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public List<GovernanceOfficer> getActiveGovernanceOfficers(String userId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.InvalidParameterException - the userId is null.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public List<GovernanceOfficer> getGovernanceOfficersByDomain(String userId, GovernanceDomain governanceDomain) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.governanceDomain - domain of interestInvalidParameterException - the governance domain is either null or invalid.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public void appointGovernanceOfficer(String userId, String governanceOfficerGUID, String profileGUID, Date startDate) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.profileGUID - unique identifier for the profile.startDate - the official start date of the appointment - null means effective immediately.InvalidParameterException - the unique identifier of the governance officer or profile is either null or invalid.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public void relieveGovernanceOfficer(String userId, String governanceOfficerGUID, String profileGUID, Date endDate) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.governanceOfficerGUID - unique identifier (guid) of the governance officer.profileGUID - unique identifier for the profile.endDate - date at which the current incumbent leaves the positionInvalidParameterException - the profile is not linked to this governance officer.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.Copyright © 2018–2020 ODPi. All rights reserved.