Class VirtualConnectionProperties

  • All Implemented Interfaces:

    public class VirtualConnectionProperties
    extends ConnectionProperties
    The VirtualConnectionProperties 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 VirtualConnectionProperties are those for ConnectionProperties plus a list of connections for the
    See Also:
    Serialized Form
    • Constructor Detail

      • VirtualConnectionProperties

        public VirtualConnectionProperties​(VirtualConnection connectionBean)
        Bean constructor
        connectionBean - bean containing the properties
      • VirtualConnectionProperties

        public VirtualConnectionProperties​(VirtualConnectionProperties templateConnection)
        Copy/clone Constructor to return a copy of a connection object that is connected to an asset.
        templateConnection - template object to copy.
    • Method Detail

      • getEmbeddedConnections

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

        public java.lang.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
        getConnectionName in class ConnectionProperties
        connection name
      • getDescription

        public java.lang.String getDescription()
        Returns the stored description property for the connection. If no description is provided then null is returned.
        getDescription in class ConnectionProperties
      • getEndpoint

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

        protected java.util.Map<java.lang.String,​java.lang.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.
        getSecuredProperties in class ConnectionProperties
        secured properties typically user credentials for the connection
      • toString

        public java.lang.String toString()
        Standard toString method.
        toString in class ConnectionProperties
        print out of variables in a JSON-style
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        equals in class ConnectionProperties
        objectToCompare - supplied object
        boolean result of comparison