Class 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.
    • 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 convert
        endpoint - endpoint for the connection
        connectorType - connector type for the connection
        embeddedConnections - list of embedded connections (optional)
        repositoryHelper - helper object to parse entity/relationship objects
        serviceName - name of this component
        serverName - 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:
        getBean in class ReferenceableConverter
        Returns:
        output bean