public class GovernanceRoleManager extends Object implements GovernanceRolesInterface
| Constructor and Description |
|---|
GovernanceRoleManager(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceRoleManager(String serverName,
String serverPlatformURLRoot,
GovernanceProgramRESTClient restClient,
int maxPageSize)
Create a new client that uses the supplied rest client.
|
GovernanceRoleManager(String serverName,
String serverPlatformURLRoot,
int maxPageSize,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceRoleManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
GovernanceRoleManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
int maxPageSize,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
String |
appointGovernanceRole(String userId,
String governanceRoleGUID,
String profileGUID,
Date startDate)
Link a person to a governance role.
|
String |
createGovernanceRole(String userId,
GovernanceRoleProperties properties)
Create the governance role.
|
void |
deleteGovernanceRole(String userId,
String governanceRoleGUID)
Remove the requested governance role.
|
List<GovernanceRoleAppointee> |
getCurrentGovernanceRoleAppointments(String userId,
int domainIdentifier,
int startFrom,
int pageSize)
Return all of the governance roles and their incumbents (if any).
|
GovernanceRoleElement |
getGovernanceRoleByGUID(String userId,
String governanceRoleGUID)
Retrieve a governance role description by unique guid.
|
List<GovernanceRoleElement> |
getGovernanceRoleByRoleId(String userId,
String roleId)
Retrieve the properties of a governance role using its unique name.
|
GovernanceRoleHistory |
getGovernanceRoleHistoryByGUID(String userId,
String governanceRoleGUID)
Retrieve a governance role description by unique guid along with the history of who has been appointed
to the role.
|
List<GovernanceRoleElement> |
getGovernanceRolesByDomainId(String userId,
int domainIdentifier,
int startFrom,
int pageSize)
Return all of the defined governance roles for a specific governance domain.
|
List<GovernanceRoleElement> |
getGovernanceRolesByTitle(String userId,
String title,
int startFrom,
int pageSize)
Retrieve all of the governance roles for a particular title.
|
void |
linkRoleToResource(String userId,
String governanceRoleGUID,
String resourceGUID)
Link a governance role to the description of a resource that the role is responsible for.
|
void |
linkRoleToResponsibility(String userId,
String governanceRoleGUID,
String responsibilityGUID)
Link a governance role to a governance control that defines a governance responsibility that a person fulfils.
|
void |
relieveGovernanceRole(String userId,
String governanceRoleGUID,
String profileGUID,
String appointmentGUID,
Date endDate)
Unlink a person from a governance role appointment.
|
void |
unlinkRoleFromResource(String userId,
String governanceRoleGUID,
String resourceGUID)
Remove the link between a governance role and a resource.
|
void |
unlinkRoleFromResponsibility(String userId,
String governanceRoleGUID,
String responsibilityGUID)
Remove the link between a governance role and a governance responsibility.
|
void |
updateGovernanceRole(String userId,
String governanceRoleGUID,
boolean isMergeUpdate,
GovernanceRoleProperties properties)
Update selected fields for the governance role.
|
public GovernanceRoleManager(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - bad input parameterspublic GovernanceRoleManager(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - bad input parameterspublic GovernanceRoleManager(String serverName, String serverPlatformURLRoot, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversmaxPageSize - pre-initialized parameter limitauditLog - logging destinationInvalidParameterException - bad input parameterspublic GovernanceRoleManager(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsmaxPageSize - pre-initialized parameter limitauditLog - logging destinationInvalidParameterException - bad input parameterspublic GovernanceRoleManager(String serverName, String serverPlatformURLRoot, GovernanceProgramRESTClient restClient, int maxPageSize) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - internal client for rest callsmaxPageSize - pre-initialized parameter limitInvalidParameterException - bad input parameterspublic String createGovernanceRole(String userId, GovernanceRoleProperties properties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
createGovernanceRole in interface GovernanceRolesInterfaceuserId - the name of the calling user.properties - the description of the governance roleInvalidParameterException - 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 updateGovernanceRole(String userId, String governanceRoleGUID, boolean isMergeUpdate, GovernanceRoleProperties properties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
updateGovernanceRole in interface GovernanceRolesInterfaceuserId - the name of the calling user.governanceRoleGUID - unique identifier (guid) of the governance roleisMergeUpdate - are unspecified properties unchanged (true) or replaced with null?properties - the description of the governance roleInvalidParameterException - the title is null or the governanceDomain/appointmentId does not match the
the existing values associated with the governanceRoleGUID.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public void linkRoleToResponsibility(String userId, String governanceRoleGUID, String responsibilityGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
linkRoleToResponsibility in interface GovernanceRolesInterfaceuserId - calling usergovernanceRoleGUID - unique identifier of the governance roleresponsibilityGUID - unique identifier of the governance responsibility controlInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void unlinkRoleFromResponsibility(String userId, String governanceRoleGUID, String responsibilityGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unlinkRoleFromResponsibility in interface GovernanceRolesInterfaceuserId - calling usergovernanceRoleGUID - unique identifier of the governance roleresponsibilityGUID - unique identifier of the governance responsibility controlInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void linkRoleToResource(String userId, String governanceRoleGUID, String resourceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
linkRoleToResource in interface GovernanceRolesInterfaceuserId - calling usergovernanceRoleGUID - unique identifier of the governance roleresourceGUID - unique identifier of the resource descriptionInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void unlinkRoleFromResource(String userId, String governanceRoleGUID, String resourceGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unlinkRoleFromResource in interface GovernanceRolesInterfaceuserId - calling usergovernanceRoleGUID - unique identifier of the governance roleresourceGUID - unique identifier of the resource descriptionInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void deleteGovernanceRole(String userId, String governanceRoleGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
deleteGovernanceRole in interface GovernanceRolesInterfaceuserId - the name of the calling usergovernanceRoleGUID - unique identifier (guid) of the governance roleInvalidParameterException - 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 GovernanceRoleElement getGovernanceRoleByGUID(String userId, String governanceRoleGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getGovernanceRoleByGUID in interface GovernanceRolesInterfaceuserId - the name of the calling user.governanceRoleGUID - unique identifier (guid) of the governance role.InvalidParameterException - the unique identifier of the governance role is either null or invalid.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public GovernanceRoleHistory getGovernanceRoleHistoryByGUID(String userId, String governanceRoleGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getGovernanceRoleHistoryByGUID in interface GovernanceRolesInterfaceuserId - the name of the calling user.governanceRoleGUID - unique identifier (guid) of the governance role.InvalidParameterException - the unique identifier of the governance role is either null or invalid.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public List<GovernanceRoleElement> getGovernanceRoleByRoleId(String userId, String roleId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getGovernanceRoleByRoleId in interface GovernanceRolesInterfaceuserId - calling userroleId - unique nameInvalidParameterException - name or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<GovernanceRoleElement> getGovernanceRolesByDomainId(String userId, int domainIdentifier, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getGovernanceRolesByDomainId in interface GovernanceRolesInterfaceuserId - the name of the calling userdomainIdentifier - domain of interest - 0 means all domainsstartFrom - where to start from in the list of definitionspageSize - max number of results to return in one callInvalidParameterException - 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 List<GovernanceRoleElement> getGovernanceRolesByTitle(String userId, String title, int startFrom, int pageSize) throws UserNotAuthorizedException, InvalidParameterException, PropertyServerException
getGovernanceRolesByTitle in interface GovernanceRolesInterfaceuserId - calling usertitle - short description of the rolestartFrom - where to start from in the list of definitionspageSize - max number of results to return in one callInvalidParameterException - title or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<GovernanceRoleAppointee> getCurrentGovernanceRoleAppointments(String userId, int domainIdentifier, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getCurrentGovernanceRoleAppointments in interface GovernanceRolesInterfaceuserId - the name of the calling userdomainIdentifier - identifier of domain - 0 means allstartFrom - where to start from in the list of definitionspageSize - max number of results to return in one callInvalidParameterException - the userId is either null or invalid.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.public String appointGovernanceRole(String userId, String governanceRoleGUID, String profileGUID, Date startDate) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
appointGovernanceRole in interface GovernanceRolesInterfaceuserId - the name of the calling user.governanceRoleGUID - unique identifier (guid) of the governance roleprofileGUID - unique identifier for the profilestartDate - the official start date of the appointment - null means effective immediatelyInvalidParameterException - the unique identifier of the governance role 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 relieveGovernanceRole(String userId, String governanceRoleGUID, String profileGUID, String appointmentGUID, Date endDate) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
relieveGovernanceRole in interface GovernanceRolesInterfaceuserId - the name of the calling usergovernanceRoleGUID - unique identifier (guid) of the governance roleprofileGUID - unique identifier for the profileappointmentGUID - unique identifier (guid) of the appointment relationshipendDate - the official end of the appointment - null means effective immediatelyInvalidParameterException - the profile is not linked to this governance role.PropertyServerException - the server is not available.UserNotAuthorizedException - the calling user is not authorized to issue the call.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.