java.lang.Object
org.odpi.openmetadata.accessservices.communityprofile.client.CommunityProfileBaseClient
org.odpi.openmetadata.accessservices.communityprofile.client.ToDoActionManagement
All Implemented Interfaces:
org.odpi.openmetadata.accessservices.communityprofile.api.RelatedElementsManagementInterface, org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface

public class ToDoActionManagement extends CommunityProfileBaseClient implements org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface
  • Constructor Details

    • ToDoActionManagement

      public ToDoActionManagement(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client with no authentication embedded in the HTTP request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      auditLog - logging destination
      maxPageSize - maximum value allowed for page size
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • ToDoActionManagement

      public ToDoActionManagement(String serverName, String serverPlatformURLRoot, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client with no authentication embedded in the HTTP request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      maxPageSize - maximum value allowed for page size
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • ToDoActionManagement

      public ToDoActionManagement(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      userId - caller's userId embedded in all HTTP requests
      password - caller's userId embedded in all HTTP requests
      maxPageSize - maximum value allowed for page size
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • ToDoActionManagement

      public ToDoActionManagement(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.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:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      userId - caller's userId embedded in all HTTP requests
      password - caller's userId embedded in all HTTP requests
      auditLog - logging destination
      maxPageSize - maximum value allowed for page size
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
  • Method Details

    • createToDo

      public String createToDo(String userId, String originatorGUID, String actionSponsorGUID, String assignToActorGUID, List<org.odpi.openmetadata.accessservices.communityprofile.properties.NewActionTargetProperties> newActionTargetProperties, org.odpi.openmetadata.accessservices.communityprofile.properties.ToDoProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Create a new to do action and link it to the supplied role and targets (if applicable).
      Specified by:
      createToDo in interface org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface
      Parameters:
      userId - calling user
      originatorGUID - optional originator element (such as a person or Governance Service)
      actionSponsorGUID - optional element that maintains the "To Do" on their list
      assignToActorGUID - optional actor to assign the action to
      newActionTargetProperties - optional list of elements that the action is to target
      properties - properties of the to do action
      Returns:
      unique identifier of the to do
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - a parameter is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call
    • updateToDo

      public void updateToDo(String userId, String toDoGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.communityprofile.properties.ToDoProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Update the properties associated with a "To Do".
      Specified by:
      updateToDo in interface org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface
      Parameters:
      userId - calling user
      toDoGUID - unique identifier of the to do
      isMergeUpdate - should the properties overlay the existing stored properties or replace them
      properties - properties to change
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - a parameter is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call
    • updateActionTargetProperties

      public void updateActionTargetProperties(String userId, String actionTargetGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.communityprofile.properties.ActionTargetProperties actionTargetProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Update the properties associated with an Action Target.
      Specified by:
      updateActionTargetProperties in interface org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface
      Parameters:
      userId - calling user
      actionTargetGUID - unique identifier of the action target relationship
      isMergeUpdate - should the actionTargetProperties overlay the existing stored properties or replace them
      actionTargetProperties - properties to change
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - a parameter is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call
    • reassignToDo

      public void reassignToDo(String userId, String toDoGUID, String actorGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Assign a "To Do" to a new actor.
      Specified by:
      reassignToDo in interface org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface
      Parameters:
      userId - calling user
      toDoGUID - unique identifier of the to do
      actorGUID - actor to assign the action to
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - a parameter is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call
    • deleteToDo

      public void deleteToDo(String userId, String toDoGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Delete an existing to do.
      Specified by:
      deleteToDo in interface org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface
      Parameters:
      userId - calling user
      toDoGUID - unique identifier of the to do
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - a parameter is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call
    • getToDo

      public org.odpi.openmetadata.accessservices.communityprofile.metadataelements.ToDoElement getToDo(String userId, String toDoGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve a "To Do" by unique identifier.
      Specified by:
      getToDo in interface org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface
      Parameters:
      userId - calling user
      toDoGUID - unique identifier of the to do
      Returns:
      to do bean
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - a parameter is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call
    • getActionsForActionTarget

      public List<org.odpi.openmetadata.accessservices.communityprofile.metadataelements.ToDoElement> getActionsForActionTarget(String userId, String elementGUID, org.odpi.openmetadata.frameworks.openmetadata.enums.ToDoStatus toDoStatus, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve the "To Dos" that are chained off of an action target element.
      Specified by:
      getActionsForActionTarget in interface org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface
      Parameters:
      userId - calling user
      elementGUID - unique identifier of the element to start with
      toDoStatus - optional "To Do" status
      startFrom - initial position of the results to return
      pageSize - maximum number of results to return
      Returns:
      list of to do beans
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - a parameter is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call
    • getActionsForSponsor

      public List<org.odpi.openmetadata.accessservices.communityprofile.metadataelements.ToDoElement> getActionsForSponsor(String userId, String elementGUID, org.odpi.openmetadata.frameworks.openmetadata.enums.ToDoStatus toDoStatus, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve the "To Dos" that are chained off of a sponsor's element.
      Specified by:
      getActionsForSponsor in interface org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface
      Parameters:
      userId - calling user
      elementGUID - unique identifier of the element to start with
      toDoStatus - optional "To Do" status
      startFrom - initial position of the results to return
      pageSize - maximum number of results to return
      Returns:
      list of to do beans
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - a parameter is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call
    • getAssignedActions

      public List<org.odpi.openmetadata.accessservices.communityprofile.metadataelements.ToDoElement> getAssignedActions(String userId, String actorGUID, org.odpi.openmetadata.frameworks.openmetadata.enums.ToDoStatus toDoStatus, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve the "To Dos" for a particular actor.
      Specified by:
      getAssignedActions in interface org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface
      Parameters:
      userId - calling user
      actorGUID - unique identifier of the role
      toDoStatus - optional "To Do" status
      startFrom - initial position of the results to return
      pageSize - maximum number of results to return
      Returns:
      list of to do beans
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - a parameter is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call
    • findToDos

      public List<org.odpi.openmetadata.accessservices.communityprofile.metadataelements.ToDoElement> findToDos(String userId, String searchString, org.odpi.openmetadata.frameworks.openmetadata.enums.ToDoStatus toDoStatus, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve the "To Dos" that match the search string.
      Specified by:
      findToDos in interface org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface
      Parameters:
      userId - calling user
      searchString - string to search for (may include RegExs)
      toDoStatus - optional "To Do" status
      startFrom - initial position of the results to return
      pageSize - maximum number of results to return
      Returns:
      list of to do beans
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - a parameter is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call
    • getToDosByType

      public List<org.odpi.openmetadata.accessservices.communityprofile.metadataelements.ToDoElement> getToDosByType(String userId, String toDoType, org.odpi.openmetadata.frameworks.openmetadata.enums.ToDoStatus toDoStatus, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      Retrieve the "To Dos" that match the type name and status.
      Specified by:
      getToDosByType in interface org.odpi.openmetadata.accessservices.communityprofile.api.ToDoManagementInterface
      Parameters:
      userId - calling user
      toDoType - type to search for
      toDoStatus - optional "To Do" status
      startFrom - initial position of the results to return
      pageSize - maximum number of results to return
      Returns:
      list of to do beans
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - a parameter is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - the server is not available
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the calling user is not authorized to issue the call