Class OpenConnectorArchiveBuilder
- java.lang.Object
-
- org.odpi.openmetadata.archiveutilities.openconnectors.base.OpenConnectorArchiveBuilder
-
- Direct Known Subclasses:
DataStoreConnectorsArchiveBuilder
public class OpenConnectorArchiveBuilder extends Object
OpenConnectorArchiveBuilder creates the open metadata compliant instances for connectors that follow the Open Connector Framework (OCF).
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOpenConnectorArchiveBuilder(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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringaddConnection(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.protected StringaddConnectorCategory(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.protected StringaddConnectorType(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.protected StringaddConnectorType(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.protected StringaddConnectorTypeDirectory(String qualifiedName, String displayName, String description, Map<String,String> additionalProperties)Create a connector category entity.protected StringaddEndpoint(String qualifiedName, String displayName, String description, String networkAddress, String protocol, Map<String,String> additionalProperties)Create a endpoint entity.protected OpenMetadataArchivegetOpenMetadataArchive()Returns the open metadata type archive containing all of the content loaded by the subclass.protected voidlogBadArchiveContent(String methodName)Throws an exception if there is a problem building the archive.
-
-
-
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 connectiondisplayName- display name for the connectiondescription- description about the connectionuserId- userId that the connector should use to connect to the platform that hosts the asset.clearPassword- possible password for the connectorencryptedPassword- possible password for the connectorsecuredProperties- properties hidden from the clientconfigurationProperties- properties used to configure the connectoradditionalProperties- any other properties.connectorTypeGUID- unique identifier for the connector typeendpointGUID- 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 categorizedconnectorTypeGUID- fixed unique identifier for connector type - comes from the Connector ProviderqualifiedName- unique name for the connector typedisplayName- display name for the connector typedescription- description about the connector typesupportedAssetTypeName- type of asset supported by this connectorexpectedDataFormat- format of the data stored in the resourceconnectorProviderClassName- code for this type of connectorconnectorFrameworkName- name of the framework that the connector implements - default "Open Connector Framework (OCF)"connectorInterfaceLanguage- programming language of the connector's interfaceconnectorInterfaces- the interfaces that the connector implementstargetTechnologySource- organization implementing the target technologytargetTechnologyName- name of the target technologytargetTechnologyInterfaces- called interfaces the target technologytargetTechnologyVersions- supported versions of the target technologyrecognizedSecuredProperties- 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 categorizedqualifiedName- unique name for the connector typedisplayName- display name for the connector typedescription- description about the connector typesupportedAssetTypeName- type of asset supported by this connectorexpectedDataFormat- format of the data stored in the resourceconnectorProviderClassName- code for this type of connectorconnectorFrameworkName- name of the framework that the connector implements - default "Open Connector Framework (OCF)"connectorInterfaceLanguage- programming language of the connector's interfaceconnectorInterfaces- the interfaces that the connector implementstargetTechnologySource- organization implementing the target technologytargetTechnologyName- name of the target technologytargetTechnologyInterfaces- called interfaces the target technologytargetTechnologyVersions- supported versions of the target technologyrecognizedSecuredProperties- 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 categoryqualifiedName- unique name for the connector categorydisplayName- display name for the connector categorydescription- description about the connector categorytargetTechnologySource- organization implementing the target technologytargetTechnologyName- name of the target technologyrecognizedSecuredProperties- 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 directorydisplayName- display name for the connector type directorydescription- description about the connector type directoryadditionalProperties- 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 endpointdisplayName- display name for the endpointdescription- description about the endpointnetworkAddress- location of the assetprotocol- protocol to use to connect to the assetadditionalProperties- any other properties.- Returns:
- id for the endpoint
-
-