Class ConnectionConverter
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ReferenceableConverter
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ConnectionConverter
-
public class ConnectionConverter extends ReferenceableConverter
ConnectionConverter transfers the relevant properties from some Open Metadata Repository Services (OMRS) EntityDetail and Relationship objects into a Connection bean.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
entity, relationship, repositoryHelper, serverName, serviceName, typeName
-
-
Constructor Summary
Constructors Constructor Description ConnectionConverter(EntityDetail connectionEntity, Endpoint endpoint, ConnectorType connectorType, List<EmbeddedConnection> embeddedConnections, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)Constructor captures the repository content needed to create the connection object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectiongetBean()Request the bean is extracted from the repository objects.-
Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ReferenceableConverter
getClassificationProperties, updateBean
-
Methods inherited from class org.odpi.openmetadata.commonservices.ocf.metadatamanagement.converters.ElementHeaderConverter
setTypeName, updateBean
-
-
-
-
Constructor Detail
-
ConnectionConverter
public ConnectionConverter(EntityDetail connectionEntity, Endpoint endpoint, ConnectorType connectorType, List<EmbeddedConnection> embeddedConnections, OMRSRepositoryHelper repositoryHelper, String serviceName, String serverName)
Constructor captures the repository content needed to create the connection object. This may ba a Connection or a VirtualConnection. EmbeddedConnections determines which.- Parameters:
connectionEntity- properties to convertendpoint- endpoint for the connectionconnectorType- connector type for the connectionembeddedConnections- list of embedded connections (optional)repositoryHelper- helper object to parse entity/relationship objectsserviceName- name of this componentserverName- called server
-
-
Method Detail
-
getBean
public Connection getBean()
Request the bean is extracted from the repository objects. This bean has multiple parts to it. At the root is a connection object. It typically has a connector type and an endpoint linked to it. Optionally it has embedded connections in it.- Overrides:
getBeanin classReferenceableConverter- Returns:
- output bean
-
-