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 TypeMethodDescriptionvoidfillElementControlHeader(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.voidfillOpenMetadataElement(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.OpenMetadataElementStubgetOpenMetadataElementStub(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entityProxy) Create an OpenMetadataElementStub from an EntityProxy.org.odpi.openmetadata.frameworks.openmetadata.search.ElementPropertiesmapElementProperties(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
getRelatedMetadataElementSummaryMethods 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
-
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 headerheader- 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 fillentity- values from repositories
-