Class VirtualConnectionDetails


public class VirtualConnectionDetails extends ConnectionDetails
The VirtualConnectionDetails is an object that contains the properties needed to create and initialise a virtual connector to access a virtual asset that is constructed from access to one of more other assets. Connectors are uses to access the underlying assets.

The properties for VirtualConnectionDetails are those for ConnectionDetails plus a list of connections for the embedded connectors.
  • Field Details

  • Constructor Details

    • VirtualConnectionDetails

      public VirtualConnectionDetails(VirtualConnection connectionBean)
      Bean constructor
      Parameters:
      connectionBean - bean containing the properties
    • VirtualConnectionDetails

      public VirtualConnectionDetails(VirtualConnectionDetails templateConnection)
      Copy/clone Constructor to return a copy of a connection object that is connected to an asset.
      Parameters:
      templateConnection - template object to copy.
  • Method Details

    • getConnectionBean

      protected VirtualConnection getConnectionBean()
      Return the bean with all the properties.
      Overrides:
      getConnectionBean in class ConnectionDetails
      Returns:
      connection bean
    • getEmbeddedConnections

      public List<EmbeddedConnectionDetails> getEmbeddedConnections()
      Returns the stored display name property for the connection. Null means no displayName is available.
      Returns:
      displayName
    • getConnectionName

      public String getConnectionName()
      Returns a formatted string with the connection name. It is used in formatting error messages for the exceptions thrown by consuming components. It is extremely cautious because most of the exceptions are reporting a malformed connection object so who knows what else is wrong with it. Within the connection are 2 possible properties that could contain the connection name: ** qualifiedName - this is a uniqueName and should be there ** displayName - shorter simpler name but may not be unique - so may not identify the connection in error This method inspects these properties and builds up a string to represent the connection name
      Overrides:
      getConnectionName in class ConnectionDetails
      Returns:
      connection name
    • getDescription

      public String getDescription()
      Returns the stored description property for the connection. If no description is provided then null is returned.
      Overrides:
      getDescription in class ConnectionDetails
      Returns:
      description
    • getConnectorType

      public ConnectorTypeDetails getConnectorType()
      Returns a copy of the properties for this connection's connector type. A null means there is no connection type.
      Overrides:
      getConnectorType in class ConnectionDetails
      Returns:
      connector type for the connection
    • getEndpoint

      public EndpointDetails getEndpoint()
      Returns a copy of the properties for this connection's endpoint. Null means no endpoint information available.
      Overrides:
      getEndpoint in class ConnectionDetails
      Returns:
      endpoint for the connection
    • getSecuredProperties

      public Map<String,String> getSecuredProperties()
      Return a copy of the secured properties. Null means no secured properties are available. This method is protected so only OCF (or subclasses) can access them. When Connector is passed to calling OMAS, the secured properties are not available.
      Overrides:
      getSecuredProperties in class ConnectionDetails
      Returns:
      secured properties typically user credentials for the connection
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class ConnectionDetails
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class ConnectionDetails
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Hash of properties
      Overrides:
      hashCode in class ConnectionDetails
      Returns:
      int