public class GovernanceExchangeClient extends ExchangeClientBase implements GovernanceExchangeInterface
| Constructor and Description |
|---|
GovernanceExchangeClient(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceExchangeClient(String serverName,
String serverPlatformURLRoot,
AssetManagerRESTClient restClient,
int maxPageSize,
AuditLog auditLog)
Create a new client that is going to be used in an OMAG Server.
|
GovernanceExchangeClient(String serverName,
String serverPlatformURLRoot,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceExchangeClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
GovernanceExchangeClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addElementToSubjectArea(String userId,
String assetManagerGUID,
String assetManagerName,
String elementGUID,
String elementExternalIdentifier,
String subjectAreaName,
String methodName)
Classify the element to asset that the definitions it represents are part of a subject area definition.
|
void |
addGovernanceDefinitionToElement(String userId,
String assetManagerGUID,
String assetManagerName,
String definitionGUID,
String elementGUID,
String methodName)
Link a governance definition to an element using the GovernedBy relationship.
|
void |
clearGovernanceDelegation(String userId,
String assetManagerGUID,
String assetManagerName,
String definitionGUID,
String delegatedToDefinitionGUID)
Remove the link between a governance definition and a governance definition that is delegated to (ie provides an implementation of).
|
String |
createGovernanceDefinition(String userId,
String assetManagerGUID,
String assetManagerName,
String typeName,
String definitionExternalIdentifier,
String definitionExternalIdentifierName,
String definitionExternalIdentifierUsage,
String definitionExternalIdentifierSource,
KeyPattern definitionExternalIdentifierKeyPattern,
Map<String,String> mappingProperties,
GovernanceDefinitionProperties definitionProperties)
Create a new definition.
|
void |
deleteGovernanceDefinition(String userId,
String assetManagerGUID,
String assetManagerName,
String definitionGUID)
Delete a specific governance definition.
|
GovernanceDefinitionElement |
getGovernanceDefinitionByDocId(String userId,
String assetManagerGUID,
String assetManagerName,
String documentIdentifier)
Retrieve the governance definition by its assigned unique document identifier.
|
GovernanceDefinitionElement |
getGovernanceDefinitionByGUID(String userId,
String assetManagerGUID,
String assetManagerName,
String definitionGUID)
Retrieve the governance definition by the unique identifier assigned by this service when it was created.
|
void |
linkDefinitions(String userId,
String assetManagerGUID,
String assetManagerName,
String definitionOneGUID,
String definitionTwoGUID,
String description)
Link two related definitions together.
|
void |
removeElementFromSubjectArea(String userId,
String assetManagerGUID,
String assetManagerName,
String elementGUID,
String externalElementIdentifier,
String methodName)
Remove the subject area designation from the identified element.
|
void |
removeGovernanceDefinitionFromElement(String userId,
String assetManagerGUID,
String assetManagerName,
String definitionGUID,
String elementGUID,
String methodName)
Remove the GovernedBy relationship between a governance definition and an element.
|
void |
setupGovernanceDelegation(String userId,
String assetManagerGUID,
String assetManagerName,
String definitionGUID,
String delegatedToDefinitionGUID,
String rationale)
Create a link to show that a governance definition supports the requirements of one of the governance drivers.
|
void |
unlinkDefinitions(String userId,
String assetManagerGUID,
String assetManagerName,
String definitionOneGUID,
String definitionTwoGUID)
Remove the link between two definitions.
|
void |
updateGovernanceDefinition(String userId,
String assetManagerGUID,
String assetManagerName,
String definitionGUID,
boolean isMergeUpdate,
GovernanceDefinitionProperties definitionProperties)
Update an existing definition.
|
public GovernanceExchangeClient(String serverName, String serverPlatformURLRoot, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceExchangeClient(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 - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceExchangeClient(String serverName, String serverPlatformURLRoot, String userId, String password, 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 requestsauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceExchangeClient(String serverName, String serverPlatformURLRoot, AssetManagerRESTClient restClient, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - client that issues the REST API callsmaxPageSize - maximum number of results supported by this serverauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceExchangeClient(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 - there is a problem creating the client-side components to issue any
REST API calls.public String createGovernanceDefinition(String userId, String assetManagerGUID, String assetManagerName, String typeName, String definitionExternalIdentifier, String definitionExternalIdentifierName, String definitionExternalIdentifierUsage, String definitionExternalIdentifierSource, KeyPattern definitionExternalIdentifierKeyPattern, Map<String,String> mappingProperties, GovernanceDefinitionProperties definitionProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createGovernanceDefinition in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerdefinitionExternalIdentifier - unique identifier of the definition in the external asset managerdefinitionExternalIdentifierName - name of property for the external identifier in the external asset managerdefinitionExternalIdentifierUsage - optional usage description for the external identifier when calling the external asset managerdefinitionExternalIdentifierSource - component that issuing this request.definitionExternalIdentifierKeyPattern - pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties - additional properties to help with the mapping of the elements in the external asset manager and open metadatatypeName - type of definitiondefinitionProperties - properties of the definitionInvalidParameterException - typeName, documentIdentifier or userId is null; documentIdentifier is not unique; typeName is not validPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void updateGovernanceDefinition(String userId, String assetManagerGUID, String assetManagerName, String definitionGUID, boolean isMergeUpdate, GovernanceDefinitionProperties definitionProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateGovernanceDefinition in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerdefinitionGUID - unique identifier of the definition to updateisMergeUpdate - are unspecified properties unchanged (true) or replaced with null?definitionProperties - 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 deleteGovernanceDefinition(String userId, String assetManagerGUID, String assetManagerName, String definitionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
deleteGovernanceDefinition in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerdefinitionGUID - unique identifier of the definition to removeInvalidParameterException - guid is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void linkDefinitions(String userId, String assetManagerGUID, String assetManagerName, String definitionOneGUID, String definitionTwoGUID, String description) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
linkDefinitions in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerdefinitionOneGUID - unique identifier of the first definitiondefinitionTwoGUID - unique identifier of the second definitiondescription - description of their relationshipInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void unlinkDefinitions(String userId, String assetManagerGUID, String assetManagerName, String definitionOneGUID, String definitionTwoGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unlinkDefinitions in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerdefinitionOneGUID - unique identifier of the first definitiondefinitionTwoGUID - unique identifier of the second definitionInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void setupGovernanceDelegation(String userId, String assetManagerGUID, String assetManagerName, String definitionGUID, String delegatedToDefinitionGUID, String rationale) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setupGovernanceDelegation in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerdefinitionGUID - unique identifier of the governance definitiondelegatedToDefinitionGUID - unique identifier of the governance definition that is delegated torationale - description of how the delegation supports the definitionInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void clearGovernanceDelegation(String userId, String assetManagerGUID, String assetManagerName, String definitionGUID, String delegatedToDefinitionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
clearGovernanceDelegation in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerdefinitionGUID - unique identifier of the governance definitiondelegatedToDefinitionGUID - unique identifier of the governance definition that is delegated toInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic GovernanceDefinitionElement getGovernanceDefinitionByGUID(String userId, String assetManagerGUID, String assetManagerName, String definitionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceDefinitionByGUID in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerdefinitionGUID - identifier of the governance definition to retrieveInvalidParameterException - documentIdentifier or userId is null; guid is not recognizedPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic GovernanceDefinitionElement getGovernanceDefinitionByDocId(String userId, String assetManagerGUID, String assetManagerName, String documentIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceDefinitionByDocId in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerdocumentIdentifier - identifier to search forInvalidParameterException - documentIdentifier or userId is null; documentIdentifier is not recognizedPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void addGovernanceDefinitionToElement(String userId, String assetManagerGUID, String assetManagerName, String definitionGUID, String elementGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addGovernanceDefinitionToElement in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerdefinitionGUID - identifier of the governance definition to linkelementGUID - unique identifier of the metadata element to linkmethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeGovernanceDefinitionFromElement(String userId, String assetManagerGUID, String assetManagerName, String definitionGUID, String elementGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeGovernanceDefinitionFromElement in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerdefinitionGUID - identifier of the governance definition to linkelementGUID - unique identifier of the metadata element to updatemethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void addElementToSubjectArea(String userId, String assetManagerGUID, String assetManagerName, String elementGUID, String elementExternalIdentifier, String subjectAreaName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addElementToSubjectArea in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerelementGUID - unique identifier of the metadata element to updateelementExternalIdentifier - unique identifier of the glossary category in the external asset managersubjectAreaName - qualified name of subject areamethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)public void removeElementFromSubjectArea(String userId, String assetManagerGUID, String assetManagerName, String elementGUID, String externalElementIdentifier, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeElementFromSubjectArea in interface GovernanceExchangeInterfaceuserId - calling userassetManagerGUID - unique identifier of software server capability representing the callerassetManagerName - unique name of software server capability representing the callerelementGUID - unique identifier of the metadata element to updateexternalElementIdentifier - unique identifier of the equivalent element in the external asset managermethodName - calling methodInvalidParameterException - one of the parameters is invalidUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - there is a problem reported in the open metadata server(s)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.