Class MyProfileRESTServices
java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.viewservices.myprofile.server.MyProfileRESTServices
The MyProfileRESTServices provides the server-side implementation of the My Profile Open Metadata
View Service (OMVS). This interface provides access to a person's profile, roles and network.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateToDo
(String serverName, ToDoRequestBody requestBody) Create a new to do action and link it to the supplied role and targets (if applicable).deleteToDo
(String serverName, String toDoGUID, NullRequestBody requestBody) Delete an existing to do.findToDos
(String serverName, int startFrom, int pageSize, boolean startsWith, boolean endsWith, boolean ignoreCase, ToDoStatusSearchString requestBody) Retrieve the "To Dos" that match the search string.getActionsForActionTarget
(String serverName, String elementGUID, int startFrom, int pageSize, ToDoStatusRequestBody requestBody) Retrieve the "To Dos" that are chained off of an action target element.getActionsForSponsor
(String serverName, String elementGUID, int startFrom, int pageSize, ToDoStatusRequestBody requestBody) Retrieve the "To Dos" that are chained off of a sponsoring element.getAssignedActions
(String serverName, String actorGUID, int startFrom, int pageSize, ToDoStatusRequestBody requestBody) Retrieve the "To Dos" for a particular actor.getMyProfile
(String serverName) Return the profile for this user.Retrieve a "To Do" by unique identifier.getToDosByType
(String serverName, String toDoType, int startFrom, int pageSize, ToDoStatusRequestBody requestBody) Retrieve the "To Dos" that match the type name and status.reassignToDo
(String serverName, String toDoGUID, String actorGUID, NullRequestBody requestBody) Assign a "To Do" to a new actor.updateActionTargetProperties
(String serverName, String actionTargetGUID, boolean isMergeUpdate, ToDoActionTargetProperties actionTargetProperties) Update the properties associated with an Action Target.updateToDo
(String serverName, String toDoGUID, boolean isMergeUpdate, ToDoProperties toDoProperties) Update the properties associated with a "To Do".Methods inherited from class org.odpi.openmetadata.tokencontroller.TokenController
getUser
-
Constructor Details
-
MyProfileRESTServices
public MyProfileRESTServices()Default constructor
-
-
Method Details
-
getMyProfile
Return the profile for this user.- Parameters:
serverName
- name of the server instances for this request- Returns:
- profile response object or null or InvalidParameterException the userId is null or invalid or PropertyServerException there is a problem retrieving information from the property server(s) or UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
createToDo
Create a new to do action and link it to the supplied role and targets (if applicable).- Parameters:
serverName
- name of the server instances for this requestrequestBody
- properties of the to do action- Returns:
- unique identifier of the to do or InvalidParameterException a parameter is invalid PropertyServerException the server is not available UserNotAuthorizedException the calling user is not authorized to issue the call
-
updateToDo
public VoidResponse updateToDo(String serverName, String toDoGUID, boolean isMergeUpdate, ToDoProperties toDoProperties) Update the properties associated with a "To Do".- Parameters:
serverName
- name of the server instances for this requesttoDoGUID
- unique identifier of the to doisMergeUpdate
- should the toDoProperties overlay the existing stored properties or replace themtoDoProperties
- properties to change- Returns:
- void or InvalidParameterException a parameter is invalid PropertyServerException the server is not available UserNotAuthorizedException the calling user is not authorized to issue the call
-
updateActionTargetProperties
public VoidResponse updateActionTargetProperties(String serverName, String actionTargetGUID, boolean isMergeUpdate, ToDoActionTargetProperties actionTargetProperties) Update the properties associated with an Action Target.- Parameters:
serverName
- name of the server instances for this requestactionTargetGUID
- unique identifier of the action target relationshipisMergeUpdate
- should the actionTargetProperties overlay the existing stored properties or replace themactionTargetProperties
- properties to change- Returns:
- void or InvalidParameterException a parameter is invalid PropertyServerException the server is not available UserNotAuthorizedException the calling user is not authorized to issue the call
-
reassignToDo
public VoidResponse reassignToDo(String serverName, String toDoGUID, String actorGUID, NullRequestBody requestBody) Assign a "To Do" to a new actor.- Parameters:
serverName
- name of the server instances for this requesttoDoGUID
- unique identifier of the to doactorGUID
- actor to assign the action torequestBody
- null request body- Returns:
- void or InvalidParameterException a parameter is invalid PropertyServerException the server is not available UserNotAuthorizedException the calling user is not authorized to issue the call
-
deleteToDo
Delete an existing to do.- Parameters:
serverName
- name of the server instances for this requesttoDoGUID
- unique identifier of the to dorequestBody
- null request body- Returns:
- void or InvalidParameterException a parameter is invalid PropertyServerException the server is not available UserNotAuthorizedException the calling user is not authorized to issue the call
-
getToDo
Retrieve a "To Do" by unique identifier.- Parameters:
serverName
- name of the server instances for this requesttoDoGUID
- unique identifier of the to do- Returns:
- to do bean or InvalidParameterException a parameter is invalid PropertyServerException the server is not available UserNotAuthorizedException the calling user is not authorized to issue the call
-
getActionsForActionTarget
public ToDosResponse getActionsForActionTarget(String serverName, String elementGUID, int startFrom, int pageSize, ToDoStatusRequestBody requestBody) Retrieve the "To Dos" that are chained off of an action target element.- Parameters:
serverName
- name of the server instances for this requestelementGUID
- unique identifier of the element to start withstartFrom
- initial position of the results to returnpageSize
- maximum number of results to returnrequestBody
- status of the to do (null means current active)- Returns:
- list of to do beans or InvalidParameterException a parameter is invalid PropertyServerException the server is not available UserNotAuthorizedException the calling user is not authorized to issue the call
-
getActionsForSponsor
public ToDosResponse getActionsForSponsor(String serverName, String elementGUID, int startFrom, int pageSize, ToDoStatusRequestBody requestBody) Retrieve the "To Dos" that are chained off of a sponsoring element.- Parameters:
serverName
- name of the server instances for this requestelementGUID
- unique identifier of the element to start withstartFrom
- initial position of the results to returnpageSize
- maximum number of results to returnrequestBody
- status of the to do (null means current active)- Returns:
- list of to do beans or InvalidParameterException a parameter is invalid PropertyServerException the server is not available UserNotAuthorizedException the calling user is not authorized to issue the call
-
getAssignedActions
public ToDosResponse getAssignedActions(String serverName, String actorGUID, int startFrom, int pageSize, ToDoStatusRequestBody requestBody) Retrieve the "To Dos" for a particular actor.- Parameters:
serverName
- name of the server instances for this requestactorGUID
- unique identifier of the rolestartFrom
- initial position of the results to returnpageSize
- maximum number of results to returnrequestBody
- status of the to do (null means current active)- Returns:
- list of to do beans or InvalidParameterException a parameter is invalid PropertyServerException the server is not available UserNotAuthorizedException the calling user is not authorized to issue the call
-
findToDos
public ToDosResponse findToDos(String serverName, int startFrom, int pageSize, boolean startsWith, boolean endsWith, boolean ignoreCase, ToDoStatusSearchString requestBody) Retrieve the "To Dos" that match the search string.- Parameters:
serverName
- name of the server instances for this requeststartFrom
- initial position of the results to returnpageSize
- maximum number of results to returnstartsWith
- does the value start with the supplied string?endsWith
- does the value end with the supplied string?ignoreCase
- should the search ignore case?requestBody
- status of the to do (null means current active)- Returns:
- list of to do beans or InvalidParameterException a parameter is invalid PropertyServerException the server is not available UserNotAuthorizedException the calling user is not authorized to issue the call
-
getToDosByType
public ToDosResponse getToDosByType(String serverName, String toDoType, int startFrom, int pageSize, ToDoStatusRequestBody requestBody) Retrieve the "To Dos" that match the type name and status.- Parameters:
serverName
- name of the server instances for this requesttoDoType
- type to search forstartFrom
- initial position of the results to returnpageSize
- maximum number of results to returnrequestBody
- status of the to do (null means current active)- Returns:
- list of to do beans or InvalidParameterException a parameter is invalid PropertyServerException the server is not available UserNotAuthorizedException the calling user is not authorized to issue the call
-