Class OpenConnectorArchiveBuilder


  • public class OpenConnectorArchiveBuilder
    extends Object
    OpenConnectorArchiveBuilder creates the open metadata compliant instances for connectors that follow the Open Connector Framework (OCF).
    • Constructor Detail

      • OpenConnectorArchiveBuilder

        protected OpenConnectorArchiveBuilder​(String archiveGUID,
                                              String archiveName,
                                              String archiveDescription,
                                              OpenMetadataArchiveType archiveType,
                                              String archiveRootName,
                                              String originatorName,
                                              String originatorLicense,
                                              Date creationDate,
                                              long versionNumber,
                                              String versionName)
        Typical constructor passes parameters used to build the open metadata archive's property header.
        Parameters:
        archiveGUID - unique identifier for this open metadata archive.
        archiveName - name of the open metadata archive.
        archiveDescription - description of the open metadata archive.
        archiveType - enum describing the type of archive this is.
        archiveRootName - non-spaced root name of the open metadata archive elements.
        originatorName - name of the originator (person or organization) of the archive.
        originatorLicense - license for the content.
        creationDate - data that this archive was created.
        versionNumber - version number of the archive.
        versionName - version name for the archive.
    • Method Detail

      • getOpenMetadataArchive

        protected OpenMetadataArchive getOpenMetadataArchive()
        Returns the open metadata type archive containing all of the content loaded by the subclass.
        Returns:
        populated open metadata archive object
      • logBadArchiveContent

        protected void logBadArchiveContent​(String methodName)
        Throws an exception if there is a problem building the archive.
        Parameters:
        methodName - calling method
      • addConnection

        protected String addConnection​(String qualifiedName,
                                       String displayName,
                                       String description,
                                       String userId,
                                       String clearPassword,
                                       String encryptedPassword,
                                       Map<String,​String> securedProperties,
                                       Map<String,​Object> configurationProperties,
                                       Map<String,​String> additionalProperties,
                                       String connectorTypeGUID,
                                       String endpointGUID)
        Create a connection entity.
        Parameters:
        qualifiedName - unique name for the connection
        displayName - display name for the connection
        description - description about the connection
        userId - userId that the connector should use to connect to the platform that hosts the asset.
        clearPassword - possible password for the connector
        encryptedPassword - possible password for the connector
        securedProperties - properties hidden from the client
        configurationProperties - properties used to configure the connector
        additionalProperties - any other properties.
        connectorTypeGUID - unique identifier for the connector type
        endpointGUID - unique identifier for the endpoint of the asset
        Returns:
        id for the connection
      • addConnectorType

        protected String addConnectorType​(String connectorCategoryGUID,
                                          String connectorTypeGUID,
                                          String qualifiedName,
                                          String displayName,
                                          String description,
                                          String supportedAssetTypeName,
                                          String expectedDataFormat,
                                          String connectorProviderClassName,
                                          String connectorFrameworkName,
                                          String connectorInterfaceLanguage,
                                          List<String> connectorInterfaces,
                                          String targetTechnologySource,
                                          String targetTechnologyName,
                                          List<String> targetTechnologyInterfaces,
                                          List<String> targetTechnologyVersions,
                                          List<String> recognizedSecuredProperties,
                                          List<String> recognizedConfigurationProperties,
                                          List<String> recognizedAdditionalProperties,
                                          Map<String,​String> additionalProperties)
        Create a connector type entity.
        Parameters:
        connectorCategoryGUID - unique identifier of connector category - or null is not categorized
        connectorTypeGUID - fixed unique identifier for connector type - comes from the Connector Provider
        qualifiedName - unique name for the connector type
        displayName - display name for the connector type
        description - description about the connector type
        supportedAssetTypeName - type of asset supported by this connector
        expectedDataFormat - format of the data stored in the resource
        connectorProviderClassName - code for this type of connector
        connectorFrameworkName - name of the framework that the connector implements - default "Open Connector Framework (OCF)"
        connectorInterfaceLanguage - programming language of the connector's interface
        connectorInterfaces - the interfaces that the connector implements
        targetTechnologySource - organization implementing the target technology
        targetTechnologyName - name of the target technology
        targetTechnologyInterfaces - called interfaces the target technology
        targetTechnologyVersions - supported versions of the target technology
        recognizedSecuredProperties - names of supported properties hidden from the client - for connection object.
        recognizedConfigurationProperties - names of supported properties used to configure the connector - for connection object.
        recognizedAdditionalProperties - names of any other properties for connection object.
        additionalProperties - any other properties.
        Returns:
        id for the connector type
      • addConnectorType

        protected String addConnectorType​(String connectorCategoryGUID,
                                          String qualifiedName,
                                          String displayName,
                                          String description,
                                          String supportedAssetTypeName,
                                          String expectedDataFormat,
                                          String connectorProviderClassName,
                                          String connectorFrameworkName,
                                          String connectorInterfaceLanguage,
                                          List<String> connectorInterfaces,
                                          String targetTechnologySource,
                                          String targetTechnologyName,
                                          List<String> targetTechnologyInterfaces,
                                          List<String> targetTechnologyVersions,
                                          List<String> recognizedSecuredProperties,
                                          List<String> recognizedConfigurationProperties,
                                          List<String> recognizedAdditionalProperties,
                                          Map<String,​String> additionalProperties)
        Create a connector type entity.
        Parameters:
        connectorCategoryGUID - unique identifier of connector category - or null is not categorized
        qualifiedName - unique name for the connector type
        displayName - display name for the connector type
        description - description about the connector type
        supportedAssetTypeName - type of asset supported by this connector
        expectedDataFormat - format of the data stored in the resource
        connectorProviderClassName - code for this type of connector
        connectorFrameworkName - name of the framework that the connector implements - default "Open Connector Framework (OCF)"
        connectorInterfaceLanguage - programming language of the connector's interface
        connectorInterfaces - the interfaces that the connector implements
        targetTechnologySource - organization implementing the target technology
        targetTechnologyName - name of the target technology
        targetTechnologyInterfaces - called interfaces the target technology
        targetTechnologyVersions - supported versions of the target technology
        recognizedSecuredProperties - names of supported properties hidden from the client - for connection object.
        recognizedConfigurationProperties - names of supported properties used to configure the connector - for connection object.
        recognizedAdditionalProperties - names of any other properties for connection object.
        additionalProperties - any other properties.
        Returns:
        id for the connector type
      • addConnectorCategory

        protected String addConnectorCategory​(String connectorTypeDirectoryGUID,
                                              String qualifiedName,
                                              String displayName,
                                              String description,
                                              String targetTechnologySource,
                                              String targetTechnologyName,
                                              Map<String,​Boolean> recognizedSecuredProperties,
                                              Map<String,​Boolean> recognizedConfigurationProperties,
                                              Map<String,​Boolean> recognizedAdditionalProperties,
                                              Map<String,​String> additionalProperties)
        Create a connector category entity.
        Parameters:
        connectorTypeDirectoryGUID - unique identifier of connector type directory that this connector connector belongs to - or null for an independent connector category
        qualifiedName - unique name for the connector category
        displayName - display name for the connector category
        description - description about the connector category
        targetTechnologySource - organization implementing the target technology
        targetTechnologyName - name of the target technology
        recognizedSecuredProperties - names of supported properties hidden from the client - for connection object.
        recognizedConfigurationProperties - names of supported properties used to configure the connector - for connection object.
        recognizedAdditionalProperties - names of any other properties for connection object.
        additionalProperties - any other properties.
        Returns:
        id for the connector type
      • addConnectorTypeDirectory

        protected String addConnectorTypeDirectory​(String qualifiedName,
                                                   String displayName,
                                                   String description,
                                                   Map<String,​String> additionalProperties)
        Create a connector category entity.
        Parameters:
        qualifiedName - unique name for the connector type directory
        displayName - display name for the connector type directory
        description - description about the connector type directory
        additionalProperties - any other properties.
        Returns:
        id for the connector type
      • addEndpoint

        protected String addEndpoint​(String qualifiedName,
                                     String displayName,
                                     String description,
                                     String networkAddress,
                                     String protocol,
                                     Map<String,​String> additionalProperties)
        Create a endpoint entity.
        Parameters:
        qualifiedName - unique name for the endpoint
        displayName - display name for the endpoint
        description - description about the endpoint
        networkAddress - location of the asset
        protocol - protocol to use to connect to the asset
        additionalProperties - any other properties.
        Returns:
        id for the endpoint