Interface GovernanceActionProcessInterface
- All Known Implementing Classes:
GovernanceActionProcessClient
public interface GovernanceActionProcessInterface
GovernanceActionProcessInterface maintains Governance Action Processes and their Governance Action Types.
-
Method Summary
Modifier and TypeMethodDescriptioncreateGovernanceActionProcess
(String userId, GovernanceActionProcessProperties processProperties, ProcessStatus initialStatus) Create a new metadata element to represent a governance action process.createGovernanceActionType
(String userId, GovernanceActionTypeProperties actionTypeProperties) Create a new metadata element to represent a governance action type.findGovernanceActionProcesses
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of governance action process metadata elements that contain the search string.findGovernanceActionTypes
(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of governance action type metadata elements that contain the search string.getFirstActionType
(String userId, String processGUID) Return the governance action type 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) Retrieve the list of governance action process metadata elements with a matching qualified or display name.getGovernanceActionTypeByGUID
(String userId, String actionTypeGUID) Retrieve the governance action type metadata element with the supplied unique identifier.getGovernanceActionTypesByName
(String userId, String name, int startFrom, int pageSize) Retrieve the list of governance action type metadata elements with a matching qualified or display name.getNextGovernanceActionTypes
(String userId, String actionTypeGUID, int startFrom, int pageSize) Return the lust of next action type defined for the governance action process.void
publishGovernanceActionProcess
(String userId, String processGUID) Update the zones for the asset so that it becomes visible to consumers.void
removeFirstActionType
(String userId, String processGUID) Remove the link between a governance process and that governance action type that defines its first step.void
removeGovernanceActionProcess
(String userId, String processGUID) Remove the metadata element representing a governance action process.void
removeGovernanceActionType
(String userId, String actionTypeGUID) Remove the metadata element representing a governance action type.void
removeNextActionType
(String userId, String actionLinkGUID) Remove a follow-on step from a governance action process.void
setupFirstActionType
(String userId, String processGUID, String actionTypeGUID, String guard) Set up a link between a governance action process and a governance action type.setupNextActionType
(String userId, String currentActionTypeGUID, String nextActionTypeGUID, String guard, boolean mandatoryGuard, boolean ignoreMultipleTriggers) Add a link between two governance action types 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
updateGovernanceActionType
(String userId, String actionTypeGUID, boolean isMergeUpdate, GovernanceActionTypeProperties actionTypeProperties) Update the metadata element representing a governance action type.void
updateNextActionType
(String userId, String nextActionLinkGUID, String guard, boolean mandatoryGuard, boolean ignoreMultipleTriggers) Update the properties of the link between two governance action types 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.
-
Method Details
-
createGovernanceActionProcess
String createGovernanceActionProcess(String userId, GovernanceActionProcessProperties processProperties, ProcessStatus initialStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a governance action process.- 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
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.- 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
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).- 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
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).- 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
void removeGovernanceActionProcess(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a governance action process.- 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
List<GovernanceActionProcessElement> findGovernanceActionProcesses(String userId, String searchString, int startFrom, int pageSize) 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.- 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)
-
getGovernanceActionProcessesByName
List<GovernanceActionProcessElement> getGovernanceActionProcessesByName(String userId, String name, int startFrom, int pageSize) 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.- 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)
-
getGovernanceActionProcessByGUID
GovernanceActionProcessElement getGovernanceActionProcessByGUID(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the governance action process metadata element with the supplied unique identifier.- 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)
-
createGovernanceActionType
String createGovernanceActionType(String userId, GovernanceActionTypeProperties actionTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a governance action type.- Parameters:
userId
- calling useractionTypeProperties
- properties about the process 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
void updateGovernanceActionType(String userId, String actionTypeGUID, boolean isMergeUpdate, GovernanceActionTypeProperties actionTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the metadata element representing a governance action type.- Parameters:
userId
- calling useractionTypeGUID
- unique identifier of the metadata element to updateisMergeUpdate
- should the new properties be merged with existing properties (true) or completely replace them (false)?actionTypeProperties
- 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
void removeGovernanceActionType(String userId, String actionTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the metadata element representing a governance action type.- Parameters:
userId
- calling useractionTypeGUID
- 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
List<GovernanceActionTypeElement> findGovernanceActionTypes(String userId, String searchString, int startFrom, int pageSize) 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.- 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)
-
getGovernanceActionTypesByName
List<GovernanceActionTypeElement> getGovernanceActionTypesByName(String userId, String name, int startFrom, int pageSize) 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.- 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)
-
getGovernanceActionTypeByGUID
GovernanceActionTypeElement getGovernanceActionTypeByGUID(String userId, String actionTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the governance action type metadata element with the supplied unique identifier.- Parameters:
userId
- calling useractionTypeGUID
- 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)
-
setupFirstActionType
void setupFirstActionType(String userId, String processGUID, String actionTypeGUID, String guard) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Set up a link between a governance action process and a governance action type. This defines the first step in the process.- Parameters:
userId
- calling userprocessGUID
- unique identifier of the governance action processactionTypeGUID
- unique identifier of the governance action typeguard
- 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)
-
getFirstActionType
GovernanceActionTypeElement getFirstActionType(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the governance action type that is the first step in a governance action process.- Parameters:
userId
- calling userprocessGUID
- unique identifier of the governance action process- Returns:
- properties of the 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)
-
removeFirstActionType
void removeFirstActionType(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the link between a governance process and that governance action type that defines its first step.- 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)
-
setupNextActionType
String setupNextActionType(String userId, String currentActionTypeGUID, String nextActionTypeGUID, String guard, boolean mandatoryGuard, boolean ignoreMultipleTriggers) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Add a link between two governance action types to show that one follows on from the other when a governance action process is executing.- Parameters:
userId
- calling usercurrentActionTypeGUID
- unique identifier of the governance action type that defines the previous step in the governance action processnextActionTypeGUID
- unique identifier of the governance action type 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 returnedignoreMultipleTriggers
- prevent multiple instances of the next step to run (or not)- 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)
-
updateNextActionType
void updateNextActionType(String userId, String nextActionLinkGUID, String guard, boolean mandatoryGuard, boolean ignoreMultipleTriggers) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the properties of the link between two governance action types that shows that one follows on from the other when a governance action process is executing.- Parameters:
userId
- calling usernextActionLinkGUID
- unique identifier of the relationship between the governance action typesguard
- 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 returnedignoreMultipleTriggers
- prevent multiple instances of the next step to run (or not)- 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)
-
getNextGovernanceActionTypes
List<NextGovernanceActionTypeElement> getNextGovernanceActionTypes(String userId, String actionTypeGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the lust of next action type defined for the governance action process.- Parameters:
userId
- calling useractionTypeGUID
- unique identifier of the current governance action typestartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- return the list of relationships and attached governance action types.
- 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)
-
removeNextActionType
void removeNextActionType(String userId, String actionLinkGUID) 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 types- 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)
-