Class LineageExchangeService
- java.lang.Object
-
- org.odpi.openmetadata.integrationservices.catalog.connector.SchemaExchangeService
-
- org.odpi.openmetadata.integrationservices.catalog.connector.LineageExchangeService
-
public class LineageExchangeService extends SchemaExchangeService
LineageExchangeService is the context for managing process definitions and lineage linkage.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearBusinessSignificant(String elementGUID, String elementExternalIdentifier)Remove the "BusinessSignificant" designation from the element.voidclearControlFlow(String assetManagerGUID, String assetManagerName, String controlFlowGUID)Remove the control flow relationship between two elements.voidclearDataFlow(String dataFlowGUID)Remove the data flow relationship between two elements.voidclearLineageMapping(String sourceElementGUID, String destinationElementGUID)Remove the lineage mapping between two elements.voidclearPortDelegation(String portOneGUID, String portTwoGUID)Remove the port delegation relationship between two ports.voidclearPortSchemaType(String portGUID, String schemaTypeGUID)Remove the schema type from a port.voidclearProcessCall(String processCallGUID)Remove the process call relationship.voidclearProcessParent(String parentProcessGUID, String childProcessGUID)Remove a parent-child relationship between two processes.voidclearProcessPort(String processGUID, String portGUID)Unlink a port from a process.StringcreatePort(boolean assetManagerIsHome, String processGUID, String portExternalIdentifier, String portExternalIdentifierName, String portExternalIdentifierUsage, KeyPattern portExternalIdentifierKeyPattern, Map<String,String> mappingProperties, PortProperties portProperties)Create a new metadata element to represent a port.StringcreateProcess(boolean assetManagerIsHome, String processExternalIdentifier, String processExternalIdentifierName, String processExternalIdentifierUsage, KeyPattern processExternalIdentifierKeyPattern, Map<String,String> mappingProperties, ProcessProperties processProperties, ProcessStatus initialStatus)Create a new metadata element to represent a process.StringcreateProcessFromTemplate(boolean assetManagerIsHome, String templateGUID, String processExternalIdentifier, String processExternalIdentifierName, String processExternalIdentifierUsage, KeyPattern processExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties)Create a new metadata element to represent a process using an existing metadata element as a template.List<PortElement>findPorts(String searchString, int startFrom, int pageSize)Retrieve the list of port metadata elements that contain the search string.List<ProcessElement>findProcesses(String searchString, int startFrom, int pageSize)Retrieve the list of process metadata elements that contain the search string.ControlFlowElementgetControlFlow(String currentStepGUID, String nextStepGUID, String qualifiedName)Retrieve the control flow relationship between two elements.List<ControlFlowElement>getControlFlowNextSteps(String currentStepGUID)Retrieve the control relationships linked from an specific element to the possible next elements in the process.List<ControlFlowElement>getControlFlowPreviousSteps(String currentStepGUID)Retrieve the control relationships linked from an specific element to the possible previous elements in the process.DataFlowElementgetDataFlow(String dataSupplierGUID, String dataConsumerGUID, String qualifiedName)Retrieve the data flow relationship between two elements.List<DataFlowElement>getDataFlowConsumers(String dataSupplierGUID)Retrieve the data flow relationships linked from an specific element to the downstream consumers.List<DataFlowElement>getDataFlowSuppliers(String dataConsumerGUID)Retrieve the data flow relationships linked from an specific element to the upstream suppliers.List<LineageMappingElement>getDestinationLineageMappings(String sourceElementGUID)Retrieve the lineage mapping relationships linked from an specific source element to its destinations.PortElementgetPortByGUID(String portGUID)Retrieve the port metadata element with the supplied unique identifier.PortElementgetPortDelegation(String portGUID)Retrieve the port that this port delegates to.List<PortElement>getPortsByName(String name, int startFrom, int pageSize)Retrieve the list of port metadata elements with a matching qualified or display name.List<PortElement>getPortsForProcess(String processGUID, int startFrom, int pageSize)Retrieve the list of ports associated with a process.List<PortElement>getPortUse(String portGUID, int startFrom, int pageSize)Retrieve the list of ports that delegate to this port.ProcessElementgetProcessByGUID(String processGUID)Retrieve the process metadata element with the supplied unique identifier.ProcessCallElementgetProcessCall(String callerGUID, String calledGUID, String qualifiedName)Retrieve the process call relationship between two elements.List<ProcessCallElement>getProcessCalled(String callerGUID)Retrieve the process call relationships linked from an specific element to the elements it calls.List<ProcessCallElement>getProcessCallers(String calledGUID)Retrieve the process call relationships linked from an specific element to its callers.List<ProcessElement>getProcessesByName(String name, int startFrom, int pageSize)Retrieve the list of process metadata elements with a matching qualified or display name.List<ProcessElement>getProcessesForAssetManager(int startFrom, int pageSize)Return the list of processes associated with the asset manager.ProcessElementgetProcessParent(String assetManagerGUID, String assetManagerName, String processGUID)Retrieve the process metadata element with the supplied unique identifier.List<LineageMappingElement>getSourceLineageMappings(String destinationElementGUID)Retrieve the lineage mapping relationships linked from an specific destination element to its sources.List<ProcessElement>getSubProcesses(String processGUID, int startFrom, int pageSize)Retrieve the process metadata element with the supplied unique identifier.voidpublishProcess(String processGUID)Update the zones for the asset so that it becomes visible to consumers.voidremovePort(String portGUID, String portExternalIdentifier)Remove the metadata element representing a port.voidremoveProcess(String processGUID, String processExternalIdentifier)Remove the metadata element representing a process.voidsetBusinessSignificant(String elementGUID, String elementExternalIdentifier)Classify a port, process or asset as "BusinessSignificant" (this may effect the way that lineage is displayed).StringsetupControlFlow(boolean assetManagerIsHome, String currentStepGUID, String nextStepGUID, String qualifiedName, String description, String guard)Link two elements to show that when one completes the next is started.StringsetupDataFlow(boolean assetManagerIsHome, String dataSupplierGUID, String dataConsumerGUID, String qualifiedName, String description, String formula)Link two elements together to show that data flows from one to the other.voidsetupLineageMapping(String sourceElementGUID, String destinationElementGUID)Link to elements together to show that they are part of the lineage of the data that is moving between the processes.voidsetupPortDelegation(boolean assetManagerIsHome, String portOneGUID, String portTwoGUID)Link two ports together to show that portTwo is an implementation of portOne.voidsetupPortSchemaType(boolean assetManagerIsHome, String portGUID, String schemaTypeGUID)Link a schema type to a port to show the structure of data it accepts.StringsetupProcessCall(boolean assetManagerIsHome, String callerGUID, String calledGUID, String qualifiedName, String description, String formula)Link two elements together to show a request-response call between them.voidsetupProcessParent(boolean assetManagerIsHome, String parentProcessGUID, String childProcessGUID, ProcessContainmentType containmentType)Create a parent-child relationship between two processes.voidsetupProcessPort(boolean assetManagerIsHome, String processGUID, String portGUID)Link a port to a process.voidupdateControlFlow(String controlFlowGUID, String qualifiedName, String description, String guard)Update the relationship between tow elements that shows that when one completes the next is started.voidupdateDataFlow(String dataFlowGUID, String qualifiedName, String description, String formula)Update relationship between two elements that shows that data flows from one to the other.voidupdatePort(String portGUID, String portExternalIdentifier, PortProperties portProperties)Update the properties of the metadata element representing a port.voidupdateProcess(String processGUID, String processExternalIdentifier, boolean isMergeUpdate, ProcessProperties processProperties)Update the metadata element representing a process.voidupdateProcessCall(String processCallGUID, String qualifiedName, String description, String formula)Update the relationship between two elements that shows a request-response call between them.voidupdateProcessStatus(String processGUID, String processExternalIdentifier, ProcessStatus processStatus)Update the status of the metadata element representing a process.voidwithdrawProcess(String processGUID)Update the zones for the asset so that it is no longer visible to consumers.-
Methods inherited from class org.odpi.openmetadata.integrationservices.catalog.connector.SchemaExchangeService
clearColumnAsPrimaryKey, clearForeignKeyRelationship, clearSchemaElementAsCalculatedValue, clearSchemaTypeParent, createSchemaAttribute, createSchemaAttributeFromTemplate, createSchemaType, createSchemaTypeFromTemplate, findSchemaAttributes, findSchemaType, getNestedAttributes, getSchemaAttributeByGUID, getSchemaAttributesByName, getSchemaTypeByGUID, getSchemaTypeByName, getSchemaTypeForElement, getSchemaTypeParent, removeSchemaAttribute, removeSchemaType, setSchemaElementAsCalculatedValue, setupColumnAsPrimaryKey, setupForeignKeyRelationship, setupSchemaTypeParent, updateForeignKeyRelationship, updateSchemaAttribute, updateSchemaType
-
-
-
-
Method Detail
-
createProcess
public String createProcess(boolean assetManagerIsHome, String processExternalIdentifier, String processExternalIdentifierName, String processExternalIdentifierUsage, KeyPattern processExternalIdentifierKeyPattern, Map<String,String> mappingProperties, ProcessProperties processProperties, ProcessStatus initialStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a process.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this processprocessExternalIdentifier- unique identifier of the process in the external asset managerprocessExternalIdentifierName- name of property for the external identifier in the external asset managerprocessExternalIdentifierUsage- optional usage description for the external identifier when calling the external asset managerprocessExternalIdentifierKeyPattern- pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external asset manager and open metadataprocessProperties- properties about the process to storeinitialStatus- status value for the new process (default = ACTIVE)- Returns:
- unique identifier of the new process
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createProcessFromTemplate
public String createProcessFromTemplate(boolean assetManagerIsHome, String templateGUID, String processExternalIdentifier, String processExternalIdentifierName, String processExternalIdentifierUsage, KeyPattern processExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a process using an existing metadata element as a template.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this processtemplateGUID- unique identifier of the metadata element to copyprocessExternalIdentifier- unique identifier of the process in the external asset managerprocessExternalIdentifierName- name of property for the external identifier in the external asset managerprocessExternalIdentifierUsage- optional usage description for the external identifier when calling the external asset managerprocessExternalIdentifierKeyPattern- pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external asset manager and open metadatatemplateProperties- properties that override the template- Returns:
- unique identifier of the new process
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateProcess
public void updateProcess(String processGUID, String processExternalIdentifier, boolean isMergeUpdate, ProcessProperties processProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing a process.- Parameters:
processGUID- unique identifier of the metadata element to updateprocessExternalIdentifier- unique identifier of the process in the external asset managerisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?processProperties- new properties for the metadata element- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateProcessStatus
public void updateProcessStatus(String processGUID, String processExternalIdentifier, ProcessStatus processStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the status of the metadata element representing a process.- Parameters:
processGUID- unique identifier of the process to updateprocessExternalIdentifier- unique identifier of the process in the external asset managerprocessStatus- new status for the process- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupProcessParent
public void setupProcessParent(boolean assetManagerIsHome, String parentProcessGUID, String childProcessGUID, ProcessContainmentType containmentType) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionCreate a parent-child relationship between two processes.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this assetparentProcessGUID- unique identifier of the process in the external asset manager that is to be the parent processchildProcessGUID- unique identifier of the process in the external asset manager that is to be the nested sub-processcontainmentType- describes the ownership of the sub-process- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearProcessParent
public void clearProcessParent(String parentProcessGUID, String childProcessGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a parent-child relationship between two processes.- Parameters:
parentProcessGUID- unique identifier of the process in the external asset manager that is to be the parent processchildProcessGUID- unique identifier of the process in the external asset manager that is to be the nested sub-process- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
publishProcess
public void publishProcess(String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the zones for the asset so that it becomes visible to consumers. (The zones are set to the list of zones in the publishedZones option configured for each instance of the Asset Manager OMAS).- Parameters:
processGUID- unique identifier of the metadata element to publish- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
withdrawProcess
public void withdrawProcess(String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the zones for the asset so that it is no longer visible to consumers. (The zones are set to the list of zones in the defaultZones option configured for each instance of the Asset Manager OMAS. This is the setting when the process is first created).- Parameters:
processGUID- unique identifier of the metadata element to withdraw- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
removeProcess
public void removeProcess(String processGUID, String processExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a process.- Parameters:
processGUID- unique identifier of the metadata element to removeprocessExternalIdentifier- unique identifier of the process in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
findProcesses
public List<ProcessElement> findProcesses(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of process metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getProcessesForAssetManager
public List<ProcessElement> getProcessesForAssetManager(int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the list of processes associated with the asset manager.- Parameters:
startFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of metadata elements describing the processes associated with the requested asset manager
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getProcessesByName
public List<ProcessElement> getProcessesByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of process metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getProcessByGUID
public ProcessElement getProcessByGUID(String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the process metadata element with the supplied unique identifier.- Parameters:
processGUID- unique identifier of the requested metadata element- Returns:
- requested metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getProcessParent
public ProcessElement getProcessParent(String assetManagerGUID, String assetManagerName, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the process metadata element with the supplied unique identifier.- Parameters:
assetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerprocessGUID- unique identifier of the requested metadata element- Returns:
- parent process element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getSubProcesses
public List<ProcessElement> getSubProcesses(String processGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the process metadata element with the supplied unique identifier.- Parameters:
processGUID- unique identifier of the requested metadata elementstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of process element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createPort
public String createPort(boolean assetManagerIsHome, String processGUID, String portExternalIdentifier, String portExternalIdentifierName, String portExternalIdentifierUsage, KeyPattern portExternalIdentifierKeyPattern, Map<String,String> mappingProperties, PortProperties portProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a port.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this portprocessGUID- unique identifier of the process where the port is locatedportExternalIdentifier- unique identifier of the port in the external asset managerportExternalIdentifierName- name of property for the external identifier in the external asset managerportExternalIdentifierUsage- optional usage description for the external identifier when calling the external asset managerportExternalIdentifierKeyPattern- pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external asset manager and open metadataportProperties- properties for the port- Returns:
- unique identifier of the new metadata element for the port
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updatePort
public void updatePort(String portGUID, String portExternalIdentifier, PortProperties portProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the properties of the metadata element representing a port. This call replaces all existing properties with the supplied properties.- Parameters:
portGUID- unique identifier of the port to updateportProperties- new properties for the portportExternalIdentifier- unique identifier of the port in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupProcessPort
public void setupProcessPort(boolean assetManagerIsHome, String processGUID, String portGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionLink a port to a process.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this assetprocessGUID- unique identifier of the processportGUID- unique identifier of the port- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearProcessPort
public void clearProcessPort(String processGUID, String portGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Unlink a port from a process.- Parameters:
processGUID- unique identifier of the processportGUID- unique identifier of the port- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupPortDelegation
public void setupPortDelegation(boolean assetManagerIsHome, String portOneGUID, String portTwoGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionLink two ports together to show that portTwo is an implementation of portOne. (That is, portOne delegates to portTwo.)- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this assetportOneGUID- unique identifier of the port at end 1portTwoGUID- unique identifier of the port at end 2- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearPortDelegation
public void clearPortDelegation(String portOneGUID, String portTwoGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the port delegation relationship between two ports.- Parameters:
portOneGUID- unique identifier of the port at end 1portTwoGUID- unique identifier of the port at end 2- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupPortSchemaType
public void setupPortSchemaType(boolean assetManagerIsHome, String portGUID, String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionLink a schema type to a port to show the structure of data it accepts.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this assetportGUID- unique identifier of the portschemaTypeGUID- unique identifier of the schemaType- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearPortSchemaType
public void clearPortSchemaType(String portGUID, String schemaTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the schema type from a port.- Parameters:
portGUID- unique identifier of the portschemaTypeGUID- unique identifier of the schemaType- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
removePort
public void removePort(String portGUID, String portExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a port.- Parameters:
portGUID- unique identifier of the metadata element to removeportExternalIdentifier- unique identifier of the port in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
findPorts
public List<PortElement> findPorts(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of port metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getPortsForProcess
public List<PortElement> getPortsForProcess(String processGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of ports associated with a process.- Parameters:
processGUID- unique identifier of the process of intereststartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of associated metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getPortUse
public List<PortElement> getPortUse(String portGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of ports that delegate to this port.- Parameters:
portGUID- unique identifier of the starting portstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of associated metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getPortDelegation
public PortElement getPortDelegation(String portGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the port that this port delegates to.- Parameters:
portGUID- unique identifier of the starting port alias- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getPortsByName
public List<PortElement> getPortsByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of port metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getPortByGUID
public PortElement getPortByGUID(String portGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the port metadata element with the supplied unique identifier.- Parameters:
portGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setBusinessSignificant
public void setBusinessSignificant(String elementGUID, String elementExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify a port, process or asset as "BusinessSignificant" (this may effect the way that lineage is displayed).- Parameters:
elementGUID- unique identifier of the metadata element to updateelementExternalIdentifier- unique identifier of the port in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearBusinessSignificant
public void clearBusinessSignificant(String elementGUID, String elementExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the "BusinessSignificant" designation from the element.- Parameters:
elementGUID- unique identifier of the metadata element to updateelementExternalIdentifier- unique identifier of the element in the external asset manager (can be null)- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupDataFlow
public String setupDataFlow(boolean assetManagerIsHome, String dataSupplierGUID, String dataConsumerGUID, String qualifiedName, String description, String formula) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link two elements together to show that data flows from one to the other.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this assetdataSupplierGUID- unique identifier of the data supplierdataConsumerGUID- unique identifier of the data consumerqualifiedName- unique identifier for this relationshipdescription- description and/or purpose of the data flowformula- function that determines the subset of the data that flows- Returns:
- unique identifier of the relationship
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getDataFlow
public DataFlowElement getDataFlow(String dataSupplierGUID, String dataConsumerGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the data flow relationship between two elements. The qualifiedName is optional unless there is more than one data flow relationships between these two elements since it is used to disambiguate the request. This is often used in conjunction with update.- Parameters:
dataSupplierGUID- unique identifier of the data supplierdataConsumerGUID- unique identifier of the data consumerqualifiedName- unique identifier for this relationship- Returns:
- unique identifier and properties of the relationship
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateDataFlow
public void updateDataFlow(String dataFlowGUID, String qualifiedName, String description, String formula) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update relationship between two elements that shows that data flows from one to the other.- Parameters:
dataFlowGUID- unique identifier of the data flow relationshipqualifiedName- unique identifier for this relationshipdescription- description and/or purpose of the data flowformula- function that determines the subset of the data that flows- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearDataFlow
public void clearDataFlow(String dataFlowGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the data flow relationship between two elements.- Parameters:
dataFlowGUID- unique identifier of the data flow relationship- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getDataFlowConsumers
public List<DataFlowElement> getDataFlowConsumers(String dataSupplierGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the data flow relationships linked from an specific element to the downstream consumers.- Parameters:
dataSupplierGUID- unique identifier of the data supplier- Returns:
- unique identifier and properties of the relationship
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getDataFlowSuppliers
public List<DataFlowElement> getDataFlowSuppliers(String dataConsumerGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the data flow relationships linked from an specific element to the upstream suppliers.- Parameters:
dataConsumerGUID- unique identifier of the data consumer- Returns:
- unique identifier and properties of the relationship
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupControlFlow
public String setupControlFlow(boolean assetManagerIsHome, String currentStepGUID, String nextStepGUID, String qualifiedName, String description, String guard) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link two elements to show that when one completes the next is started.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this assetcurrentStepGUID- unique identifier of the previous stepnextStepGUID- unique identifier of the next stepqualifiedName- unique identifier for this relationshipdescription- description and/or purpose of the data flowguard- function that must be true to travel down this control flow- Returns:
- unique identifier for the control flow relationship
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getControlFlow
public ControlFlowElement getControlFlow(String currentStepGUID, String nextStepGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the control flow relationship between two elements. The qualifiedName is optional unless there is more than one control flow relationships between these two elements since it is used to disambiguate the request. This is often used in conjunction with update.- Parameters:
currentStepGUID- unique identifier of the previous stepnextStepGUID- unique identifier of the next stepqualifiedName- unique identifier for this relationship- Returns:
- unique identifier and properties of the relationship
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateControlFlow
public void updateControlFlow(String controlFlowGUID, String qualifiedName, String description, String guard) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the relationship between tow elements that shows that when one completes the next is started.- Parameters:
controlFlowGUID- unique identifier of the control flow relationshipqualifiedName- unique identifier for this relationshipdescription- description and/or purpose of the data flowguard- function that must be true to travel down this control flow- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearControlFlow
public void clearControlFlow(String assetManagerGUID, String assetManagerName, String controlFlowGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the control flow relationship between two elements.- Parameters:
assetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callercontrolFlowGUID- unique identifier of the control flow relationship- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getControlFlowNextSteps
public List<ControlFlowElement> getControlFlowNextSteps(String currentStepGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the control relationships linked from an specific element to the possible next elements in the process.- Parameters:
currentStepGUID- unique identifier of the current step- Returns:
- unique identifier and properties of the relationship
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getControlFlowPreviousSteps
public List<ControlFlowElement> getControlFlowPreviousSteps(String currentStepGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the control relationships linked from an specific element to the possible previous elements in the process.- Parameters:
currentStepGUID- unique identifier of the current step- Returns:
- unique identifier and properties of the relationship
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupProcessCall
public String setupProcessCall(boolean assetManagerIsHome, String callerGUID, String calledGUID, String qualifiedName, String description, String formula) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link two elements together to show a request-response call between them.- Parameters:
assetManagerIsHome- ensure that only the asset manager can update this assetcallerGUID- unique identifier of the element that is making the callcalledGUID- unique identifier of the element that is processing the callqualifiedName- unique identifier for this relationshipdescription- description and/or purpose of the data flowformula- function that determines the subset of the data that flows- Returns:
- unique identifier of the new relationship
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getProcessCall
public ProcessCallElement getProcessCall(String callerGUID, String calledGUID, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the process call relationship between two elements. The qualifiedName is optional unless there is more than one process call relationships between these two elements since it is used to disambiguate the request. This is often used in conjunction with update.- Parameters:
callerGUID- unique identifier of the element that is making the callcalledGUID- unique identifier of the element that is processing the callqualifiedName- unique identifier for this relationship- Returns:
- unique identifier and properties of the relationship
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateProcessCall
public void updateProcessCall(String processCallGUID, String qualifiedName, String description, String formula) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the relationship between two elements that shows a request-response call between them.- Parameters:
processCallGUID- unique identifier of the process call relationshipqualifiedName- unique identifier for this relationshipdescription- description and/or purpose of the data flowformula- function that determines the subset of the data that flows- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearProcessCall
public void clearProcessCall(String processCallGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the process call relationship.- Parameters:
processCallGUID- unique identifier of the process call relationship- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getProcessCalled
public List<ProcessCallElement> getProcessCalled(String callerGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the process call relationships linked from an specific element to the elements it calls.- Parameters:
callerGUID- unique identifier of the element that is making the call- Returns:
- unique identifier and properties of the relationship
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getProcessCallers
public List<ProcessCallElement> getProcessCallers(String calledGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the process call relationships linked from an specific element to its callers.- Parameters:
calledGUID- unique identifier of the element that is processing the call- Returns:
- unique identifier and properties of the relationship
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupLineageMapping
public void setupLineageMapping(String sourceElementGUID, String destinationElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link to elements together to show that they are part of the lineage of the data that is moving between the processes. Typically the lineage relationships stitch together processes and data assets supported by different technologies.- Parameters:
sourceElementGUID- unique identifier of the sourcedestinationElementGUID- unique identifier of the destination- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearLineageMapping
public void clearLineageMapping(String sourceElementGUID, String destinationElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the lineage mapping between two elements.- Parameters:
sourceElementGUID- unique identifier of the sourcedestinationElementGUID- unique identifier of the destination- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getDestinationLineageMappings
public List<LineageMappingElement> getDestinationLineageMappings(String sourceElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the lineage mapping relationships linked from an specific source element to its destinations.- Parameters:
sourceElementGUID- unique identifier of the source- Returns:
- list of lineage mapping relationships
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getSourceLineageMappings
public List<LineageMappingElement> getSourceLineageMappings(String destinationElementGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the lineage mapping relationships linked from an specific destination element to its sources.- Parameters:
destinationElementGUID- unique identifier of the destination- Returns:
- list of lineage mapping relationships
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
-