Interface ProvisioningGovernanceContext
- All Superinterfaces:
GovernanceContext
- All Known Implementing Classes:
GovernanceActionContext
ProvisioningGovernanceContext provides access to the details of the provisioning request along with basic access to the
metadata store.
A provisioning service is typically using the requestSourceElements to provision new resources at the actionTargetElements.
It may also create the lineage to cover its provisioning work.
The methods provided to create the lineage are simple. They include an optional templateGUID to copy the structure of a more complex element
if needed. Alternatively, the provisioning service can specify a guard on completion to initiate a remediation service to fill out the
lineage metadata in more detail.
-
Method Summary
Modifier and TypeMethodDescriptioncreateAsset
(String assetTypeName, String qualifiedName, String name, String description) Create an asset such as a data file, database, API or server.createAsset
(String assetTypeName, String qualifiedName, String name, String versionIdentifier, String description, ElementProperties extendedProperties) Create an asset such as a data file, database, API or server.createAssetFromTemplate
(String templateGUID, String qualifiedName, String name, String description) Create an asset such as a data file, database, API or server.createAssetFromTemplate
(String assetTypeName, String templateGUID, String qualifiedName, String name, String versionIdentifier, String description, ElementProperties extendedProperties) Create an asset such as a data file, database, API or server.createChildProcess
(String processTypeName, ElementStatus initialStatus, String qualifiedName, String name, String description, String parentGUID) Create a process that represents the processing instance of this governance action.createChildProcess
(String processTypeName, ElementStatus initialStatus, String qualifiedName, String name, String versionIdentifier, String description, String formula, ElementProperties extendedProperties, String parentGUID) Create a process that represents the processing instance of this governance action.createLineageRelationship
(String sourceElementGUID, String targetElementGUID) Create a LineageMapping relationship between a source and target element.createLineageRelationship
(String relationshipName, String sourceElementGUID, String qualifiedName, String label, String description, String formula, String targetElementGUID) Create a lineage relationship between a source and target element.createPort
(String processGUID, String qualifiedName, String displayName, PortType portType) Add a port to a process.createProcess
(String processTypeName, ElementStatus initialStatus, String qualifiedName, String name, String description) Create a new process to represent the processing of this governance action process.createProcess
(String processTypeName, ElementStatus initialStatus, String qualifiedName, String name, String versionIdentifier, String description, String formula, ElementProperties extendedProperties) Create a new process to represent the processing of this governance action process.createProcessFromTemplate
(String templateGUID, ElementStatus initialStatus, String qualifiedName, String name, String description) Create a new process to represent the processing of this governance action process.createProcessFromTemplate
(String templateGUID, ElementStatus initialStatus, String qualifiedName, String name, String versionIdentifier, String description, String formula, ElementProperties extendedProperties) Create a new process to represent the processing of this governance action process.Methods inherited from interface org.odpi.openmetadata.frameworks.governanceaction.GovernanceContext
addCatalogTarget, createGovernanceEngine, createGovernanceService, createIncidentReport, createIntegrationConnector, createIntegrationGroup, deleteGovernanceEngine, deleteGovernanceService, deleteIntegrationConnector, deleteIntegrationGroup, getActionTargetElements, getAllGovernanceEngines, getAllGovernanceServices, getAllIntegrationConnectors, getAllIntegrationGroups, getCatalogTarget, getCatalogTargets, getCompletionStatus, getEngineActionGUID, getGovernanceEngineByGUID, getGovernanceEngineByName, getGovernanceServiceByGUID, getGovernanceServiceByName, getGovernanceServiceRegistrations, getIntegrationConnectorByGUID, getIntegrationConnectorByName, getIntegrationConnectorRegistrations, getIntegrationGroupByGUID, getIntegrationGroupByName, getMaxPageSize, getOpenMetadataStore, getRegisteredGovernanceService, getRegisteredGovernanceServices, getRegisteredIntegrationConnector, getRegisteredIntegrationConnectors, getRequesterUserId, getRequestParameters, getRequestSourceElements, getRequestType, recordCompletionStatus, recordCompletionStatus, recordCompletionStatus, recordCompletionStatus, recordCompletionStatus, registerGovernanceServiceWithEngine, registerGovernanceServiceWithEngine, registerIntegrationConnectorWithGroup, removeCatalogTarget, unregisterGovernanceServiceFromEngine, unregisterIntegrationConnectorFromGroup, updateActionTargetStatus, updateCatalogTarget, updateGovernanceEngine, updateGovernanceService, updateIntegrationConnector, updateIntegrationGroup
-
Method Details
-
createAsset
String createAsset(String assetTypeName, String qualifiedName, String name, String description) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create an asset such as a data file, database, API or server.- Parameters:
assetTypeName
- the type name of the asset. This is the name of an open metadata type that inherits from "Asset".qualifiedName
- the unique name of the new assetname
- the technical display name of the resourcedescription
- the description of the resource- Returns:
- unique identifier of the new asset
- Throws:
InvalidParameterException
- the type name or qualified name is null or invalidUserNotAuthorizedException
- this governance action service is not authorized to create an assetPropertyServerException
- there is a problem connecting to the metadata store
-
createAsset
String createAsset(String assetTypeName, String qualifiedName, String name, String versionIdentifier, String description, ElementProperties extendedProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create an asset such as a data file, database, API or server.- Parameters:
assetTypeName
- the type name of the asset. This is the name of an open metadata type that inherits from "Asset".qualifiedName
- the unique name of the new assetname
- the technical display name of the resourceversionIdentifier
- version of the resourcedescription
- the description of the resourceextendedProperties
- attributes introduced by subtypes of Asset- Returns:
- unique identifier of the new asset
- Throws:
InvalidParameterException
- the type name or qualified name is null or invalidUserNotAuthorizedException
- this governance action service is not authorized to create an assetPropertyServerException
- there is a problem connecting to the metadata store
-
createAssetFromTemplate
String createAssetFromTemplate(String templateGUID, String qualifiedName, String name, String description) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create an asset such as a data file, database, API or server. This is used if the provisioning governance action service has created a new asset as part of the provisioning process. This interface includes an optional templateGUID to copy the structure of an existing asset of the same type.- Parameters:
templateGUID
- the unique identifier of the existing asset to copy (this will copy all the attachments such as nested content, schema, connection etc)qualifiedName
- the unique name of the new assetname
- the technical display name of the assetdescription
- the description of the asset- Returns:
- unique identifier of the new asset
- Throws:
InvalidParameterException
- the type name or qualified name is null or invalidUserNotAuthorizedException
- this governance action service is not authorized to create an assetPropertyServerException
- there is a problem connecting to the metadata store
-
createAssetFromTemplate
String createAssetFromTemplate(String assetTypeName, String templateGUID, String qualifiedName, String name, String versionIdentifier, String description, ElementProperties extendedProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create an asset such as a data file, database, API or server. This is used if the provisioning governance action service has created a new asset as part of the provisioning process. This interface includes an optional templateGUID to copy the structure of an existing asset of the same type.- Parameters:
assetTypeName
- the type name of the asset. This is the name of an open metadata type that inherits from "Asset".templateGUID
- the unique identifier of the existing asset to copy (this will copy all the attachments such as nested content, schema, connection etc)qualifiedName
- the unique name of the new assetname
- the technical display name of the assetversionIdentifier
- version of the resourcedescription
- the description of the assetextendedProperties
- attributes introduced by subtypes of Asset- Returns:
- unique identifier of the new asset
- Throws:
InvalidParameterException
- the type name or qualified name is null or invalidUserNotAuthorizedException
- this governance action service is not authorized to create an assetPropertyServerException
- there is a problem connecting to the metadata store
-
createProcess
String createProcess(String processTypeName, ElementStatus initialStatus, String qualifiedName, String name, String description) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new process to represent the processing of this governance action process.- Parameters:
processTypeName
- the type name of the process. This is the name of an open metadata type that inherits from "Process".initialStatus
- status value of the processqualifiedName
- the unique name of the new processname
- the technical display name of the processdescription
- the description of the process- Returns:
- unique identifier of the new process
- Throws:
InvalidParameterException
- the type name or qualified name is null or invalidUserNotAuthorizedException
- this governance action service is not authorized to create a processPropertyServerException
- there is a problem connecting to the metadata store
-
createProcess
String createProcess(String processTypeName, ElementStatus initialStatus, String qualifiedName, String name, String versionIdentifier, String description, String formula, ElementProperties extendedProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new process to represent the processing of this governance action process.- Parameters:
processTypeName
- the type name of the process. This is the name of an open metadata type that inherits from "Process".initialStatus
- status value of the processqualifiedName
- the unique name of the new processname
- the technical display name of the processversionIdentifier
- version of the resourcedescription
- the description of the processformula
- expression that describes the behaviour of the processextendedProperties
- attributes introduced by subtypes of Process- Returns:
- unique identifier of the new process
- Throws:
InvalidParameterException
- the type name or qualified name is null or invalidUserNotAuthorizedException
- this governance action service is not authorized to create a processPropertyServerException
- there is a problem connecting to the metadata store
-
createProcessFromTemplate
String createProcessFromTemplate(String templateGUID, ElementStatus initialStatus, String qualifiedName, String name, String description) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new process to represent the processing of this governance action process.- Parameters:
templateGUID
- the unique identifier of the existing process to copy (this will copy all the attachments such as ports, nested content, schema, connection etc)initialStatus
- status value of the processqualifiedName
- the unique name of the new processname
- the technical display name of the processdescription
- the description of the process- Returns:
- unique identifier of the new process
- Throws:
InvalidParameterException
- the type name or qualified name is null or invalidUserNotAuthorizedException
- this governance action service is not authorized to create a processPropertyServerException
- there is a problem connecting to the metadata store
-
createProcessFromTemplate
String createProcessFromTemplate(String templateGUID, ElementStatus initialStatus, String qualifiedName, String name, String versionIdentifier, String description, String formula, ElementProperties extendedProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new process to represent the processing of this governance action process.- Parameters:
templateGUID
- the unique identifier of the existing process to copy (this will copy all the attachments such as ports, nested content, schema, connection etc)initialStatus
- status value of the processqualifiedName
- the unique name of the new processname
- the technical display name of the processversionIdentifier
- version of the resourcedescription
- the description of the processformula
- expression that describes the behaviour of the processextendedProperties
- attributes introduced by subtypes of Process- Returns:
- unique identifier of the new process
- Throws:
InvalidParameterException
- the type name or qualified name is null or invalidUserNotAuthorizedException
- this governance action service is not authorized to create a processPropertyServerException
- there is a problem connecting to the metadata store
-
createChildProcess
String createChildProcess(String processTypeName, ElementStatus initialStatus, String qualifiedName, String name, String description, String parentGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a process that represents the processing instance of this governance action.- Parameters:
processTypeName
- the type name of the process. This is the name of an open metadata type that inherits from "Process".initialStatus
- status value of the processqualifiedName
- the unique name of the new processname
- the technical display name of the processdescription
- the description of the processparentGUID
- the unique identifier of the existing process to copy (this will copy all the attachments such as ports, nested content, schema, connection etc)- Returns:
- unique identifier of the new process
- Throws:
InvalidParameterException
- the type name or qualified name is null or invalidUserNotAuthorizedException
- this governance action service is not authorized to create a processPropertyServerException
- there is a problem connecting to the metadata store
-
createChildProcess
String createChildProcess(String processTypeName, ElementStatus initialStatus, String qualifiedName, String name, String versionIdentifier, String description, String formula, ElementProperties extendedProperties, String parentGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a process that represents the processing instance of this governance action.- Parameters:
processTypeName
- the type name of the process. This is the name of an open metadata type that inherits from "Process".initialStatus
- status value of the processqualifiedName
- the unique name of the new processname
- the technical display name of the processversionIdentifier
- version of the resourcedescription
- the description of the processformula
- expression that describes the behaviour of the processextendedProperties
- attributes introduced by subtypes of ProcessparentGUID
- the unique identifier of the existing process to copy (this will copy all the attachments such as ports, nested content, schema, connection etc)- Returns:
- unique identifier of the new process
- Throws:
InvalidParameterException
- the type name or qualified name is null or invalidUserNotAuthorizedException
- this governance action service is not authorized to create a processPropertyServerException
- there is a problem connecting to the metadata store
-
createPort
String createPort(String processGUID, String qualifiedName, String displayName, PortType portType) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Add a port to a process.- Parameters:
processGUID
- unique identifier of the processqualifiedName
- unique name for the portdisplayName
- display name for the portportType
- type of port (direction of data flow)- Returns:
- unique identifier of the new port
- Throws:
InvalidParameterException
- the processGUID or qualified name is null or is invalidUserNotAuthorizedException
- the governance action service is not authorized to create this type of elementPropertyServerException
- there is a problem with the metadata store
-
createLineageRelationship
String createLineageRelationship(String sourceElementGUID, String targetElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a LineageMapping relationship between a source and target element. This could be between two assets, two process ports or two schema elements.- Parameters:
sourceElementGUID
- unique identifier of the element that describes the source of the data.targetElementGUID
- unique identifier of the element that describes the destination of the data.- Returns:
- unique identifier of the relationship
- Throws:
InvalidParameterException
- one of the GUIDs is null or is invalidUserNotAuthorizedException
- the governance action service is not authorized to create this type of relationshipPropertyServerException
- there is a problem with the metadata store
-
createLineageRelationship
String createLineageRelationship(String relationshipName, String sourceElementGUID, String qualifiedName, String label, String description, String formula, String targetElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a lineage relationship between a source and target element. This could be between two assets, two process ports or two schema elements.- Parameters:
relationshipName
- either LineageMapping, ProcessCall, DataFlow, ControlFlow.sourceElementGUID
- unique identifier of the element that describes the source of the data.qualifiedName
- qualifiedName of the information supply chainlabel
- label for when the lineage relationship is visualizeddescription
- description of the lineage activityformula
- expression summatargetElementGUID
- unique identifier of the element that describes the destination of the data.- Returns:
- unique identifier of the relationship
- Throws:
InvalidParameterException
- one of the GUIDs is null or is invalidUserNotAuthorizedException
- the governance action service is not authorized to create this type of relationshipPropertyServerException
- there is a problem with the metadata store
-