public class ProvisioningGovernanceContext extends GovernanceContext
| Constructor and Description |
|---|
ProvisioningGovernanceContext(String userId,
String governanceActionGUID,
String requestType,
Map<String,String> requestParameters,
List<RequestSourceElement> requestSourceElements,
List<ActionTargetElement> actionTargetElements,
OpenMetadataClient openMetadataStore)
Constructor sets up the key parameters for processing the request to the governance action service.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createAsset(String assetTypeName,
String qualifiedName,
String name,
String description)
Create an asset such as a data file, database, API or server.
|
String |
createAssetFromTemplate(String templateGUID,
String qualifiedName,
String name,
String description)
Create an asset such as a data file, database, API or server.
|
String |
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.
|
String |
createLineageMapping(String sourceElementGUID,
String targetElementGUID)
Create a lineage mapping relationship between a source and target element.
|
String |
createPort(String processGUID,
String qualifiedName,
String displayName,
PortType portType,
String templateGUID)
Add a port to a process.
|
String |
createProcess(String processTypeName,
ElementStatus initialStatus,
String qualifiedName,
String name,
String description)
Create a new process to represent the processing of this governance action process.
|
String |
createProcessFromTemplate(String templateGUID,
ElementStatus initialStatus,
String qualifiedName,
String name,
String description)
Create a new process to represent the processing of this governance action process.
|
getActionTargetElements, getCompletionStatus, getOpenMetadataStore, getRequestParameters, getRequestSourceElements, getRequestType, recordCompletionStatus, recordCompletionStatus, recordCompletionStatus, toString, updateActionTargetStatuspublic ProvisioningGovernanceContext(String userId, String governanceActionGUID, String requestType, Map<String,String> requestParameters, List<RequestSourceElement> requestSourceElements, List<ActionTargetElement> actionTargetElements, OpenMetadataClient openMetadataStore)
userId - calling usergovernanceActionGUID - unique identifier of the governance action that triggered this governance servicerequestType - unique identifier of the asset that the annotations should be attached torequestParameters - name-value properties to control the governance action servicerequestSourceElements - metadata elements associated with the request to the governance action serviceactionTargetElements - metadata elements that need to be worked on by the governance action serviceopenMetadataStore - client to the metadata store for use by the governance action servicepublic String createAsset(String assetTypeName, String qualifiedName, String name, String description) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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 assetdescription - the description of the assetInvalidParameterException - 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 storepublic String createAssetFromTemplate(String templateGUID, String qualifiedName, String name, String description) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
templateGUID - the unique identifier of the existing asset to copy (this will copy all of 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 assetInvalidParameterException - 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 storepublic String createProcess(String processTypeName, ElementStatus initialStatus, String qualifiedName, String name, String description) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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 processInvalidParameterException - 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 storepublic String createProcessFromTemplate(String templateGUID, ElementStatus initialStatus, String qualifiedName, String name, String description) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
templateGUID - the unique identifier of the existing process to copy (this will copy all of 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 processInvalidParameterException - 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 storepublic String createChildProcess(String processTypeName, ElementStatus initialStatus, String qualifiedName, String name, String description, String parentGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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 of the attachments such as ports, nested content,
schema, connection etc)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 storepublic String createPort(String processGUID, String qualifiedName, String displayName, PortType portType, String templateGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
processGUID - unique identifier of the processqualifiedName - unique name for the portdisplayName - display name for the portportType - type of port (direction of data flow)templateGUID - optional unique identifier of a template port to copyInvalidParameterException - 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 storepublic String createLineageMapping(String sourceElementGUID, String targetElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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.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 storeCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.