Class ConnectionConverter<B>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>
org.odpi.openmetadata.commonservices.generichandlers.OMFConverter<B>
org.odpi.openmetadata.accessservices.assetmanager.converters.AssetManagerOMASConverter<B>
org.odpi.openmetadata.accessservices.assetmanager.converters.ConnectionConverter<B>
OCFConnectionConverter transfers the relevant properties from some Open Metadata Repository Services (OMRS)
EntityDetail and Relationship objects into a Connection bean (or a VirtualConnection bean).
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetNewComplexBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail primaryEntity, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail> supplementaryEntities, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> relationships, String methodName) Using the supplied instances, return a new instance of the bean.Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OMFConverter
getRelatedElement, getRelatedElementMethods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter
addSchemaTypeToAttribute, getElementStub, getElementStub, getElementStub, getElementType, getMetadataElementHeader, getNewBean, getNewBean, getNewComplexBean, getNewRelationshipBean, getNewSchemaAttributeBean, getNewSchemaTypeBean, getNewSchemaTypeBean, removeKeyPattern, removeSortOrder, setUpSchemaAttribute
-
Constructor Details
-
ConnectionConverter
public ConnectionConverter(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName) Constructor- Parameters:
repositoryHelper- helper object to parse entityserviceName- name of this componentserverName- local server name
-
-
Method Details
-
getNewComplexBean
public B getNewComplexBean(Class<B> beanClass, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail primaryEntity, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail> supplementaryEntities, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> relationships, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Using the supplied instances, return a new instance of the bean. It is used for beans such as a connection bean which made up of 3 entities (Connection, ConnectorType and Endpoint) plus the relationships between them. The relationships may be omitted if they do not have any properties.- Overrides:
getNewComplexBeanin classorg.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericConverter<B>- Parameters:
beanClass- name of the class to createprimaryEntity- entity that is the root of the collection of entities that make up the content of the beansupplementaryEntities- entities connected to the primary entity by the relationshipsrelationships- relationships linking the entitiesmethodName- calling method- Returns:
- bean populated with properties from the instances supplied
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem instantiating the bean
-