Class ActionAuthorResource
java.lang.Object
org.odpi.openmetadata.viewservices.actionauthor.server.spring.ActionAuthorResource
@RestController
@RequestMapping("/servers/{serverName}/api/open-metadata/action-author")
public class ActionAuthorResource
extends Object
The ActionAuthorResource provides the Spring API endpoints of the Action Author Open Metadata View Service (OMVS).
=
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetachGovernanceActionExecutor(String serverName, String governanceActionTypeGUID, String governanceEngineGUID, DeleteRelationshipRequestBody requestBody) Detach a governance action type from the governance engine that it is to call.detachTargetForGovernanceAction(String serverName, String governanceActionGUID, String elementGUID, DeleteRelationshipRequestBody requestBody) Detach a governance action from the element it is to work on (action target).linkGovernanceActionExecutor(String serverName, String governanceActionTypeGUID, String governanceEngineGUID, NewRelationshipRequestBody requestBody) Link a governance action type to the governance engine that it is to call.linkTargetForGovernanceAction(String serverName, String governanceActionGUID, String elementGUID, NewRelationshipRequestBody requestBody) Link a governance action to the element it is to work on (action target).removeFirstProcessStep(String serverName, String processGUID, String firstProcessStepGUID, DeleteRelationshipRequestBody requestBody) Remove the link between a governance process and that governance action process step that defines its first step.removeNextActionProcessStep(String serverName, String relationshipGUID, DeleteRelationshipRequestBody requestBody) Remove a follow-on step from a governance action process.setupFirstActionProcessStep(String serverName, String processGUID, String processStepGUID, NewRelationshipRequestBody requestBody) Set up a link between a governance action process and a governance action process step.setupNextActionProcessStep(String serverName, String currentProcessStepGUID, String nextProcessStepGUID, NewRelationshipRequestBody requestBody) 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.updateNextActionProcessStep(String serverName, String nextProcessStepLinkGUID, UpdateRelationshipRequestBody requestBody) 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.
-
Constructor Details
-
ActionAuthorResource
public ActionAuthorResource()Default constructor
-
-
Method Details
-
linkTargetForGovernanceAction
@PostMapping(path="/governance-actions/{governanceActionGUID}/action-targets/{elementGUID}/attach") public VoidResponse linkTargetForGovernanceAction(@PathVariable String serverName, @PathVariable String governanceActionGUID, @PathVariable String elementGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Link a governance action to the element it is to work on (action target).- Parameters:
serverName- name of the service to route the request togovernanceActionGUID- unique identifier of the governance actionelementGUID- unique identifier of the targetrequestBody- optional guard- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
detachTargetForGovernanceAction
@PostMapping(path="/governance-actions/{governanceActionGUID}/action-targets/{elementGUID}/detach") public VoidResponse detachTargetForGovernanceAction(@PathVariable String serverName, @PathVariable String governanceActionGUID, @PathVariable String elementGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a governance action from the element it is to work on (action target).- Parameters:
serverName- name of the service to route the request togovernanceActionGUID- unique identifier of the governance actionelementGUID- unique identifier of the targetrequestBody- null request body- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
linkGovernanceActionExecutor
@PostMapping(path="/governance-action-types/{governanceActionTypeGUID}/governance-engine-executor/{governanceEngineGUID}/attach") public VoidResponse linkGovernanceActionExecutor(@PathVariable String serverName, @PathVariable String governanceActionTypeGUID, @PathVariable String governanceEngineGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Link a governance action type to the governance engine that it is to call.- Parameters:
serverName- name of the service to route the request togovernanceActionTypeGUID- unique identifier of the governance action typegovernanceEngineGUID- unique identifier of the governance engine to callrequestBody- optional guard- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
detachGovernanceActionExecutor
@PostMapping(path="/governance-action-types/{governanceActionTypeGUID}/governance-engine-executor/{governanceEngineGUID}/detach") public VoidResponse detachGovernanceActionExecutor(@PathVariable String serverName, @PathVariable String governanceActionTypeGUID, @PathVariable String governanceEngineGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Detach a governance action type from the governance engine that it is to call.- Parameters:
serverName- name of the service to route the request togovernanceActionTypeGUID- unique identifier of the governance action typegovernanceEngineGUID- unique identifier of the governance engine to callrequestBody- null request body- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupFirstActionProcessStep
@PostMapping(path="/governance-action-processes/{processGUID}/first-process-step/{processStepGUID}/attach") public VoidResponse setupFirstActionProcessStep(@PathVariable String serverName, @PathVariable String processGUID, @PathVariable String processStepGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Set up a link between a governance action process and a governance action process step. This defines the first step in the process.- Parameters:
serverName- name of the service to route the request toprocessGUID- unique identifier of the governance action processprocessStepGUID- unique identifier of the governance action process steprequestBody- optional guard- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
removeFirstProcessStep
@PostMapping(path="/governance-action-processes/{processGUID}/first-process-step/{firstProcessStepGUID}/detach") public VoidResponse removeFirstProcessStep(@PathVariable String serverName, @PathVariable String processGUID, @PathVariable String firstProcessStepGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Remove the link between a governance process and that governance action process step that defines its first step.- Parameters:
serverName- name of the service to route the request toprocessGUID- unique identifier of the governance action processfirstProcessStepGUID- unique identifier of the first step in the processrequestBody- null request body- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setupNextActionProcessStep
@PostMapping(path="/governance-action-process-steps/{currentProcessStepGUID}/next-process-steps/{nextProcessStepGUID}/attach") public GUIDResponse setupNextActionProcessStep(@PathVariable String serverName, @PathVariable String currentProcessStepGUID, @PathVariable String nextProcessStepGUID, @RequestBody NewRelationshipRequestBody requestBody) 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:
serverName- name of the service to route the request tocurrentProcessStepGUID- unique identifier of the governance action process step that defines the previous step in the governance action processnextProcessStepGUID- unique identifier of the governance action process step that defines the next step in the governance action processrequestBody- guard required for this next step to proceed - or null for always run the next step plus flags.- Returns:
- unique identifier of the new link or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateNextActionProcessStep
@PostMapping(path="/governance-action-process-steps/next-process-steps/{nextProcessStepLinkGUID}/update") public VoidResponse updateNextActionProcessStep(@PathVariable String serverName, @PathVariable String nextProcessStepLinkGUID, @RequestBody UpdateRelationshipRequestBody requestBody) 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:
serverName- name of the service to route the request tonextProcessStepLinkGUID- unique identifier of the relationship between the governance action process stepsrequestBody- guard required for this next step to proceed - or null for always run the next step - and flags- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
removeNextActionProcessStep
@PostMapping(path="/governance-action-process-steps/next-process-step/{relationshipGUID}/detach") public VoidResponse removeNextActionProcessStep(@PathVariable String serverName, @PathVariable String relationshipGUID, @RequestBody(required=false) DeleteRelationshipRequestBody requestBody) Remove a follow-on step from a governance action process.- Parameters:
serverName- name of the service to route the request torelationshipGUID- unique identifier of the relationship between the governance action process stepsrequestBody- null request body- Returns:
- void or InvalidParameterException one of the parameters is invalid or UserNotAuthorizedException the user is not authorized to issue this request or PropertyServerException there is a problem reported in the open metadata server(s)
-