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 StringaddConnectorType(String connectorTypeGUID, String qualifiedName, String displayName, String description, String connectorProviderClassName, List<String> recognizedSecuredProperties, List<String> recognizedConfigurationProperties, List<String> recognizedAdditionalProperties, Map<String,String> additionalProperties)Create a connector type entity.protected StringaddConnectorType(String qualifiedName, String displayName, String description, String connectorProviderClassName, List<String> recognizedSecuredProperties, List<String> recognizedConfigurationProperties, List<String> recognizedAdditionalProperties, Map<String,String> additionalProperties)Create a connector type 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 connectorTypeGUID, String qualifiedName, String displayName, String description, String connectorProviderClassName, List<String> recognizedSecuredProperties, List<String> recognizedConfigurationProperties, List<String> recognizedAdditionalProperties, Map<String,String> additionalProperties)
Create a connector type entity.- Parameters:
connectorTypeGUID- 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 typeconnectorProviderClassName- code for this type of connectorrecognizedSecuredProperties- 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 qualifiedName, String displayName, String description, String connectorProviderClassName, List<String> recognizedSecuredProperties, List<String> recognizedConfigurationProperties, List<String> recognizedAdditionalProperties, Map<String,String> additionalProperties)
Create a connector type entity.- Parameters:
qualifiedName- unique name for the connector typedisplayName- display name for the connector typedescription- description about the connector typeconnectorProviderClassName- code for this type of connectorrecognizedSecuredProperties- 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
-
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
-
-