public class GovernanceMetricsManager extends Object implements GovernanceMetricsInterface
| Constructor and Description |
|---|
GovernanceMetricsManager(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceMetricsManager(String serverName,
String serverPlatformURLRoot,
GovernanceProgramRESTClient restClient,
int maxPageSize)
Create a new client that uses the supplied rest client.
|
GovernanceMetricsManager(String serverName,
String serverPlatformURLRoot,
int maxPageSize,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceMetricsManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
GovernanceMetricsManager(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 |
|---|---|
void |
clearGovernanceDefinitionMetric(String userId,
String metricGUID,
String governanceDefinitionGUID)
Remove the link between a governance metric and a governance definition.
|
String |
createGovernanceMetric(String userId,
GovernanceMetricProperties metricProperties)
Create a new governance metric.
|
void |
deleteGovernanceMetric(String userId,
String metricGUID)
Delete a specific governance metric.
|
List<GovernanceMetricElement> |
findGovernanceMetrics(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of governance metrics for this search string.
|
GovernanceMetricElement |
getGovernanceMetricByGUID(String userId,
String metricGUID)
Return information about a specific governance metric.
|
void |
setupGovernanceDefinitionMetric(String userId,
String metricGUID,
String governanceDefinitionGUID,
String rationale)
Create a link to show that a governance metric supports the requirements of one of the governance policies.
|
void |
updateGovernanceMetric(String userId,
String metricGUID,
boolean isMergeUpdate,
GovernanceMetricProperties metricProperties)
Update an existing governance metric.
|
public GovernanceMetricsManager(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 GovernanceMetricsManager(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 GovernanceMetricsManager(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 GovernanceMetricsManager(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 GovernanceMetricsManager(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 createGovernanceMetric(String userId, GovernanceMetricProperties metricProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createGovernanceMetric in interface GovernanceMetricsInterfaceuserId - calling usermetricProperties - properties of the metricInvalidParameterException - typeName, documentIdentifier or userId is null; documentIdentifier is not unique; typeName is not validPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void updateGovernanceMetric(String userId, String metricGUID, boolean isMergeUpdate, GovernanceMetricProperties metricProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateGovernanceMetric in interface GovernanceMetricsInterfaceuserId - calling usermetricGUID - unique identifier of the metric to updateisMergeUpdate - are unspecified properties unchanged (true) or replaced with null?metricProperties - properties to updateInvalidParameterException - guid, documentIdentifier or userId is null; documentIdentifier is not unique; guid is not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void deleteGovernanceMetric(String userId, String metricGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
deleteGovernanceMetric in interface GovernanceMetricsInterfaceuserId - calling usermetricGUID - unique identifier of the metric to removeInvalidParameterException - guid is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void setupGovernanceDefinitionMetric(String userId, String metricGUID, String governanceDefinitionGUID, String rationale) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setupGovernanceDefinitionMetric in interface GovernanceMetricsInterfaceuserId - calling usermetricGUID - unique identifier of the governance metricgovernanceDefinitionGUID - unique identifier of the governance definitionrationale - description of how the metric supports the driverInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void clearGovernanceDefinitionMetric(String userId, String metricGUID, String governanceDefinitionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
clearGovernanceDefinitionMetric in interface GovernanceMetricsInterfaceuserId - calling usermetricGUID - unique identifier of the governance metricgovernanceDefinitionGUID - unique identifier of the governance definitionInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic GovernanceMetricElement getGovernanceMetricByGUID(String userId, String metricGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceMetricByGUID in interface GovernanceMetricsInterfaceuserId - calling usermetricGUID - unique identifier for the governance metricInvalidParameterException - metricGUID or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<GovernanceMetricElement> findGovernanceMetrics(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
findGovernanceMetrics in interface GovernanceMetricsInterfaceuserId - the name of the calling user.searchString - value to search for (supports wildcards).startFrom - index of the list to start from (0 for start)pageSize - maximum number of elements to return.InvalidParameterException - guid invalid or the search parameter is not correctly specified, or is null.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.