public class GovernanceDefinitionManager extends Object implements GovernanceDefinitionsInterface
| Constructor and Description |
|---|
GovernanceDefinitionManager(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceDefinitionManager(String serverName,
String serverPlatformURLRoot,
GovernanceProgramRESTClient restClient,
int maxPageSize)
Create a new client that uses the supplied rest client.
|
GovernanceDefinitionManager(String serverName,
String serverPlatformURLRoot,
int maxPageSize,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceDefinitionManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
GovernanceDefinitionManager(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 |
clearSupportingDefinition(String userId,
String definitionGUID,
String supportingDefinitionGUID,
String relationshipTypeName)
Remove the supporting link between two governance definitions.
|
String |
createGovernanceDefinition(String userId,
GovernanceDefinitionProperties properties)
Create a new governance definition.
|
void |
deleteGovernanceDefinition(String userId,
String definitionGUID)
Delete a specific governance definition.
|
void |
linkPeerDefinitions(String userId,
String definitionOneGUID,
String definitionTwoGUID,
String relationshipTypeName,
String description)
Link two related governance definitions together.
|
void |
setGovernanceDefinitionStatus(String userId,
String definitionGUID,
GovernanceDefinitionStatus newStatus)
Update the status of a governance definition
|
void |
setupSupportingDefinition(String userId,
String definitionGUID,
String supportingDefinitionGUID,
String relationshipTypeName,
String rationale)
Create a link to show that a governance definition supports the requirements of another governance definition.
|
void |
unlinkPeerDefinitions(String userId,
String definitionOneGUID,
String definitionTwoGUID,
String relationshipTypeName)
Remove the link between two definitions.
|
void |
updateGovernanceDefinition(String userId,
String definitionGUID,
boolean isMergeUpdate,
GovernanceDefinitionProperties properties)
Update an existing governance definition.
|
public GovernanceDefinitionManager(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 GovernanceDefinitionManager(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 GovernanceDefinitionManager(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 GovernanceDefinitionManager(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 GovernanceDefinitionManager(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 createGovernanceDefinition(String userId, GovernanceDefinitionProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createGovernanceDefinition in interface GovernanceDefinitionsInterfaceuserId - calling userproperties - properties of the definitionInvalidParameterException - typeName, documentIdentifier or userId is null; documentIdentifier is not unique; typeName is not validPropertyServerException - problem accessing the metadata serviceUserNotAuthorizedException - security access problempublic void updateGovernanceDefinition(String userId, String definitionGUID, boolean isMergeUpdate, GovernanceDefinitionProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateGovernanceDefinition in interface GovernanceDefinitionsInterfaceuserId - calling userdefinitionGUID - unique identifier of the definition to updateisMergeUpdate - are unspecified properties unchanged (true) or removed?properties - 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 setGovernanceDefinitionStatus(String userId, String definitionGUID, GovernanceDefinitionStatus newStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setGovernanceDefinitionStatus in interface GovernanceDefinitionsInterfaceuserId - calling userdefinitionGUID - unique identifiernewStatus - new statusInvalidParameterExceptionUserNotAuthorizedExceptionPropertyServerExceptionpublic void deleteGovernanceDefinition(String userId, String definitionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
deleteGovernanceDefinition in interface GovernanceDefinitionsInterfaceuserId - calling userdefinitionGUID - unique identifier of the definition to removeInvalidParameterException - guid is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void linkPeerDefinitions(String userId, String definitionOneGUID, String definitionTwoGUID, String relationshipTypeName, String description) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
linkPeerDefinitions in interface GovernanceDefinitionsInterfaceuserId - calling userdefinitionOneGUID - unique identifier of the first definitiondefinitionTwoGUID - unique identifier of the second definitionrelationshipTypeName - the name of the relationship to createdescription - description of their relationshipInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void unlinkPeerDefinitions(String userId, String definitionOneGUID, String definitionTwoGUID, String relationshipTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unlinkPeerDefinitions in interface GovernanceDefinitionsInterfaceuserId - calling userdefinitionOneGUID - unique identifier of the first definitiondefinitionTwoGUID - unique identifier of the second definitionrelationshipTypeName - the name of the relationship to deleteInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void setupSupportingDefinition(String userId, String definitionGUID, String supportingDefinitionGUID, String relationshipTypeName, String rationale) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setupSupportingDefinition in interface GovernanceDefinitionsInterfaceuserId - calling userdefinitionGUID - unique identifier of the governance definitionsupportingDefinitionGUID - unique identifier of the supporting governance definitionrelationshipTypeName - the name of the relationship to createrationale - description of how the supporting definition provides supportInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void clearSupportingDefinition(String userId, String definitionGUID, String supportingDefinitionGUID, String relationshipTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
clearSupportingDefinition in interface GovernanceDefinitionsInterfaceuserId - calling userdefinitionGUID - unique identifier of the governance definitionsupportingDefinitionGUID - unique identifier of the supporting governance definitionrelationshipTypeName - the name of the relationship to deleteInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.