Class OpenGovernanceClientBase
java.lang.Object
org.odpi.openmetadata.frameworkservices.gaf.client.OpenGovernanceClientBase
- All Implemented Interfaces:
ActionControlInterface
,DuplicateManagementInterface
,GovernanceActionProcessInterface
,GovernanceActionTypeInterface
- Direct Known Subclasses:
GovernanceContextClientBase
,OpenGovernanceClient
,OpenGovernanceClient
,OpenGovernanceClient
,OpenGovernanceClient
,OpenGovernanceClient
,OpenGovernanceClient
,OpenGovernanceClient
,OpenGovernanceClient
,OpenGovernanceClient
,OpenGovernanceClient
,OpenGovernanceClient
,OpenGovernanceServiceClient
,OpenGovernanceServiceClient
public class OpenGovernanceClientBase
extends Object
implements ActionControlInterface, GovernanceActionTypeInterface, GovernanceActionProcessInterface, DuplicateManagementInterface
OpenGovernanceClientBase provides common governance services that originate in the Governance Action Framework (GAF).
This includes the ability to define and execute governance action processes as well as manage duplicates.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final InvalidParameterHandler
protected final NullRequestBody
protected final String
protected final String
protected final String
-
Constructor Summary
ConstructorDescriptionOpenGovernanceClientBase
(String serviceURLMarker, String serverName, String serverPlatformURLRoot, int maxPageSize) Create a new client with no authentication embedded in the HTTP request.OpenGovernanceClientBase
(String serviceURLMarker, String serverName, String serverPlatformURLRoot, String serverUserId, String serverPassword, int maxPageSize) Create a new client that passes userId and password in each HTTP request.OpenGovernanceClientBase
(String serviceURLMarker, String serverName, String serverPlatformURLRoot, GAFRESTClient restClient, int maxPageSize) Create a new client that passes userId and password in each HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelEngineAction
(String userId, String engineActionGUID) Request that execution of an engine action is stopped.createGovernanceActionProcess
(String userId, GovernanceActionProcessProperties processProperties, ProcessStatus initialStatus) Create a new metadata element to represent a governance action process.createGovernanceActionProcessStep
(String userId, GovernanceActionProcessStepProperties processStepProperties) Create a new metadata element to represent a governance action process step.createGovernanceActionType
(String userId, GovernanceActionTypeProperties properties) Create a new metadata element to represent a governance action type.findEngineActions
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of engine action metadata elements that contain the search string.findGovernanceActionProcesses
(String userId, String searchString, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of governance action process metadata elements that contain the search string.findGovernanceActionProcessSteps
(String userId, String searchString, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of governance action process step metadata elements that contain the search string.findGovernanceActionTypes
(String userId, String searchString, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of governance action type metadata elements that contain the search string.getActiveEngineActions
(String userId, int startFrom, int pageSize) Retrieve the engine actions that are still in process.getEngineAction
(String userId, String engineActionGUID) Request the status of an executing engine action request.getEngineActions
(String userId, int startFrom, int pageSize) Retrieve the engine actions known to the server.getEngineActionsByName
(String userId, String name, int startFrom, int pageSize) Retrieve the list of engine action metadata elements with a matching qualified or display name.getFirstActionProcessStep
(String userId, String processGUID) Return the governance action process step that is the first step in a governance action process.getGovernanceActionProcessByGUID
(String userId, String processGUID) Retrieve the governance action process metadata element with the supplied unique identifier.getGovernanceActionProcessesByName
(String userId, String name, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of governance action process metadata elements with a matching qualified or display name.getGovernanceActionProcessGraph
(String userId, String processGUID, Date effectiveTime) Retrieve the governance action process metadata element with the supplied unique identifier along with its process flow implementation.getGovernanceActionProcessStepByGUID
(String userId, String processStepGUID) Retrieve the governance action process step metadata element with the supplied unique identifier.getGovernanceActionProcessStepsByName
(String userId, String name, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of governance action process step metadata elements with a matching qualified or display name.getGovernanceActionTypeByGUID
(String userId, String governanceActionTypeGUID) Retrieve the governance action type metadata element with the supplied unique identifier.getGovernanceActionTypesByName
(String userId, String name, int startFrom, int pageSize, Date effectiveTime) Retrieve the list of governance action type metadata elements with a matching qualified or display name.getNextGovernanceActionProcessSteps
(String userId, String processStepGUID, int startFrom, int pageSize) Return the list of next action process step defined for the governance action process.initiateEngineAction
(String userId, String qualifiedName, int domainIdentifier, String displayName, String description, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, List<String> receivedGuards, Date startTime, String governanceEngineName, String requestType, Map<String, String> requestParameters, String processName, String requestSourceName, String originatorServiceName, String originatorEngineName) Create an engine action in the metadata store which will trigger the governance service associated with the supplied request type.initiateGovernanceActionProcess
(String userId, String processQualifiedName, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, Date startTime, Map<String, String> requestParameters, String originatorServiceName, String originatorEngineName) Using the named governance action process as a template, initiate a chain of engine actions.initiateGovernanceActionType
(String userId, String governanceActionTypeQualifiedName, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, Date startTime, Map<String, String> requestParameters, String originatorServiceName, String originatorEngineName) Using the named governance action type as a template, initiate an engine action.void
linkConsolidatedDuplicate
(String userId, String consolidatedElementGUID, int statusIdentifier, String steward, String stewardTypeName, String stewardPropertyName, String source, String notes, List<String> sourceElementGUIDs) Identify an element that acts as a consolidated version for a set of duplicate elements.void
linkElementsAsPeerDuplicates
(String userId, String metadataElement1GUID, String metadataElement2GUID, int statusIdentifier, String steward, String stewardTypeName, String stewardPropertyName, String source, String notes, boolean setKnownDuplicate) Link elements as peer duplicates.void
publishGovernanceActionProcess
(String userId, String processGUID) Update the zones for the asset so that it becomes visible to consumers.void
removeFirstActionProcessStep
(String userId, String processGUID) Remove the link between a governance process and that governance action process step that defines its first step.void
removeGovernanceActionProcess
(String userId, String processGUID) Remove the metadata element representing a governance action process.void
removeGovernanceActionProcessStep
(String userId, String processStepGUID) Remove the metadata element representing a governance action process step.void
removeGovernanceActionType
(String userId, String governanceActionTypeGUID) Remove the metadata element representing a governance action type.void
removeNextActionProcessStep
(String userId, String processStepLinkGUID) Remove a follow-on step from a governance action process.void
setupFirstActionProcessStep
(String userId, String processGUID, String processStepGUID, String guard) Set up a link between a governance action process and a governance action process step.setupNextActionProcessStep
(String userId, String currentActionProcessStepGUID, String nextActionProcessStepGUID, String guard, boolean mandatoryGuard) 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
updateGovernanceActionProcess
(String userId, String processGUID, boolean isMergeUpdate, ProcessStatus processStatus, GovernanceActionProcessProperties processProperties) Update the metadata element representing a governance action process.void
updateGovernanceActionProcessStep
(String userId, String processStepGUID, boolean isMergeUpdate, GovernanceActionProcessStepProperties processStepProperties) Update the metadata element representing a governance action process step.void
updateGovernanceActionType
(String userId, String governanceActionTypeGUID, boolean isMergeUpdate, GovernanceActionTypeProperties properties) Update the metadata element representing a governance action type.void
updateNextActionProcessStep
(String userId, String nextProcessStepLinkGUID, String guard, boolean mandatoryGuard) 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.void
withdrawGovernanceActionProcess
(String userId, String processGUID) Update the zones for the asset so that it is no longer visible to consumers.
-
Field Details
-
serverName
-
serviceURLMarker
-
serverPlatformURLRoot
-
invalidParameterHandler
-
nullRequestBody
-
-
Constructor Details
-
OpenGovernanceClientBase
public OpenGovernanceClientBase(String serviceURLMarker, String serverName, String serverPlatformURLRoot, int maxPageSize) throws InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serviceURLMarker
- the identifier of the access service (for example asset-owner for the Asset Owner OMAS)serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesmaxPageSize
- pre-initialized parameter limit- Throws:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
OpenGovernanceClientBase
public OpenGovernanceClientBase(String serviceURLMarker, String serverName, String serverPlatformURLRoot, String serverUserId, String serverPassword, int maxPageSize) throws InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serviceURLMarker
- the identifier of the access service (for example asset-owner for the Asset Owner OMAS)serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesserverUserId
- caller's userId embedded in all HTTP requestsserverPassword
- caller's password embedded in all HTTP requestsmaxPageSize
- pre-initialized parameter limit- Throws:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
OpenGovernanceClientBase
public OpenGovernanceClientBase(String serviceURLMarker, String serverName, String serverPlatformURLRoot, GAFRESTClient restClient, int maxPageSize) throws InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serviceURLMarker
- the identifier of the access service (for example asset-owner for the Asset Owner OMAS)serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST servicesrestClient
- pre-initialized REST clientmaxPageSize
- pre-initialized parameter limit- Throws:
InvalidParameterException
- there is a problem with the information about the remote OMAS
-
-
Method Details
-
initiateEngineAction
public String initiateEngineAction(String userId, String qualifiedName, int domainIdentifier, String displayName, String description, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, List<String> receivedGuards, Date startTime, String governanceEngineName, String requestType, Map<String, String> requestParameters, String processName, String requestSourceName, String originatorServiceName, String originatorEngineName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionCreate an engine action in the metadata store which will trigger the governance service associated with the supplied request type. The engine action remains to act as a record of the actions taken for auditing.- Specified by:
initiateEngineAction
in interfaceActionControlInterface
- Parameters:
userId
- caller's userIdqualifiedName
- unique identifier to give this engine actiondomainIdentifier
- governance domain associated with this action (0=ALL)displayName
- display name for this actiondescription
- description for this actionrequestSourceGUIDs
- request source elements for the resulting governance serviceactionTargets
- list of action target names to GUIDs for the resulting governance servicereceivedGuards
- list of guards to initiate the engine actionstartTime
- future start time or null for "as soon as possible"governanceEngineName
- name of the governance engine that should execute the requestrequestType
- governance request type from the callerrequestParameters
- properties to pass to the governance serviceprocessName
- name of the process that this action is a part ofrequestSourceName
- source of the requestoriginatorServiceName
- unique name of the requesting governance service (if initiated by a governance engine).originatorEngineName
- optional unique name of the requesting governance engine (if initiated by a governance engine).- Returns:
- unique identifier of the engine action
- Throws:
InvalidParameterException
- null qualified nameUserNotAuthorizedException
- the caller is not authorized to create an engine actionPropertyServerException
- there is a problem with the metadata store
-
initiateGovernanceActionType
public String initiateGovernanceActionType(String userId, String governanceActionTypeQualifiedName, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, Date startTime, Map<String, String> requestParameters, String originatorServiceName, String originatorEngineName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionUsing the named governance action type as a template, initiate an engine action.- Specified by:
initiateGovernanceActionType
in interfaceActionControlInterface
- Parameters:
userId
- caller's userIdgovernanceActionTypeQualifiedName
- unique name of the governance action type to userequestSourceGUIDs
- request source elements for the resulting governance serviceactionTargets
- list of action target names to GUIDs for the resulting governance servicestartTime
- future start time or null for "as soon as possible".requestParameters
- request properties to be passed to the engine actionoriginatorServiceName
- unique name of the requesting governance service (if initiated by a governance engine).originatorEngineName
- optional unique name of the governance engine (if initiated by a governance engine).- Returns:
- unique identifier of the engine action
- Throws:
InvalidParameterException
- null or unrecognized qualified name of the typeUserNotAuthorizedException
- the caller is not authorized to create an engine actionPropertyServerException
- there is a problem with the metadata store
-
initiateGovernanceActionProcess
public String initiateGovernanceActionProcess(String userId, String processQualifiedName, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, Date startTime, Map<String, String> requestParameters, String originatorServiceName, String originatorEngineName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionUsing the named governance action process as a template, initiate a chain of engine actions.- Specified by:
initiateGovernanceActionProcess
in interfaceActionControlInterface
- Parameters:
userId
- caller's userIdprocessQualifiedName
- unique name of the governance action process to userequestSourceGUIDs
- request source elements for the resulting governance serviceactionTargets
- list of action target names to GUIDs for the resulting governance servicestartTime
- future start time or null for "as soon as possible".requestParameters
- request properties to be passed to the first engine actionoriginatorServiceName
- unique name of the requesting governance service (if initiated by a governance engine).originatorEngineName
- optional unique name of the governance engine (if initiated by a governance engine).- Returns:
- unique identifier of the governance action process instance
- Throws:
InvalidParameterException
- null or unrecognized qualified name of the processUserNotAuthorizedException
- the caller is not authorized to create a governance action processPropertyServerException
- there is a problem with the metadata store
-
getEngineAction
public EngineActionElement getEngineAction(String userId, String engineActionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Request the status of an executing engine action request.- Specified by:
getEngineAction
in interfaceActionControlInterface
- Parameters:
userId
- identifier of calling userengineActionGUID
- identifier of the engine action request.- Returns:
- status enum
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- there was a problem detected by the metadata store.
-
cancelEngineAction
public void cancelEngineAction(String userId, String engineActionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Request that execution of an engine action is stopped.- Specified by:
cancelEngineAction
in interfaceActionControlInterface
- Parameters:
userId
- identifier of calling userengineActionGUID
- identifier of the engine action request.- Throws:
InvalidParameterException
- one of the parameters is null or invalid.UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- there was a problem detected by the metadata store.
-
getEngineActions
public List<EngineActionElement> getEngineActions(String userId, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the engine actions known to the server.- Specified by:
getEngineActions
in interfaceActionControlInterface
- Parameters:
userId
- userId of callerstartFrom
- starting from elementpageSize
- maximum elements to return- Returns:
- list of engine action elements
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- there was a problem detected by the metadata store.
-
getActiveEngineActions
public List<EngineActionElement> getActiveEngineActions(String userId, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the engine actions that are still in process.- Specified by:
getActiveEngineActions
in interfaceActionControlInterface
- Parameters:
userId
- userId of callerstartFrom
- starting from elementpageSize
- maximum elements to return- Returns:
- list of engine action elements
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.UserNotAuthorizedException
- user not authorized to issue this request.PropertyServerException
- there was a problem detected by the metadata store.
-
findEngineActions
public List<EngineActionElement> findEngineActions(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of engine action metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findEngineActions
in interfaceActionControlInterface
- Parameters:
userId
- calling usersearchString
- 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)
-
getEngineActionsByName
public List<EngineActionElement> getEngineActionsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of engine action metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getEngineActionsByName
in interfaceActionControlInterface
- Parameters:
userId
- calling username
- 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)
-
linkElementsAsPeerDuplicates
public void linkElementsAsPeerDuplicates(String userId, String metadataElement1GUID, String metadataElement2GUID, int statusIdentifier, String steward, String stewardTypeName, String stewardPropertyName, String source, String notes, boolean setKnownDuplicate) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Link elements as peer duplicates. Create a simple relationship between two elements. If the relationship already exists, the properties are updated.- Specified by:
linkElementsAsPeerDuplicates
in interfaceDuplicateManagementInterface
- Parameters:
userId
- caller's userIdmetadataElement1GUID
- unique identifier of the metadata element at end 1 of the relationshipmetadataElement2GUID
- unique identifier of the metadata element at end 2 of the relationshipstatusIdentifier
- what is the status of this relationship (negative means untrusted, 0 means unverified and positive means trusted)steward
- identifier of the stewardstewardTypeName
- type of element used to identify the stewardstewardPropertyName
- property name used to identify stewardsource
- source of the duplicate detection processingnotes
- notes for the stewardsetKnownDuplicate
- boolean flag indicating whether the KnownDuplicate classification should be set on the linked entities.- Throws:
InvalidParameterException
- the unique identifier's of the metadata elements are null or invalid in some way; the properties are not valid for this type of relationshipUserNotAuthorizedException
- the caller is not authorized to create this type of relationshipPropertyServerException
- there is a problem with the metadata store
-
linkConsolidatedDuplicate
public void linkConsolidatedDuplicate(String userId, String consolidatedElementGUID, int statusIdentifier, String steward, String stewardTypeName, String stewardPropertyName, String source, String notes, List<String> sourceElementGUIDs) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Identify an element that acts as a consolidated version for a set of duplicate elements. (The consolidated element is created using createMetadataElement.)- Specified by:
linkConsolidatedDuplicate
in interfaceDuplicateManagementInterface
- Parameters:
userId
- caller's userIdconsolidatedElementGUID
- unique identifier of the metadata elementstatusIdentifier
- what is the status of this relationship (negative means untrusted, 0 means unverified and positive means trusted)steward
- identifier of the stewardstewardTypeName
- type of element used to identify the stewardstewardPropertyName
- property name used to identify stewardsource
- source of the duplicate detection processingnotes
- notes for the stewardsourceElementGUIDs
- List of the source elements that must be linked to the consolidated element. It is assumed that they already have the KnownDuplicateClassification.- Throws:
InvalidParameterException
- the unique identifier's of the metadata elements are null or invalid in some way; the properties are not valid for this type of relationshipUserNotAuthorizedException
- the caller is not authorized to create this type of relationshipPropertyServerException
- there is a problem with the metadata store
-
createGovernanceActionType
public String createGovernanceActionType(String userId, GovernanceActionTypeProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a governance action type.- Specified by:
createGovernanceActionType
in interfaceGovernanceActionTypeInterface
- Parameters:
userId
- calling userproperties
- properties about the governance action type to store- Returns:
- unique identifier of the new governance action type
- 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)
-
updateGovernanceActionType
public void updateGovernanceActionType(String userId, String governanceActionTypeGUID, boolean isMergeUpdate, GovernanceActionTypeProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing a governance action type.- Specified by:
updateGovernanceActionType
in interfaceGovernanceActionTypeInterface
- Parameters:
userId
- calling usergovernanceActionTypeGUID
- unique identifier of the metadata element to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?properties
- 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)
-
removeGovernanceActionType
public void removeGovernanceActionType(String userId, String governanceActionTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a governance action type.- Specified by:
removeGovernanceActionType
in interfaceGovernanceActionTypeInterface
- Parameters:
userId
- calling usergovernanceActionTypeGUID
- unique identifier of the metadata element to remove- 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)
-
findGovernanceActionTypes
public List<GovernanceActionTypeElement> findGovernanceActionTypes(String userId, String searchString, int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of governance action type metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findGovernanceActionTypes
in interfaceGovernanceActionTypeInterface
- Parameters:
userId
- calling usersearchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- effective date/time for query- 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)
-
getGovernanceActionTypesByName
public List<GovernanceActionTypeElement> getGovernanceActionTypesByName(String userId, String name, int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of governance action type metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getGovernanceActionTypesByName
in interfaceGovernanceActionTypeInterface
- Parameters:
userId
- calling username
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- effective date/time for query- 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)
-
getGovernanceActionTypeByGUID
public GovernanceActionTypeElement getGovernanceActionTypeByGUID(String userId, String governanceActionTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the governance action type metadata element with the supplied unique identifier.- Specified by:
getGovernanceActionTypeByGUID
in interfaceGovernanceActionTypeInterface
- Parameters:
userId
- calling usergovernanceActionTypeGUID
- unique identifier of the governance action type- 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)
-
createGovernanceActionProcess
public String createGovernanceActionProcess(String userId, GovernanceActionProcessProperties processProperties, ProcessStatus initialStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a governance action process.- Specified by:
createGovernanceActionProcess
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessProperties
- 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)
-
updateGovernanceActionProcess
public void updateGovernanceActionProcess(String userId, String processGUID, boolean isMergeUpdate, ProcessStatus processStatus, GovernanceActionProcessProperties processProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing a governance action process.- Specified by:
updateGovernanceActionProcess
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessGUID
- unique identifier of the metadata element to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?processStatus
- new status for the processprocessProperties
- 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)
-
publishGovernanceActionProcess
public void publishGovernanceActionProcess(String userId, 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 Governance Engine OMAS).- Specified by:
publishGovernanceActionProcess
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessGUID
- 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)
-
withdrawGovernanceActionProcess
public void withdrawGovernanceActionProcess(String userId, 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 Governance Engine OMAS. This is the setting when the process is first created).- Specified by:
withdrawGovernanceActionProcess
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessGUID
- 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)
-
removeGovernanceActionProcess
public void removeGovernanceActionProcess(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a governance action process.- Specified by:
removeGovernanceActionProcess
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessGUID
- unique identifier of the metadata element to remove- 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)
-
findGovernanceActionProcesses
public List<GovernanceActionProcessElement> findGovernanceActionProcesses(String userId, String searchString, int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of governance action process metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findGovernanceActionProcesses
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling usersearchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- effective date/time for query- 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)
-
getGovernanceActionProcessesByName
public List<GovernanceActionProcessElement> getGovernanceActionProcessesByName(String userId, String name, int startFrom, int pageSize, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of governance action process metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getGovernanceActionProcessesByName
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling username
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- effective date/time for query- 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)
-
getGovernanceActionProcessByGUID
public GovernanceActionProcessElement getGovernanceActionProcessByGUID(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the governance action process metadata element with the supplied unique identifier.- Specified by:
getGovernanceActionProcessByGUID
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessGUID
- 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)
-
getGovernanceActionProcessGraph
public GovernanceActionProcessGraph getGovernanceActionProcessGraph(String userId, String processGUID, Date effectiveTime) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the governance action process metadata element with the supplied unique identifier along with its process flow implementation. This includes the process steps and the links between them- Specified by:
getGovernanceActionProcessGraph
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessGUID
- unique identifier of the requested metadata elementeffectiveTime
- effective date/time for query- 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)
-
createGovernanceActionProcessStep
public String createGovernanceActionProcessStep(String userId, GovernanceActionProcessStepProperties processStepProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a governance action process step.- Specified by:
createGovernanceActionProcessStep
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessStepProperties
- properties about the process step to store- 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, GovernanceActionProcessStepProperties processStepProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing a governance action process step.- Specified by:
updateGovernanceActionProcessStep
in interfaceGovernanceActionProcessInterface
- 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)?processStepProperties
- 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)
-
removeGovernanceActionProcessStep
public void removeGovernanceActionProcessStep(String userId, String processStepGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a governance action process step.- Specified by:
removeGovernanceActionProcessStep
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessStepGUID
- unique identifier of the metadata element to remove- 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<GovernanceActionProcessStepElement> findGovernanceActionProcessSteps(String userId, String searchString, int startFrom, int pageSize, Date effectiveTime) 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.- Specified by:
findGovernanceActionProcessSteps
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling usersearchString
- string to find in the propertiesstartFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- effective date/time for query- 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<GovernanceActionProcessStepElement> getGovernanceActionProcessStepsByName(String userId, String name, int startFrom, int pageSize, Date effectiveTime) 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.- Specified by:
getGovernanceActionProcessStepsByName
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling username
- name to search forstartFrom
- paging start pointpageSize
- maximum results that can be returnedeffectiveTime
- effective date/time for query- 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 GovernanceActionProcessStepElement getGovernanceActionProcessStepByGUID(String userId, String processStepGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the governance action process step metadata element with the supplied unique identifier.- Specified by:
getGovernanceActionProcessStepByGUID
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessStepGUID
- unique identifier of the governance action process step- 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)
-
setupFirstActionProcessStep
public void setupFirstActionProcessStep(String userId, String processGUID, String processStepGUID, String guard) 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.- Specified by:
setupFirstActionProcessStep
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessGUID
- unique identifier of the governance action processprocessStepGUID
- unique identifier of the governance action process stepguard
- optional guard for the first governance service to run- 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)
-
getFirstActionProcessStep
public FirstGovernanceActionProcessStepElement getFirstActionProcessStep(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the governance action process step that is the first step in a governance action process.- Specified by:
getFirstActionProcessStep
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessGUID
- unique identifier of the governance action process- Returns:
- properties of the first 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)
-
removeFirstActionProcessStep
public void removeFirstActionProcessStep(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the link between a governance process and that governance action process step that defines its first step.- Specified by:
removeFirstActionProcessStep
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessGUID
- unique identifier of the governance action 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)
-
setupNextActionProcessStep
public String setupNextActionProcessStep(String userId, String currentActionProcessStepGUID, String nextActionProcessStepGUID, String guard, boolean mandatoryGuard) 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.- Specified by:
setupNextActionProcessStep
in interfaceGovernanceActionProcessInterface
- 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 returned- 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)
-
updateNextActionProcessStep
public void updateNextActionProcessStep(String userId, String nextProcessStepLinkGUID, String guard, boolean mandatoryGuard) 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.- Specified by:
updateNextActionProcessStep
in interfaceGovernanceActionProcessInterface
- 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 returned- 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<NextGovernanceActionProcessStepElement> getNextGovernanceActionProcessSteps(String userId, String processStepGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of next action process step defined for the governance action process.- Specified by:
getNextGovernanceActionProcessSteps
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessStepGUID
- unique identifier of the current governance action process stepstartFrom
- paging start pointpageSize
- maximum results that can be returned- 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)
-
removeNextActionProcessStep
public void removeNextActionProcessStep(String userId, String processStepLinkGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove a follow-on step from a governance action process.- Specified by:
removeNextActionProcessStep
in interfaceGovernanceActionProcessInterface
- Parameters:
userId
- calling userprocessStepLinkGUID
- unique identifier of the relationship between the 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)
-