Class OpenMetadataStoreConverter<B>

java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
org.odpi.openmetadata.commonservices.generichandlers.OMFConverter<B>
org.odpi.openmetadata.frameworkservices.omf.converters.OpenMetadataStoreConverter<B>
Direct Known Subclasses:
ElementHeaderConverter, ExternalIdentifierConverter, MetadataElementConverter, OpenMetadataElementStubConverter, OpenMetadataRelationshipConverter, RelatedElementConverter, ValidMetadataValueConverter

public abstract class OpenMetadataStoreConverter<B> extends org.odpi.openmetadata.commonservices.generichandlers.OMFConverter<B>
OpenMetadataStoreConverter provides the generic methods for the Governance Action Framework (omf) 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 omf control header from the information in a repository services element header.
    void
    fillOpenMetadataElement(org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElement bean, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entity)
    Fill out the properties for the omf Open Metadata Element bean with values from an OMRS entity.
    org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElementStub
    getOpenMetadataElementStub(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entityProxy)
    Create an OpenMetadataElementStub from an EntityProxy.
    org.odpi.openmetadata.frameworks.openmetadata.search.ElementProperties
    mapElementProperties(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties instanceProperties)
    Fill out the properties for the omf Open Metadata Element bean with values from an OMRS entity.

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

    getRelatedMetadataElementSummary

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

    addSchemaTypeToAttribute, getElementStub, getElementStub, getElementStub, getElementType, getMetadataElementHeader, getNewBean, getNewBean, getNewComplexBean, getNewComplexBean, getNewComplexBean, getNewRelationshipBean, getNewSchemaAttributeBean, getNewSchemaTypeBean, getNewSchemaTypeBean, getRelatedBy, getRelatedElement, getRelatedElement, 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 omf control header from the information in a repository services element header.
      Parameters:
      elementControlHeader - omf object control header
      header - OMRS element header
    • getOpenMetadataElementStub

      public org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataElementStub getOpenMetadataElementStub(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entityProxy)
      Create an OpenMetadataElementStub from an EntityProxy.
      Parameters:
      entityProxy - retrieved entity proxy
      Returns:
      stub
    • mapElementProperties

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

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