Class OpenMetadataStoreConverter<B>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
org.odpi.openmetadata.commonservices.generichandlers.OCFConverter<B>
org.odpi.openmetadata.frameworkservices.gaf.converters.OpenMetadataStoreConverter<B>
- Direct Known Subclasses:
EngineActionConverter,GovernanceActionProcessConverter,GovernanceActionProcessStepConverter,GovernanceActionTypeConverter,MetadataElementConverter,RelatedElementConverter,RelatedElementsConverter,ValidMetadataValueConverter
public abstract class OpenMetadataStoreConverter<B>
extends org.odpi.openmetadata.commonservices.generichandlers.OCFConverter<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 TypeMethodDescriptionvoidfillElementControlHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.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.voidfillOpenMetadataElement(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.ElementPropertiesmapElementProperties(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.OpenMetadataAPIGenericConverter
getElementStub, getElementStub, getElementStub, getElementType, getMetadataElementHeader, getNewBean, getNewBean, getNewComplexBean, getNewComplexBean, getNewRelationshipBean, getNewSchemaAttributeBean, getNewSchemaTypeBean, getNewSchemaTypeBean
-
Method Details
-
fillElementControlHeader
public void fillElementControlHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.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 headerheader- 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 fillentity- values from repositories
-