Class GovernanceActionProcessStepHandler<B>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.GovernanceActionProcessStepHandler<B>
GovernanceActionProcessStepHandler manages GovernanceActionProcessStep entities and their relationships.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
OpenMetadataAPIGenericHandler.AnchorIdentifiers
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler
assetActionDescription, auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, qualifiedNamePropertyNamesList, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
Constructor Summary
ConstructorDescriptionGovernanceActionProcessStepHandler
(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog) Construct the handler for metadata elements. -
Method Summary
Modifier and TypeMethodDescriptioncreateGovernanceActionProcessStep
(String userId, String qualifiedName, int domainIdentifier, String displayName, String description, Map<String, String> additionalProperties, String governanceEngineGUID, String requestType, Map<String, String> requestParameters, boolean ignoreMultipleTriggers, int waitTime, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Create a new metadata element to represent a governance action process step.findGovernanceActionProcessSteps
(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Retrieve the list of governance action process step metadata elements that contain the search string.getFirstProcessStep
(String userId, String processGUID, Relationship firstActionProcessStepLink, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the governance action process step that is the first step in a governance action process.getGovernanceActionProcessStepByGUID
(String userId, String processStepGUID, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Retrieve the governance action process step metadata element with the supplied unique identifier.getGovernanceActionProcessStepsByName
(String userId, String name, String nameParameterName, int startFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Retrieve the list of governance action process step metadata elements with a matching qualified or display name.getNextGovernanceActionProcessSteps
(String userId, String processStepGUID, int startFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Return the list of next action process step defined for the governance action process.void
removeFirstProcessStep
(String userId, String processGUID, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Remove the link between a governance process and that governance action process step that defines its first step.void
removeGovernanceActionProcessStep
(String userId, String processStepGUID, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Remove the metadata element representing a governance action process step.void
removeNextProcessStep
(String userId, String actionLinkGUID, String methodName) Remove a follow-on step from a governance action process.void
setupFirstProcessStep
(String userId, String processGUID, String processStepGUID, String guard, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Set up a link between a governance action process and a governance action process step.setupNextProcessStep
(String userId, String currentActionProcessStepGUID, String nextActionProcessStepGUID, String guard, boolean mandatoryGuard, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Add a link between two governance action process steps to show that one follows on from the other when a governance action process is executing.void
updateGovernanceActionProcessStep
(String userId, String processStepGUID, boolean isMergeUpdate, String qualifiedName, int domainIdentifier, String displayName, String description, Map<String, String> additionalProperties, String governanceEngineGUID, String requestType, Map<String, String> requestParameters, boolean ignoreMultipleTriggers, int waitTime, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Update the metadata element representing a governance action process step.void
updateNextProcessStep
(String userId, String nextProcessStepLinkGUID, String guard, boolean mandatoryGuard, Date effectiveFrom, Date effectiveTo, String methodName) Update the properties of the link between two governance action process steps that shows that one follows on from the other when a governance action process is executing.Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorGUIDToBuilder, addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanInRepository, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, findAttachmentLinks, findBeans, findBeans, findBeans, findEntities, findEntities, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDForEntity, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntities, getAttachedEntity, getAttachedEntity, getAttachmentLink, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanHistory, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getDomainName, getDomainName, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRelationshipHistory, getSpecification, getSupplementaryProperties, getUniqueAttachmentLink, getUniqueAttachmentLink, getValidatedBeans, getValidatedEntities, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, uncheckedLinkElementToElement, undoBeanUpdateInRepository, undoBeanUpdateInRepository, undoBeanUpdateInRepository, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipProperties, updateRelationshipProperties, validateAnchorEntity, validateAnchorForEntities, validateAnchorForEntity, validateAnchorForEntity, validateAnchorGUID, validateRelationship, validateUniqueProperty, verifyExternalSourceIdentity
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler
getConverter, getElementStub, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getSupportedZones, getTypeDefByName, setSecurityVerifier
-
Constructor Details
-
GovernanceActionProcessStepHandler
public GovernanceActionProcessStepHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog) Construct the handler for metadata elements.- Parameters:
converter
- specific converter for this bean classbeanClass
- name of bean class that is represented by the generic class BserviceName
- name of this serviceserverName
- name of the local serverinvalidParameterHandler
- handler for managing parameter errorsrepositoryHandler
- manages calls to the repository servicesrepositoryHelper
- provides utilities for manipulating the repository services objectslocalServerUserId
- userId for this serversecurityVerifier
- open metadata security services verifiersupportedZones
- list of zones that the access service is allowed to serve Asset instances from.defaultZones
- list of zones that the access service should set in all new Asset instances.publishZones
- list of zones that the access service sets up in published Asset instances.auditLog
- destination for audit log events.
-
-
Method Details
-
createGovernanceActionProcessStep
public String createGovernanceActionProcessStep(String userId, String qualifiedName, int domainIdentifier, String displayName, String description, Map<String, String> additionalProperties, String governanceEngineGUID, String requestType, Map<String, throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionString> requestParameters, boolean ignoreMultipleTriggers, int waitTime, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Create a new metadata element to represent a governance action process step.- Parameters:
userId
- calling userqualifiedName
- unique name for the governance actiondomainIdentifier
- governance domain for this governance actiondisplayName
- short display name for the governance actiondescription
- description of the governance actionadditionalProperties
- additional properties for a governance actiongovernanceEngineGUID
- unique identifier of governance engine to execute the requestrequestType
- type of requestrequestParameters
- properties for the request typeignoreMultipleTriggers
- prevent multiple instances of the next step to run (or not)waitTime
- minimum number of minutes to wait before running the governance actioneffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationshipforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?serviceSupportedZones
- supported zones for calling serviceeffectiveTime
- what is the effective time for related queries needed to do the updatemethodName
- calling method- Returns:
- unique identifier of the new governance action process step
- 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)
-
updateGovernanceActionProcessStep
public void updateGovernanceActionProcessStep(String userId, String processStepGUID, boolean isMergeUpdate, String qualifiedName, int domainIdentifier, String displayName, String description, Map<String, String> additionalProperties, String governanceEngineGUID, String requestType, Map<String, throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionString> requestParameters, boolean ignoreMultipleTriggers, int waitTime, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Update the metadata element representing a governance action process step.- Parameters:
userId
- calling userprocessStepGUID
- unique identifier of the metadata element to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?qualifiedName
- unique name for the governance actiondomainIdentifier
- governance domain for this governance actiondisplayName
- short display name for the governance actiondescription
- description of the governance actionadditionalProperties
- additional properties for a governance actiongovernanceEngineGUID
- unique identifier of governance engine to execute the requestrequestType
- type of requestrequestParameters
- properties for the request typeignoreMultipleTriggers
- prevent multiple instances of the next step to run (or not)waitTime
- minimum number of minutes to wait before running the governance actioneffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationshipforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?serviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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)
-
removeGovernanceActionProcessStep
public void removeGovernanceActionProcessStep(String userId, String processStepGUID, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a governance action process step.- Parameters:
userId
- calling userprocessStepGUID
- unique identifier of the metadata element to removeforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?serviceSupportedZones
- supported zones for calling serviceeffectiveTime
- what is the effective time for related queries needed to do the updatemethodName
- calling method- 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)
-
findGovernanceActionProcessSteps
public List<B> findGovernanceActionProcessSteps(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of governance action process step metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId
- calling usersearchString
- string to find in the propertiessearchStringParameterName
- parameter supplying search stringstartFrom
- paging start pointpageSize
- maximum results that can be returnedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?serviceSupportedZones
- supported zones for calling serviceeffectiveTime
- what is the effective time for related queries needed to do the updatemethodName
- calling method- 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)
-
getGovernanceActionProcessStepsByName
public List<B> getGovernanceActionProcessStepsByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of governance action process step metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId
- calling username
- name to search fornameParameterName
- name of parameter supplying namestartFrom
- paging start pointpageSize
- maximum results that can be returnedserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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)
-
getGovernanceActionProcessStepByGUID
public B getGovernanceActionProcessStepByGUID(String userId, String processStepGUID, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the governance action process step metadata element with the supplied unique identifier.- Parameters:
userId
- calling userprocessStepGUID
- unique identifier of the governance action process stepeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)serviceSupportedZones
- supported zones for calling servicemethodName
- calling method- 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)
-
setupFirstProcessStep
public void setupFirstProcessStep(String userId, String processGUID, String processStepGUID, String guard, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Set up a link between a governance action process and a governance action process step. This defines the first step in the process.- Parameters:
userId
- calling userprocessGUID
- unique identifier of the governance action processprocessStepGUID
- unique identifier of the governance action process stepguard
- initial guard to pass to the first governance service calledeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationship (null for all time)forLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?serviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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)
-
getFirstProcessStep
public B getFirstProcessStep(String userId, String processGUID, Relationship firstActionProcessStepLink, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the governance action process step that is the first step in a governance action process.- Parameters:
userId
- calling userprocessGUID
- unique identifier of the governance action processfirstActionProcessStepLink
- Governance Action Flow relationship (if known)effectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)serviceSupportedZones
- supported zones for calling servicemethodName
- calling method- Returns:
- properties of the governance action process step
- 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)
-
removeFirstProcessStep
public void removeFirstProcessStep(String userId, String processGUID, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the link between a governance process and that governance action process step that defines its first step.- Parameters:
userId
- calling userprocessGUID
- unique identifier of the governance action processserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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)
-
setupNextProcessStep
public String setupNextProcessStep(String userId, String currentActionProcessStepGUID, String nextActionProcessStepGUID, String guard, boolean mandatoryGuard, Date effectiveFrom, Date effectiveTo, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Add a link between two governance action process steps to show that one follows on from the other when a governance action process is executing.- Parameters:
userId
- calling usercurrentActionProcessStepGUID
- unique identifier of the governance action process step that defines the previous step in the governance action processnextActionProcessStepGUID
- unique identifier of the governance action process step that defines the next step in the governance action processguard
- guard required for this next step to proceed - or null for always run the next step.mandatoryGuard
- means that no next steps can run if this guard is not returnedeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationshipforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?serviceSupportedZones
- supported zones for calling serviceeffectiveTime
- what is the effective time for related queries needed to do the updatemethodName
- calling method- Returns:
- unique identifier of the new link
- 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)
-
updateNextProcessStep
public void updateNextProcessStep(String userId, String nextProcessStepLinkGUID, String guard, boolean mandatoryGuard, Date effectiveFrom, Date effectiveTo, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the properties of the link between two governance action process steps that shows that one follows on from the other when a governance action process is executing.- Parameters:
userId
- calling usernextProcessStepLinkGUID
- unique identifier of the relationship between the governance action process stepsguard
- guard required for this next step to proceed - or null for always run the next step.mandatoryGuard
- means that no next steps can run if this guard is not returnedeffectiveFrom
- starting time for this relationship (null for all time)effectiveTo
- ending time for this relationshipmethodName
- calling method- 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)
-
getNextGovernanceActionProcessSteps
public List<Relationship> getNextGovernanceActionProcessSteps(String userId, String processStepGUID, int startFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of next action process step defined for the governance action process.- Parameters:
userId
- calling userprocessStepGUID
- unique identifier of the current governance action process stepstartFrom
- paging start pointpageSize
- maximum results that can be returnedserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- return the list of relationships and attached governance action process steps.
- 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)
-
removeNextProcessStep
public void removeNextProcessStep(String userId, String actionLinkGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove a follow-on step from a governance action process.- Parameters:
userId
- calling useractionLinkGUID
- unique identifier of the relationship between the governance action process stepsmethodName
- calling method- 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)
-