Class OpenGovernanceClient

java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.client.OpenMetadataClient
org.odpi.openmetadata.frameworks.governanceaction.client.OpenGovernanceClient
All Implemented Interfaces:
org.odpi.openmetadata.frameworks.openmetadata.client.ExternalIdentifiersInterface, org.odpi.openmetadata.frameworks.openmetadata.client.MetadataElementInterface, org.odpi.openmetadata.frameworks.openmetadata.client.MultiLanguageInterface, org.odpi.openmetadata.frameworks.openmetadata.client.OpenMetadataTypesInterface, org.odpi.openmetadata.frameworks.openmetadata.client.StewardshipRequestInterface, org.odpi.openmetadata.frameworks.openmetadata.client.ValidMetadataValuesInterface

public abstract class OpenGovernanceClient extends org.odpi.openmetadata.frameworks.openmetadata.client.OpenMetadataClient
OpenMetadataClient provides access to metadata elements stored in the metadata repositories. It is implemented by a metadata repository provider. In Egeria, this class is implemented in the GAF Metadata Management running in the Metadata Access Server OMAG Server.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OpenGovernanceClient(String serviceURLMarker, String serverName, String serverPlatformURLRoot)
    Create a new client with no authentication embedded in the HTTP request.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract String
    createIncidentReport(String userId, String qualifiedName, int domainIdentifier, String background, List<org.odpi.openmetadata.frameworks.openmetadata.properties.IncidentImpactedElement> impactedResources, List<org.odpi.openmetadata.frameworks.openmetadata.properties.IncidentDependency> previousIncidents, Map<String,Integer> incidentClassifiers, Map<String,String> additionalProperties, String originatorGUID)
    Create an incident report to capture the situation detected by this governance service.
    abstract String
    initiateGovernanceActionProcess(String userId, String processQualifiedName, List<String> requestSourceGUIDs, List<org.odpi.openmetadata.frameworks.openmetadata.properties.NewActionTarget> actionTargets, Date startTime, Map<String,String> requestParameters, String originatorServiceName, String originatorEngineName)
    Using the named governance action process as a template, initiate a chain of engine actions.
    Standard toString method.

    Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.client.OpenMetadataClient

    addExternalIdentifier, classifyMetadataElementInStore, confirmSynchronization, createMetadataElementFromTemplate, createMetadataElementInStore, createMetadataElementInStore, createRelatedElementsInStore, declassifyMetadataElementInStore, deleteMetadataElementInStore, deleteRelationshipInStore, detachRelatedElementsInStore, findAttributeTypeDefsByCategory, findElementsForAnchor, findElementsInAnchorDomain, findElementsInAnchorScope, findMetadataElements, findMetadataElementsWithString, findMetadataElementsWithString, findRelationshipsBetweenMetadataElements, findTypeDefsByCategory, findTypesByExternalId, getAllTypes, getAnchoredElementsGraph, getAttributeTypeDefByGUID, getAttributeTypeDefByName, getDeletedElementByUniqueName, getElementsForExternalIdentifier, getExternalIdentifiers, getMaxPagingSize, getMetadataElementByGUID, getMetadataElementByUniqueName, getMetadataElementGUIDByUniqueName, getMetadataElementHistory, getMetadataElementRelationships, getRelatedMetadataElement, getRelatedMetadataElements, getRelationshipByGUID, getRelationshipHistory, getServerName, getSubTypes, getTypeDefByGUID, getTypeDefByName, getVendorProperties, reclassifyMetadataElementInStore, removeExternalIdentifier, updateClassificationEffectivityInStore, updateExternalIdentifier, updateMetadataElementEffectivityInStore, updateMetadataElementInStore, updateMetadataElementStatusInStore, updateRelatedElementsInStore, updateRelationshipEffectivityInStore, updateRelationshipInStore, validateExternalIdentifier

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.odpi.openmetadata.frameworks.openmetadata.client.ExternalIdentifiersInterface

    removeExternalScope

    Methods inherited from interface org.odpi.openmetadata.frameworks.openmetadata.client.MetadataElementInterface

    archiveMetadataElementInStore, archiveMetadataElementInStore, classifyMetadataElementInStore, createMetadataElementFromTemplate, createMetadataElementInStore, createMetadataElementInStore, createRelatedElementsInStore, declassifyMetadataElementInStore, deleteMetadataElementInStore, deleteRelationshipInStore, detachRelatedElementsInStore, getMetadataElementFromTemplate, reclassifyMetadataElementInStore, updateClassificationEffectivityInStore, updateMetadataElementEffectivityInStore, updateMetadataElementInStore, updateMetadataElementStatusInStore, updateRelatedElementsInStore, updateRelationshipEffectivityInStore, updateRelationshipInStore

    Methods inherited from interface org.odpi.openmetadata.frameworks.openmetadata.client.MultiLanguageInterface

    clearTranslation, getTranslation, getTranslations, setTranslation

    Methods inherited from interface org.odpi.openmetadata.frameworks.openmetadata.client.StewardshipRequestInterface

    openToDo, registerContextEvent

    Methods inherited from interface org.odpi.openmetadata.frameworks.openmetadata.client.ValidMetadataValuesInterface

    clearValidMetadataMapName, clearValidMetadataMapValue, clearValidMetadataValue, getConsistentMetadataValues, getSpecification, getValidMetadataMapName, getValidMetadataMapValue, getValidMetadataValue, getValidMetadataValues, setConsistentMetadataValues, setUpValidMetadataMapName, setUpValidMetadataMapValue, setUpValidMetadataValue, validateMetadataMapName, validateMetadataMapValue, validateMetadataValue
  • Constructor Details

    • OpenGovernanceClient

      public OpenGovernanceClient(String serviceURLMarker, String serverName, String serverPlatformURLRoot)
      Create a new client with no authentication embedded in the HTTP request.
      Parameters:
      serviceURLMarker - the identifier of the access service (for example asset-owner for the Asset Owner OMAS)
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
  • Method Details

    • initiateGovernanceActionProcess

      public abstract String initiateGovernanceActionProcess(String userId, String processQualifiedName, List<String> requestSourceGUIDs, List<org.odpi.openmetadata.frameworks.openmetadata.properties.NewActionTarget> actionTargets, Date startTime, Map<String,String> requestParameters, String originatorServiceName, String originatorEngineName) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Using the named governance action process as a template, initiate a chain of engine actions.
      Parameters:
      userId - caller's userId
      processQualifiedName - unique name of the governance action process to use
      requestSourceGUIDs - request source elements for the resulting governance service
      actionTargets - map of action target names to GUIDs for the resulting governance service
      startTime - future start time or null for "as soon as possible"
      requestParameters - request properties to be passed to the first engine action
      originatorServiceName - unique name of the requesting governance service (if initiated by a governance engine).
      originatorEngineName - optional unique name of the governance engine (if initiated by a governance engine).
      Returns:
      unique identifier of the first governance action of the process
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException - null or unrecognized qualified name of the process
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException - the userId is not permitted to perform this operation
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem with the metadata store
    • createIncidentReport

      public abstract String createIncidentReport(String userId, String qualifiedName, int domainIdentifier, String background, List<org.odpi.openmetadata.frameworks.openmetadata.properties.IncidentImpactedElement> impactedResources, List<org.odpi.openmetadata.frameworks.openmetadata.properties.IncidentDependency> previousIncidents, Map<String,Integer> incidentClassifiers, Map<String,String> additionalProperties, String originatorGUID) throws org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException
      Create an incident report to capture the situation detected by this governance service. This incident report will be processed by other governance activities.
      Parameters:
      userId - caller's userId
      qualifiedName - unique identifier to give this new incident report
      domainIdentifier - governance domain associated with this action (0=ALL)
      background - description of the situation
      impactedResources - details of the resources impacted by this situation
      previousIncidents - links to previous incident reports covering this situation
      incidentClassifiers - initial classifiers for the incident report
      additionalProperties - additional arbitrary properties for the incident reports
      originatorGUID - the unique identifier of the person or process that created the incident
      Returns:
      unique identifier of the resulting incident report
      Throws:
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.InvalidParameterException - null or non-unique qualified name for the incident report
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.UserNotAuthorizedException - the userId is not permitted to perform this operation
      org.odpi.openmetadata.frameworks.openmetadata.ffdc.PropertyServerException - there is a problem with the metadata store
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class org.odpi.openmetadata.frameworks.openmetadata.client.OpenMetadataClient
      Returns:
      print out of variables in a JSON-style