Class GovernanceActionProcessRESTServices

java.lang.Object
org.odpi.openmetadata.accessservices.governanceengine.server.GovernanceActionProcessRESTServices

public class GovernanceActionProcessRESTServices extends Object
The GovernanceActionProcessRESTServices provides the server-side implementation of the services used by an external user to define governance action processes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse
    createGovernanceActionProcess(String serverName, String userId, org.odpi.openmetadata.frameworkservices.gaf.rest.NewGovernanceActionProcessRequestBody requestBody)
    Create a new metadata element to represent a governance action process.
    org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse
    createGovernanceActionType(String serverName, String userId, org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceActionTypeProperties requestBody)
    Create a new metadata element to represent a governance action type.
    org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionProcessElementsResponse
    findGovernanceActionProcesses(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.SearchStringRequestBody requestBody)
    Retrieve the list of governance action process metadata elements that contain the search string.
    org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionTypeElementsResponse
    findGovernanceActionTypes(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.SearchStringRequestBody requestBody)
    Retrieve the list of governance action type metadata elements that contain the search string.
    org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionTypeElementResponse
    getFirstActionType(String serverName, String userId, String processGUID)
    Return the governance action type that is the first step in a governance action process.
    org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionProcessElementResponse
    getGovernanceActionProcessByGUID(String serverName, String userId, String processGUID)
    Retrieve the governance action process metadata element with the supplied unique identifier.
    org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionProcessElementsResponse
    getGovernanceActionProcessesByName(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.NameRequestBody requestBody)
    Retrieve the list of governance action process metadata elements with a matching qualified or display name.
    org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionTypeElementResponse
    getGovernanceActionTypeByGUID(String serverName, String userId, String actionTypeGUID)
    Retrieve the governance action type metadata element with the supplied unique identifier.
    org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionTypeElementsResponse
    getGovernanceActionTypesByName(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.NameRequestBody requestBody)
    Retrieve the list of governance action type metadata elements with a matching qualified or display name.
    org.odpi.openmetadata.accessservices.governanceengine.rest.NextGovernanceActionTypeElementsResponse
    getNextGovernanceActionTypes(String serverName, String userId, String actionTypeGUID, int startFrom, int pageSize)
    Return the lust of next action type defined for the governance action process.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    publishGovernanceActionProcess(String serverName, String userId, String processGUID, org.odpi.openmetadata.commonservices.ffdc.rest.NullRequestBody requestBody)
    Update the zones for the asset so that it becomes visible to consumers.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    removeFirstActionType(String serverName, String userId, String processGUID, org.odpi.openmetadata.commonservices.ffdc.rest.NullRequestBody requestBody)
    Remove the link between a governance process and that governance action type that defines its first step.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    removeGovernanceActionProcess(String serverName, String userId, String processGUID, org.odpi.openmetadata.commonservices.ffdc.rest.NullRequestBody requestBody)
    Remove the metadata element representing a governance action process.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    removeGovernanceActionType(String serverName, String userId, String actionTypeGUID, org.odpi.openmetadata.commonservices.ffdc.rest.NullRequestBody requestBody)
    Remove the metadata element representing a governance action type.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    removeNextActionType(String serverName, String userId, String actionLinkGUID, org.odpi.openmetadata.commonservices.ffdc.rest.NullRequestBody requestBody)
    Remove a follow-on step from a governance action process.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    setupFirstActionType(String serverName, String userId, String processGUID, String actionTypeGUID, String requestBody)
    Set up a link between a governance action process and a governance action type.
    org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse
    setupNextActionType(String serverName, String userId, String currentActionTypeGUID, String nextActionTypeGUID, org.odpi.openmetadata.accessservices.governanceengine.rest.NextGovernanceActionTypeRequestBody requestBody)
    Add a link between two governance action types to show that one follows on from the other when a governance action process is executing.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    updateGovernanceActionProcess(String serverName, String userId, String processGUID, org.odpi.openmetadata.frameworkservices.gaf.rest.UpdateGovernanceActionProcessRequestBody requestBody)
    Update the metadata element representing a governance action process.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    updateGovernanceActionType(String serverName, String userId, String actionTypeGUID, org.odpi.openmetadata.accessservices.governanceengine.rest.UpdateGovernanceActionTypeRequestBody requestBody)
    Update the metadata element representing a governance action type.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    updateNextActionType(String serverName, String userId, String nextActionLinkGUID, org.odpi.openmetadata.accessservices.governanceengine.rest.NextGovernanceActionTypeRequestBody requestBody)
    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.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    withdrawGovernanceActionProcess(String serverName, String userId, String processGUID, org.odpi.openmetadata.commonservices.ffdc.rest.NullRequestBody requestBody)
    Update the zones for the asset so that it is no longer visible to consumers.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GovernanceActionProcessRESTServices

      public GovernanceActionProcessRESTServices()
      Default constructor
  • Method Details

    • createGovernanceActionProcess

      public org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse createGovernanceActionProcess(String serverName, String userId, org.odpi.openmetadata.frameworkservices.gaf.rest.NewGovernanceActionProcessRequestBody requestBody)
      Create a new metadata element to represent a governance action process.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      requestBody - properties about the process to store and status value for the new process (default = ACTIVE)
      Returns:
      unique identifier of the new process 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)
    • updateGovernanceActionProcess

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse updateGovernanceActionProcess(String serverName, String userId, String processGUID, org.odpi.openmetadata.frameworkservices.gaf.rest.UpdateGovernanceActionProcessRequestBody requestBody)
      Update the metadata element representing a governance action process.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      processGUID - unique identifier of the metadata element to update
      requestBody - new properties for the metadata element
      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)
    • publishGovernanceActionProcess

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse publishGovernanceActionProcess(String serverName, String userId, String processGUID, org.odpi.openmetadata.commonservices.ffdc.rest.NullRequestBody requestBody)
      Update the zones for the asset so that it becomes visible to consumers. (The zones are set to the list of zones in the publishedZones option configured for each instance of the Asset Manager OMAS).
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      processGUID - unique identifier of the metadata element to publish
      requestBody - null request body
      Returns:
      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)
    • withdrawGovernanceActionProcess

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse withdrawGovernanceActionProcess(String serverName, String userId, String processGUID, org.odpi.openmetadata.commonservices.ffdc.rest.NullRequestBody requestBody)
      Update the zones for the asset so that it is no longer visible to consumers. (The zones are set to the list of zones in the defaultZones option configured for each instance of the Asset Manager OMAS. This is the setting when the process is first created).
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      processGUID - unique identifier of the metadata element to withdraw
      requestBody - 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)
    • removeGovernanceActionProcess

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse removeGovernanceActionProcess(String serverName, String userId, String processGUID, org.odpi.openmetadata.commonservices.ffdc.rest.NullRequestBody requestBody)
      Remove the metadata element representing a governance action process.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      processGUID - unique identifier of the metadata element to remove
      requestBody - 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)
    • findGovernanceActionProcesses

      public org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionProcessElementsResponse findGovernanceActionProcesses(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.SearchStringRequestBody requestBody)
      Retrieve the list of governance action process metadata elements that contain the search string. The search string is treated as a regular expression.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      startFrom - paging start point
      pageSize - maximum results that can be returned
      requestBody - string to find in the properties
      Returns:
      list of matching metadata elements 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)
    • getGovernanceActionProcessesByName

      public org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionProcessElementsResponse getGovernanceActionProcessesByName(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.NameRequestBody requestBody)
      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:
      serverName - name of the service to route the request to
      userId - calling user
      startFrom - paging start point
      pageSize - maximum results that can be returned
      requestBody - name to search for
      Returns:
      list of matching metadata elements 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)
    • getGovernanceActionProcessByGUID

      public org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionProcessElementResponse getGovernanceActionProcessByGUID(String serverName, String userId, String processGUID)
      Retrieve the governance action process metadata element with the supplied unique identifier.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      processGUID - unique identifier of the requested metadata element
      Returns:
      requested metadata element 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)
    • createGovernanceActionType

      public org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse createGovernanceActionType(String serverName, String userId, org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceActionTypeProperties requestBody)
      Create a new metadata element to represent a governance action type.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      requestBody - properties about the process to store
      Returns:
      unique identifier of the new governance action type 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)
    • updateGovernanceActionType

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse updateGovernanceActionType(String serverName, String userId, String actionTypeGUID, org.odpi.openmetadata.accessservices.governanceengine.rest.UpdateGovernanceActionTypeRequestBody requestBody)
      Update the metadata element representing a governance action type.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      actionTypeGUID - unique identifier of the metadata element to update
      requestBody - new properties for the metadata element
      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)
    • removeGovernanceActionType

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse removeGovernanceActionType(String serverName, String userId, String actionTypeGUID, org.odpi.openmetadata.commonservices.ffdc.rest.NullRequestBody requestBody)
      Remove the metadata element representing a governance action type.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      actionTypeGUID - unique identifier of the metadata element to remove
      requestBody - 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)
    • findGovernanceActionTypes

      public org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionTypeElementsResponse findGovernanceActionTypes(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.SearchStringRequestBody requestBody)
      Retrieve the list of governance action type metadata elements that contain the search string. The search string is treated as a regular expression.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      startFrom - paging start point
      pageSize - maximum results that can be returned
      requestBody - string to find in the properties
      Returns:
      list of matching metadata elements 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)
    • getGovernanceActionTypesByName

      public org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionTypeElementsResponse getGovernanceActionTypesByName(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.NameRequestBody requestBody)
      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:
      serverName - name of the service to route the request to
      userId - calling user
      startFrom - paging start point
      pageSize - maximum results that can be returned
      requestBody - name to search for
      Returns:
      list of matching metadata elements 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)
    • getGovernanceActionTypeByGUID

      public org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionTypeElementResponse getGovernanceActionTypeByGUID(String serverName, String userId, String actionTypeGUID)
      Retrieve the governance action type metadata element with the supplied unique identifier.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      actionTypeGUID - unique identifier of the governance action type
      Returns:
      requested metadata element 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)
    • setupFirstActionType

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse setupFirstActionType(String serverName, String userId, String processGUID, String actionTypeGUID, String requestBody)
      Set up a link between a governance action process and a governance action type. This defines the first step in the process.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      processGUID - unique identifier of the governance action process
      actionTypeGUID - unique identifier of the governance action type
      requestBody - 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)
    • getFirstActionType

      public org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceActionTypeElementResponse getFirstActionType(String serverName, String userId, String processGUID)
      Return the governance action type that is the first step in a governance action process.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      processGUID - unique identifier of the governance action process
      Returns:
      properties of the governance action type 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)
    • removeFirstActionType

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse removeFirstActionType(String serverName, String userId, String processGUID, org.odpi.openmetadata.commonservices.ffdc.rest.NullRequestBody requestBody)
      Remove the link between a governance process and that governance action type that defines its first step.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      processGUID - unique identifier of the governance action process
      requestBody - 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)
    • setupNextActionType

      public org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse setupNextActionType(String serverName, String userId, String currentActionTypeGUID, String nextActionTypeGUID, org.odpi.openmetadata.accessservices.governanceengine.rest.NextGovernanceActionTypeRequestBody requestBody)
      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:
      serverName - name of the service to route the request to
      userId - calling user
      currentActionTypeGUID - unique identifier of the governance action type that defines the previous step in the governance action process
      nextActionTypeGUID - unique identifier of the governance action type that defines the next step in the governance action process
      requestBody - 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)
    • updateNextActionType

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse updateNextActionType(String serverName, String userId, String nextActionLinkGUID, org.odpi.openmetadata.accessservices.governanceengine.rest.NextGovernanceActionTypeRequestBody requestBody)
      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:
      serverName - name of the service to route the request to
      userId - calling user
      nextActionLinkGUID - unique identifier of the relationship between the governance action types
      requestBody - 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)
    • getNextGovernanceActionTypes

      public org.odpi.openmetadata.accessservices.governanceengine.rest.NextGovernanceActionTypeElementsResponse getNextGovernanceActionTypes(String serverName, String userId, String actionTypeGUID, int startFrom, int pageSize)
      Return the lust of next action type defined for the governance action process.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      actionTypeGUID - unique identifier of the current governance action type
      startFrom - paging start point
      pageSize - maximum results that can be returned
      Returns:
      return the list of relationships and attached governance action types 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)
    • removeNextActionType

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse removeNextActionType(String serverName, String userId, String actionLinkGUID, org.odpi.openmetadata.commonservices.ffdc.rest.NullRequestBody requestBody)
      Remove a follow-on step from a governance action process.
      Parameters:
      serverName - name of the service to route the request to
      userId - calling user
      actionLinkGUID - unique identifier of the relationship between the governance action types
      requestBody - 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)