Class OpenMetadataStoreConverter<B>

java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
org.odpi.openmetadata.commonservices.generichandlers.OMFConverter<B>
org.odpi.openmetadata.frameworkservices.gaf.converters.OpenMetadataStoreConverter<B>
Direct Known Subclasses:
ElementHeaderConverter, EngineActionConverter, ExternalIdentifierConverter, GovernanceActionProcessConverter, GovernanceActionProcessStepConverter, GovernanceActionTypeConverter, MetadataElementConverter, RelatedElementConverter, RelatedElementsConverter, ValidMetadataValueConverter

public abstract class OpenMetadataStoreConverter<B> extends org.odpi.openmetadata.commonservices.generichandlers.OMFConverter<B>
OpenMetadataStoreConverter provides the generic methods for the Governance Action Framework (GAF) beans converters. Generic classes have limited knowledge of the classes these are working on and this means creating a new instance of a class from within a generic is a little involved. This class provides the generic method for creating and initializing a Governance Engine bean.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fillElementControlHeader(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader elementControlHeader, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader header)
    Fill a GAF control header from the information in a repository services element header.
    void
    fillOpenMetadataElement(org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement bean, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
    Fill out the properties for the GAF Open Metadata Element bean with values from an OMRS entity.
    org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties
    mapElementProperties(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
    Fill out the properties for the GAF Open Metadata Element bean with values from an OMRS entity.

    Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OMFConverter

    getRelatedElement, getRelatedElement

    Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter

    addSchemaTypeToAttribute, getElementStub, getElementStub, getElementStub, getElementType, getMetadataElementHeader, getNewBean, getNewBean, getNewComplexBean, getNewComplexBean, getNewRelationshipBean, getNewSchemaAttributeBean, getNewSchemaTypeBean, getNewSchemaTypeBean, removeKeyPattern, removeSortOrder, setUpSchemaAttribute

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • fillElementControlHeader

      public void fillElementControlHeader(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader elementControlHeader, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader header)
      Fill a GAF control header from the information in a repository services element header.
      Parameters:
      elementControlHeader - GAF object control header
      header - OMRS element header
    • mapElementProperties

      public org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties mapElementProperties(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
      Fill out the properties for the GAF Open Metadata Element bean with values from an OMRS entity.
      Parameters:
      instanceProperties - retrieve properties
      Returns:
      properties mapped to GAF
    • fillOpenMetadataElement

      public void fillOpenMetadataElement(org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement bean, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
      Fill out the properties for the GAF Open Metadata Element bean with values from an OMRS entity.
      Parameters:
      bean - bean to fill
      entity - values from repositories