Class ContentPackBaseArchiveWriter
java.lang.Object
org.odpi.openmetadata.repositoryservices.archiveutilities.OMRSArchiveWriter
org.odpi.openmetadata.samples.archiveutilities.EgeriaBaseArchiveWriter
org.odpi.openmetadata.archiveutilities.openconnectors.base.ContentPackBaseArchiveWriter
- Direct Known Subclasses:
ApacheAtlasPackArchiveWriter,ApacheKafkaPackArchiveWriter,APIPackArchiveWriter,CorePackArchiveWriter,NannyPackArchiveWriter,PostgresPackArchiveWriter,ProductPackArchiveWriter,UnityCatalogPackArchiveWriter
CorePackArchiveWriter creates an open metadata archive that includes the connector type
information for all open connectors supplied by the egeria project.
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class org.odpi.openmetadata.samples.archiveutilities.EgeriaBaseArchiveWriter
archiveBuilder, archiveFileName, archiveGUID, archiveHelper, archiveLicense, archiveName, archiveType, guidMapFileName, originatorName, versionName -
Constructor Summary
ConstructorsConstructorDescriptionContentPackBaseArchiveWriter(String archiveGUID, String archiveName, String archiveDescription, String archiveFileName, OpenMetadataArchive[] additionalDependencies) Constructor for an archive. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDataAssetCatalogTemplates(ContentPackDefinition contentPackDefinition) Loop through the server template definitions creating the specified templates.protected StringaddDeployedImplementationType(String deployedImplementationType, String associatedTypeName, String qualifiedName, String description, String wikiLink, DeployedImplementationTypeDefinition isATypeOf) Add a new valid values record for a deployed implementation type.protected voidaddDigitalProductCatalogDefinition(ContentPackDefinition contentPackDefinition) Add a catalog definition for this content pack (if applicable).protected voidaddGovernanceActionType(String governanceEngineGUID, String governanceEngineName, String governanceEngineTypeName, String governanceRequestType, Map<String, String> requestParameters, List<NewActionTarget> actionTargets, GovernanceActionDescription governanceActionDescription, String governanceActionTypeGUID, String supportedElementQualifiedName) Add details of a request type to the engine.protected voidaddIntegrationConnectors(ContentPackDefinition contentPackDefinition, IntegrationGroupDefinition integrationGroupDefinition) Add the integration connectors for the content pack.protected voidaddIntegrationGroups(ContentPackDefinition contentPackDefinition) Loop through the integration group definitions creating the specified definitions for the names content pack.protected voidaddRequestType(String governanceEngineGUID, String governanceEngineName, String governanceEngineTypeName, String governanceRequestType, String serviceRequestType, Map<String, String> requestParameters, List<NewActionTarget> actionTargets, GovernanceActionDescription governanceActionDescription, String governanceActionTypeGUID, String supportedElementQualifiedName) Add details of a request type to the engine.protected voidaddSecretStoreConnection(String assetGUID, DeployedImplementationTypeDefinition deployedImplementationType, String qualifiedName, String assetName, String secretsStoreConnectorTypeGUID, String secretsStoreCollectionName, String secretsStoreFileName, String secretsStorePurpose, String parentConnectionGUID) Add the connection for a nested secrets store connector.protected voidaddSoftwareServerCatalogTemplates(ContentPackDefinition contentPackDefinition) Loop through the server template definitions creating the specified templates.protected voidaddStepExecutor(String stepGUID, RequestTypeDefinition requestTypeDefinition, GovernanceEngineDefinition governanceEngineDefinition) Create the executor relationships and attach the action targets to the step.protected voidaddTabularDataSetCatalogTemplates(ContentPackDefinition contentPackDefinition) Loop through the server template definitions creating the specified templates.protected StringaddTechnologyConnection(String assetGUID, DeployedImplementationTypeDefinition deployedImplementationType, String qualifiedName, String assetName, String connectorTypeGUID, String networkAddress, Map<String, Object> configurationProperties, String secretsStoreConnectorTypeGUID, String secretsStoreCollectionName, String secretsStoreFileName, String secretsStorePurpose) Add the connection for the connector that interacts with a specific technology.protected voidcreateAndCatalogAssetGovernanceActionProcess(String assetType, String openMetadataType, String technologyType, RequestTypeDefinition createRequestType, TemplateDefinition createTemplate, RequestTypeDefinition catalogRequestType, String supportedElementQualifiedName) Create a two-step governance action process that creates a metadata element for a particular type of asset and then adds it as a catalog target for an appropriate integration connector.protected voidcreateAndCatalogServerGovernanceActionProcess(String serverType, String technologyType, RequestTypeDefinition createRequestType, TemplateDefinition createTemplate, RequestTypeDefinition catalogRequestType, String supportedElementQualifiedName) Create a two-step governance action process that creates a metadata element for a particular type of server and then adds it as a catalog target for an appropriate integration connector.protected voidcreateAndHarvestToAssetGovernanceActionProcess(String assetType, String openMetadataType, String technologyType, RequestTypeDefinition createRequestType, TemplateDefinition createTemplate, RequestTypeDefinition catalogRequestType, String supportedElementQualifiedName) Create a two-step governance action process that creates a metadata element for a particular type of asset and then adds it as a catalog target for an appropriate integration connector.protected voidcreateAndSurveyServerGovernanceActionProcess(String assetType, String technologyType, RequestTypeDefinition createRequestType, TemplateDefinition createTemplate, RequestTypeDefinition surveyRequestType, String supportedElementQualifiedName) Create a three-step governance action process that creates a metadata element for a particular type of asset and then runs a survey against the asset's resource and creates a report.protected voidcreateAsCatalogTargetGovernanceActionProcess(String assetType, String openMetadataType, String technologyType, String actionName, RequestTypeDefinition createRequestType, TemplateDefinition createTemplate, RequestTypeDefinition catalogRequestType, String supportedElementQualifiedName) Create a two-step governance action process that creates a metadata element for a particular type of asset and then adds it as a catalog target for an appropriate integration connector.protected voidcreateDataAssetCatalogTemplate(String templateGUID, String templateVersion, DeployedImplementationTypeDefinition deployedImplementationType, String assetName, String assetDescription, String qualifiedName, String versionIdentifier, Map<String, Object> suppliedExtendedProperties, String encoding, String encodingLanguage, String connectorTypeGUID, String networkAddress, Map<String, Object> configurationProperties, String secretsStoreCollectionName, String secretsStorePurpose, String secretsStoreConnectorTypeGUID, String secretsStoreFileName, List<ReplacementAttributeType> replacementAttributeTypes, List<PlaceholderPropertyType> placeholderPropertyTypes) Create a template for a type of asset and link it to the associated deployed implementation type.protected voidcreateDataFileCatalogTemplate(DeployedImplementationType deployedImplementationType, String connectorTypeGUID, String encodingLanguage, Map<String, Object> configurationProperties, List<PlaceholderPropertyType> placeholderPropertyTypes) Create a template for a data file and link it to the associated open metadata type.protected voidcreateEndpointCatalogTemplate(String guid, String templateName, String templateDescription, String templateVersion, DeployedImplementationTypeDefinition deployedImplementationType, String serverName, String description, String networkAddress, String protocol, List<PlaceholderPropertyType> placeholderPropertyTypes) Create a template for a software server and link it to the associated deployed implementation type.protected voidcreateGovernanceEngines(ContentPackDefinition contentPackDefinition) Create the default governance enginesprotected voidcreateGovernanceServices(ContentPackDefinition contentPackDefinition) Register the governance services that are going to be in the default governance engines.protected voidcreateHostCatalogTemplate(String guid, DeployedImplementationType deployedImplementationType, DeployedImplementationType softwareCapabilityType, String softwareCapabilityName, Classification softwareCapabilityClassification) Create a template for a host and link it to the associated deployed implementation type.protected voidcreateRequestTypes(ContentPackDefinition contentPackDefinition) Add the request types.protected voidcreateSoftwareCapabilityCatalogTemplate(String guid, DeployedImplementationType deployedImplementationType, String serverQualifiedName, String softwareCapabilityName, String softwareCapabilityDescription, Classification softwareCapabilityClassification, List<ReplacementAttributeType> replacementAttributeTypes, List<PlaceholderPropertyType> placeholderPropertyTypes) Create a template for a software server and link it to the associated deployed implementation type.protected voidcreateSoftwareServerCatalogTemplate(String guid, String qualifiedName, String templateName, String templateDescription, String templateVersion, DeployedImplementationTypeDefinition deployedImplementationType, DeployedImplementationTypeDefinition softwareCapabilityType, String softwareCapabilityName, String serverName, String serverVersionIdentifier, String description, String userId, String connectorTypeGUID, String networkAddress, Map<String, Object> configurationProperties, String secretsStoreCollectionName, String secretsStorePurpose, String secretsStoreConnectorTypeGUID, String secretsStoreFileName, List<ReplacementAttributeType> replacementAttributeTypes, List<PlaceholderPropertyType> placeholderPropertyTypes) Create a template for a software server and link it to the associated deployed implementation type.protected voidcreateTabularDataSetCatalogTemplate(String templateGUID, String templateVersion, DeployedImplementationTypeDefinition deployedImplementationType, String assetName, String assetDescription, String qualifiedName, String versionIdentifier, Map<String, Object> suppliedExtendedProperties, String encoding, String encodingLanguage, String dataSetConnectorTypeGUID, Map<String, Object> dataSetConfigurationProperties, String technologyConnectorTypeGUID, String networkAddress, Map<String, Object> technologyConfigurationProperties, String secretsStoreCollectionName, String secretsStorePurpose, String secretsStoreConnectorTypeGUID, String secretsStoreFileName, List<ReplacementAttributeType> replacementAttributeTypes, List<PlaceholderPropertyType> placeholderPropertyTypes) Create a template for a type of asset and link it to the associated deployed implementation type.protected voiddeleteAsCatalogTargetGovernanceActionProcess(String assetType, String openMetadataType, String technologyType, RequestTypeDefinition deleteRequestType, String supportedElementQualifiedName) Create a one-step governance action process that deletes a metadata element for a particular type of asset which then removes it, any anchored content and relationships - like the catalog target for an appropriate integration connector.protected List<RequestParameterType>getRequestTypeDefinition(List<PlaceholderPropertyType> placeholderPropertyTypes) Convert a list of placeholder variables into a list request parameters - to create the specification for a governance action process or governance action type.voidGenerates and writes out an open metadata archive containing all the connector types describing the Egeria project open connectors.Methods inherited from class org.odpi.openmetadata.samples.archiveutilities.EgeriaBaseArchiveWriter
addValidMetadataValue, addValidMetadataValue, getArchiveContent, getOpenMetadataArchive, getParentSet, setArchiveBuilder, writeOpenMetadataArchiveMethods inherited from class org.odpi.openmetadata.repositoryservices.archiveutilities.OMRSArchiveWriter
getOpenMetadataArchiveFileConnection, writeOpenMetadataArchive, writeOpenMetadataArchive
-
Field Details
-
deployedImplementationTypeQNAMEs
-
-
Constructor Details
-
ContentPackBaseArchiveWriter
public ContentPackBaseArchiveWriter(String archiveGUID, String archiveName, String archiveDescription, String archiveFileName, OpenMetadataArchive[] additionalDependencies) Constructor for an archive.- Parameters:
archiveGUID- unique identifier of the archivearchiveName- name of the archivearchiveDescription- description of archivearchiveFileName- name of file to write archive toadditionalDependencies- archive that this archive is dependent on
-
-
Method Details
-
addDigitalProductCatalogDefinition
Add a catalog definition for this content pack (if applicable).- Parameters:
contentPackDefinition- which content pack is this for?
-
createDataFileCatalogTemplate
protected void createDataFileCatalogTemplate(DeployedImplementationType deployedImplementationType, String connectorTypeGUID, String encodingLanguage, Map<String, Object> configurationProperties, List<PlaceholderPropertyType> placeholderPropertyTypes) Create a template for a data file and link it to the associated open metadata type. The template consists of a DataFile asset plus an optional connection, linked to the supplied connector type and an endpoint,- Parameters:
connectorTypeGUID- connector type to link to the connectiondeployedImplementationType- deployed implementation type to link the template toencodingLanguage- language used to encode the contents of the fileconfigurationProperties- configuration propertiesplaceholderPropertyTypes- placeholders used in template
-
addSoftwareServerCatalogTemplates
Loop through the server template definitions creating the specified templates.- Parameters:
contentPackDefinition- which content pack are these templates for?
-
addDataAssetCatalogTemplates
Loop through the server template definitions creating the specified templates.- Parameters:
contentPackDefinition- which content pack are these templates for?
-
addTabularDataSetCatalogTemplates
Loop through the server template definitions creating the specified templates.- Parameters:
contentPackDefinition- which content pack are these templates for?
-
createSoftwareServerCatalogTemplate
protected void createSoftwareServerCatalogTemplate(String guid, String qualifiedName, String templateName, String templateDescription, String templateVersion, DeployedImplementationTypeDefinition deployedImplementationType, DeployedImplementationTypeDefinition softwareCapabilityType, String softwareCapabilityName, String serverName, String serverVersionIdentifier, String description, String userId, String connectorTypeGUID, String networkAddress, Map<String, Object> configurationProperties, String secretsStoreCollectionName, String secretsStorePurpose, String secretsStoreConnectorTypeGUID, String secretsStoreFileName, List<ReplacementAttributeType> replacementAttributeTypes, List<PlaceholderPropertyType> placeholderPropertyTypes) Create a template for a software server and link it to the associated deployed implementation type. The template consists of a SoftwareServer asset linked to a software capability, plus a connection, linked to the supplied connector type and an endpoint,- Parameters:
guid- fixed unique identifierqualifiedName- unique name for the templatetemplateName- name of template in Template classificationtemplateDescription- description of the template in the Template classificationtemplateVersion- version of the template in the Template classificationdeployedImplementationType- deployed implementation type for the technologysoftwareCapabilityType- type of the associated capabilitysoftwareCapabilityName- name for the associated capabilityserverName- name for the serverserverVersionIdentifier- server version identifierdescription- description for the serveruserId- userId for the connectionconnectorTypeGUID- connector type to link to the connectionnetworkAddress- network address for the endpointconfigurationProperties- additional properties for the connectionsecretsStoreCollectionName- name of the collection to use within the secrets storesecretsStorePurpose- purpose for the secrets storesecretsStoreConnectorTypeGUID- optional name for the secrets store connector provider to include in the templatesecretsStoreFileName- location of the secrets storereplacementAttributeTypes- attributes that should have a replacement value to successfully use the templateplaceholderPropertyTypes- placeholder variables used in the supplied parameters
-
createEndpointCatalogTemplate
protected void createEndpointCatalogTemplate(String guid, String templateName, String templateDescription, String templateVersion, DeployedImplementationTypeDefinition deployedImplementationType, String serverName, String description, String networkAddress, String protocol, List<PlaceholderPropertyType> placeholderPropertyTypes) Create a template for a software server and link it to the associated deployed implementation type. The template consists of a SoftwareServer asset linked to a software capability, plus a connection, linked to the supplied connector type and an endpoint,- Parameters:
guid- fixed unique identifiertemplateName- name of template in Template classificationtemplateDescription- description of the template in the Template classificationtemplateVersion- version of the template in the Template classificationserverName- name for the serverdescription- description for the servernetworkAddress- network address for the endpointprotocol- communication protocol for the endpointplaceholderPropertyTypes- placeholder variables used in the supplied parameters
-
createHostCatalogTemplate
protected void createHostCatalogTemplate(String guid, DeployedImplementationType deployedImplementationType, DeployedImplementationType softwareCapabilityType, String softwareCapabilityName, Classification softwareCapabilityClassification) Create a template for a host and link it to the associated deployed implementation type. The template consists of a SoftwareServer asset linked to a software capability, plus a connection, linked to the supplied connector type and an endpoint,- Parameters:
guid- fixed unique identifierdeployedImplementationType- deployed implementation type for the technologysoftwareCapabilityType- type of the associated capabilitysoftwareCapabilityName- name for the associated capabilitysoftwareCapabilityClassification- classification for the software capability (or null)
-
createSoftwareCapabilityCatalogTemplate
protected void createSoftwareCapabilityCatalogTemplate(String guid, DeployedImplementationType deployedImplementationType, String serverQualifiedName, String softwareCapabilityName, String softwareCapabilityDescription, Classification softwareCapabilityClassification, List<ReplacementAttributeType> replacementAttributeTypes, List<PlaceholderPropertyType> placeholderPropertyTypes) Create a template for a software server and link it to the associated deployed implementation type. The template consists of a SoftwareServer asset linked to a software capability, plus a connection, linked to the supplied connector type and an endpoint,- Parameters:
guid- fixed guid for this templatedeployedImplementationType- deployed implementation type for the technologyserverQualifiedName- qualified name of the owning serversoftwareCapabilityName- name for the associated capabilitysoftwareCapabilityDescription- description for the software capabilitysoftwareCapabilityClassification- optional classification for the associated capabilityreplacementAttributeTypes- attributes that should have a replacement value to successfully use the templateplaceholderPropertyTypes- placeholder variables used in the supplied parameters
-
createDataAssetCatalogTemplate
protected void createDataAssetCatalogTemplate(String templateGUID, String templateVersion, DeployedImplementationTypeDefinition deployedImplementationType, String assetName, String assetDescription, String qualifiedName, String versionIdentifier, Map<String, Object> suppliedExtendedProperties, String encoding, String encodingLanguage, String connectorTypeGUID, String networkAddress, Map<String, Object> configurationProperties, String secretsStoreCollectionName, String secretsStorePurpose, String secretsStoreConnectorTypeGUID, String secretsStoreFileName, List<ReplacementAttributeType> replacementAttributeTypes, List<PlaceholderPropertyType> placeholderPropertyTypes) Create a template for a type of asset and link it to the associated deployed implementation type. The template consists of an asset linked to a connection, that is in turn linked to the supplied connector type and an endpoint, along with a nested secrets store- Parameters:
templateGUID- fixed unique identifiertemplateVersion- version of the templatedeployedImplementationType- deployed implementation type for the technologyassetName- name for the assetassetDescription- descriptionqualifiedName- optional server nameversionIdentifier- version identifiersuppliedExtendedProperties- extended properties for the assetencoding- what encoding is needed?encodingLanguage- language used to encode the contents of the fileconnectorTypeGUID- connector type to link to the connectionnetworkAddress- network address for the endpointconfigurationProperties- additional properties for the connectionsecretsStoreCollectionName- name of the collection to use in the secrets storesecretsStorePurpose- purpose for the secrets storesecretsStoreConnectorTypeGUID- optional name for the secrets store connector provider to include in the templatesecretsStoreFileName- location of the secrets storereplacementAttributeTypes- attributes that should have a replacement value to successfully use the templateplaceholderPropertyTypes- placeholder variables used in the supplied parameters
-
createTabularDataSetCatalogTemplate
protected void createTabularDataSetCatalogTemplate(String templateGUID, String templateVersion, DeployedImplementationTypeDefinition deployedImplementationType, String assetName, String assetDescription, String qualifiedName, String versionIdentifier, Map<String, Object> suppliedExtendedProperties, String encoding, String encodingLanguage, String dataSetConnectorTypeGUID, Map<String, Object> dataSetConfigurationProperties, String technologyConnectorTypeGUID, String networkAddress, Map<String, Object> technologyConfigurationProperties, String secretsStoreCollectionName, String secretsStorePurpose, String secretsStoreConnectorTypeGUID, String secretsStoreFileName, List<ReplacementAttributeType> replacementAttributeTypes, List<PlaceholderPropertyType> placeholderPropertyTypes) Create a template for a type of asset and link it to the associated deployed implementation type. The template consists of an asset linked to a connection, that is in turn linked to the supplied connector type and an endpoint, along with a nested secrets store- Parameters:
templateGUID- fixed unique identifiertemplateVersion- version of the templatedeployedImplementationType- deployed implementation type for the technologyassetName- name for the assetassetDescription- descriptionqualifiedName- optional server nameversionIdentifier- version identifiersuppliedExtendedProperties- extended properties for the assetencoding- what encoding is needed?encodingLanguage- language used to encode the contents of the filedataSetConnectorTypeGUID- connectorGUID for the wrapper connector - this is optional if the technology connector supports tabular data set directly.dataSetConfigurationProperties- configuration properties for the data set connection eg tableNametechnologyConnectorTypeGUID- connector type to link to the technologynetworkAddress- network address for the technology endpointtechnologyConfigurationProperties- additional properties for the technology connectionsecretsStoreCollectionName- name of the collection to use in the secrets storesecretsStorePurpose- purpose for the secrets storesecretsStoreConnectorTypeGUID- optional name for the secrets store connector provider to include in the templatesecretsStoreFileName- location of the secrets storereplacementAttributeTypes- attributes that should have a replacement value to successfully use the templateplaceholderPropertyTypes- placeholder variables used in the supplied parameters
-
addTechnologyConnection
protected String addTechnologyConnection(String assetGUID, DeployedImplementationTypeDefinition deployedImplementationType, String qualifiedName, String assetName, String connectorTypeGUID, String networkAddress, Map<String, Object> configurationProperties, String secretsStoreConnectorTypeGUID, String secretsStoreCollectionName, String secretsStoreFileName, String secretsStorePurpose) Add the connection for the connector that interacts with a specific technology.- Parameters:
assetGUID- unique id of assetdeployedImplementationType- asset's deployed implementation typequalifiedName- asset's qualified nameassetName- asset's display nameconnectorTypeGUID- optional unique identifier of the connector type for the connectionnetworkAddress- address to access technologyconfigurationProperties- configuration properties for the technology connectorsecretsStoreConnectorTypeGUID- connector type for the optional embedded secrets store connectorsecretsStoreCollectionName- collection name for the optional embedded secrets store connectorsecretsStoreFileName- file name for the optional embedded secrets store connectorsecretsStorePurpose- purpose of the optional embedded secrets store connector- Returns:
- unique identifier of the connection - or null if connectorTypeGUID is null
-
addSecretStoreConnection
protected void addSecretStoreConnection(String assetGUID, DeployedImplementationTypeDefinition deployedImplementationType, String qualifiedName, String assetName, String secretsStoreConnectorTypeGUID, String secretsStoreCollectionName, String secretsStoreFileName, String secretsStorePurpose, String parentConnectionGUID) Add the connection for a nested secrets store connector.- Parameters:
assetGUID- unique id of assetdeployedImplementationType- asset's deployed implementation typequalifiedName- asset's qualified nameassetName- asset's display namesecretsStoreConnectorTypeGUID- connector type for the optional embedded secrets store connectorsecretsStoreCollectionName- collection name for the optional embedded secrets store connectorsecretsStoreFileName- file name for the optional embedded secrets store connectorsecretsStorePurpose- purpose of the optional embedded secrets store connectorparentConnectionGUID- connection GUID to connect new connection to
-
addDeployedImplementationType
protected String addDeployedImplementationType(String deployedImplementationType, String associatedTypeName, String qualifiedName, String description, String wikiLink, DeployedImplementationTypeDefinition isATypeOf) Add a new valid values record for a deployed implementation type.- Parameters:
deployedImplementationType- preferred valueassociatedTypeName- specific type name to tie it to (maybe null)qualifiedName- qualifiedName for this valuedescription- description of this valuewikiLink- optional URL link to more informationisATypeOf- superType- Returns:
- unique identifier of the deployedImplementationType
-
addIntegrationGroups
Loop through the integration group definitions creating the specified definitions for the names content pack.- Parameters:
contentPackDefinition- which content pack are these templates for?
-
addIntegrationConnectors
protected void addIntegrationConnectors(ContentPackDefinition contentPackDefinition, IntegrationGroupDefinition integrationGroupDefinition) Add the integration connectors for the content pack.- Parameters:
contentPackDefinition- content pack being processedintegrationGroupDefinition- integration group
-
createGovernanceEngines
Create the default governance engines- Parameters:
contentPackDefinition- content pack being processed
-
createGovernanceServices
Register the governance services that are going to be in the default governance engines.- Parameters:
contentPackDefinition- content pack being processed
-
createRequestTypes
Add the request types.- Parameters:
contentPackDefinition- content pack to fill
-
addRequestType
protected void addRequestType(String governanceEngineGUID, String governanceEngineName, String governanceEngineTypeName, String governanceRequestType, String serviceRequestType, Map<String, String> requestParameters, List<NewActionTarget> actionTargets, GovernanceActionDescription governanceActionDescription, String governanceActionTypeGUID, String supportedElementQualifiedName) Add details of a request type to the engine.- Parameters:
governanceEngineGUID- unique identifier of the enginegovernanceEngineName- name of the governance enginegovernanceEngineTypeName- type of enginegovernanceRequestType- name of request typeserviceRequestType- internal name of the request typerequestParameters- any request parametersactionTargets- action targetsgovernanceActionDescription- description of the governance action if andgovernanceActionTypeGUID- unique identifier of the associated governance action typesupportedElementQualifiedName- element to link the governance action type to
-
addGovernanceActionType
protected void addGovernanceActionType(String governanceEngineGUID, String governanceEngineName, String governanceEngineTypeName, String governanceRequestType, Map<String, String> requestParameters, List<NewActionTarget> actionTargets, GovernanceActionDescription governanceActionDescription, String governanceActionTypeGUID, String supportedElementQualifiedName) Add details of a request type to the engine.- Parameters:
governanceEngineGUID- unique identifier of the enginegovernanceEngineName- name of the governance enginegovernanceEngineTypeName- type of enginegovernanceRequestType- name of request typerequestParameters- any request parametersactionTargets- action targetsgovernanceActionDescription- description of the governance action if anygovernanceActionTypeGUID- unique identifier of the associated governance action typesupportedElementQualifiedName- element to link the governance action type to
-
createAndSurveyServerGovernanceActionProcess
protected void createAndSurveyServerGovernanceActionProcess(String assetType, String technologyType, RequestTypeDefinition createRequestType, TemplateDefinition createTemplate, RequestTypeDefinition surveyRequestType, String supportedElementQualifiedName) Create a three-step governance action process that creates a metadata element for a particular type of asset and then runs a survey against the asset's resource and creates a report.- Parameters:
assetType- name for the asset type (no spaces)technologyType- value for deployed implementation typecreateRequestType- request type used to create the server's metadata elementcreateTemplate- details of the template to usesurveyRequestType- request type to run the surveysupportedElementQualifiedName- qualified name of the element that this should be listed as a resource
-
getRequestTypeDefinition
protected List<RequestParameterType> getRequestTypeDefinition(List<PlaceholderPropertyType> placeholderPropertyTypes) Convert a list of placeholder variables into a list request parameters - to create the specification for a governance action process or governance action type.- Parameters:
placeholderPropertyTypes- placeholder properties used by the template- Returns:
- list of request parameter definitions
-
createAndCatalogServerGovernanceActionProcess
protected void createAndCatalogServerGovernanceActionProcess(String serverType, String technologyType, RequestTypeDefinition createRequestType, TemplateDefinition createTemplate, RequestTypeDefinition catalogRequestType, String supportedElementQualifiedName) Create a two-step governance action process that creates a metadata element for a particular type of server and then adds it as a catalog target for an appropriate integration connector.- Parameters:
serverType- name for the server type (no spaces)technologyType- value for deployed implementation typecreateRequestType- request type used to create the server's metadata elementcreateTemplate- details of the template to usecatalogRequestType- request type to run the surveysupportedElementQualifiedName- qualified name of the element that this should be listed as a resource
-
createAndCatalogAssetGovernanceActionProcess
protected void createAndCatalogAssetGovernanceActionProcess(String assetType, String openMetadataType, String technologyType, RequestTypeDefinition createRequestType, TemplateDefinition createTemplate, RequestTypeDefinition catalogRequestType, String supportedElementQualifiedName) Create a two-step governance action process that creates a metadata element for a particular type of asset and then adds it as a catalog target for an appropriate integration connector.- Parameters:
assetType- name for the asset type (no spaces)openMetadataType- open metadata type name for the created assettechnologyType- value for deployed implementation typecreateRequestType- request type used to create the server's metadata elementcreateTemplate- details of the template to usecatalogRequestType- request type to run the surveysupportedElementQualifiedName- qualified name of the element that this should be listed as a resource
-
createAndHarvestToAssetGovernanceActionProcess
protected void createAndHarvestToAssetGovernanceActionProcess(String assetType, String openMetadataType, String technologyType, RequestTypeDefinition createRequestType, TemplateDefinition createTemplate, RequestTypeDefinition catalogRequestType, String supportedElementQualifiedName) Create a two-step governance action process that creates a metadata element for a particular type of asset and then adds it as a catalog target for an appropriate integration connector.- Parameters:
assetType- name for the asset type (no spaces)openMetadataType- open metadata type name for the created assettechnologyType- value for deployed implementation typecreateRequestType- request type used to create the server's metadata elementcreateTemplate- details of the template to usecatalogRequestType- request type to run the surveysupportedElementQualifiedName- qualified name of the element that this should be listed as a resource
-
createAsCatalogTargetGovernanceActionProcess
protected void createAsCatalogTargetGovernanceActionProcess(String assetType, String openMetadataType, String technologyType, String actionName, RequestTypeDefinition createRequestType, TemplateDefinition createTemplate, RequestTypeDefinition catalogRequestType, String supportedElementQualifiedName) Create a two-step governance action process that creates a metadata element for a particular type of asset and then adds it as a catalog target for an appropriate integration connector.- Parameters:
assetType- name for the server type (no spaces)openMetadataType- type of the element to createtechnologyType- value for deployed implementation typeactionName- nme to use for the actioncreateRequestType- request type used to create the server's metadata elementcreateTemplate- details of the template to usecatalogRequestType- request type to run the surveysupportedElementQualifiedName- qualified name of the element that this should be listed as a resource
-
deleteAsCatalogTargetGovernanceActionProcess
protected void deleteAsCatalogTargetGovernanceActionProcess(String assetType, String openMetadataType, String technologyType, RequestTypeDefinition deleteRequestType, String supportedElementQualifiedName) Create a one-step governance action process that deletes a metadata element for a particular type of asset which then removes it, any anchored content and relationships - like the catalog target for an appropriate integration connector.- Parameters:
assetType- name for the server type (no spaces)technologyType- value for deployed implementation typedeleteRequestType- request type used to delete the server's metadata elementsupportedElementQualifiedName- qualified name of the element that this should be listed as a resource
-
addStepExecutor
protected void addStepExecutor(String stepGUID, RequestTypeDefinition requestTypeDefinition, GovernanceEngineDefinition governanceEngineDefinition) Create the executor relationships and attach the action targets to the step.- Parameters:
stepGUID- unique identifier of the governance action process steprequestTypeDefinition- the request type being configuredgovernanceEngineDefinition- the engine to connect it to
-
writeOpenMetadataArchive
public void writeOpenMetadataArchive()Generates and writes out an open metadata archive containing all the connector types describing the Egeria project open connectors.- Overrides:
writeOpenMetadataArchivein classEgeriaBaseArchiveWriter
-