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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateAction(String serverName, ActionRequestBody requestBody) Create a new to do action and link it to the supplied role and targets (if applicable).deleteAction(String serverName, String actionGUID, DeleteElementRequestBody requestBody) Delete an existing action.findActions(String serverName, ActivityStatusSearchString requestBody) Retrieve the "To Dos" that match the search string.getActionByGUID(String serverName, String actionGUID) Retrieve a action by unique identifier.getActionsByCategory(String serverName, ActivityStatusFilterRequestBody requestBody) Retrieve the "To Dos" that match the category name and status.getActionsForActionTarget(String serverName, String elementGUID, ActivityStatusRequestBody requestBody) Retrieve the "To Dos" that are chained off of an action target element.getActionsForSponsor(String serverName, String elementGUID, ActivityStatusRequestBody requestBody) Retrieve the "To Dos" that are chained off of a sponsoring element.getAssignedActions(String serverName, String actorGUID, ActivityStatusRequestBody requestBody) Retrieve the "To Dos" for a particular actor.getMyProfile(String serverName) Return the profile for this user.reassignAction(String serverName, String actionGUID, String actorGUID, UpdateRelationshipRequestBody requestBody) Assign an action to a new actor.updateAction(String serverName, String actionGUID, UpdateElementRequestBody requestBody) Update the properties associated with a "To Do".updateActionTargetProperties(String serverName, String actionTargetGUID, UpdateRelationshipRequestBody requestBody) Update the properties associated with an Action Target.Methods inherited from class org.odpi.openmetadata.tokencontroller.TokenControllergetUser
- 
Constructor Details- 
MyProfileRESTServicespublic MyProfileRESTServices()Default constructor
 
- 
- 
Method Details- 
getMyProfileReturn 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.
 
- 
createActionCreate 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 request
- requestBody- 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
 
- 
updateActionpublic VoidResponse updateAction(String serverName, String actionGUID, UpdateElementRequestBody requestBody) Update the properties associated with a "To Do".- Parameters:
- serverName- name of the server instances for this request
- actionGUID- unique identifier of the to do
- requestBody- 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
 
- 
updateActionTargetPropertiespublic VoidResponse updateActionTargetProperties(String serverName, String actionTargetGUID, UpdateRelationshipRequestBody requestBody) Update the properties associated with an Action Target.- Parameters:
- serverName- name of the server instances for this request
- actionTargetGUID- unique identifier of the action target relationship
- requestBody- 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
 
- 
reassignActionpublic VoidResponse reassignAction(String serverName, String actionGUID, String actorGUID, UpdateRelationshipRequestBody requestBody) Assign an action to a new actor.- Parameters:
- serverName- name of the server instances for this request
- actionGUID- unique identifier of the to do
- actorGUID- actor to assign the action to
- requestBody- 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
 
- 
deleteActionpublic VoidResponse deleteAction(String serverName, String actionGUID, DeleteElementRequestBody requestBody) Delete an existing action.- Parameters:
- serverName- name of the server instances for this request
- actionGUID- unique identifier of the to do
- requestBody- 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
 
- 
getActionByGUIDRetrieve a action by unique identifier.- Parameters:
- serverName- name of the server instances for this request
- actionGUID- 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
 
- 
getActionsForActionTargetpublic OpenMetadataRootElementsResponse getActionsForActionTarget(String serverName, String elementGUID, ActivityStatusRequestBody requestBody) Retrieve the "To Dos" that are chained off of an action target element.- Parameters:
- serverName- name of the server instances for this request
- elementGUID- unique identifier of the element to start with
- 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
 
- 
getActionsForSponsorpublic OpenMetadataRootElementsResponse getActionsForSponsor(String serverName, String elementGUID, ActivityStatusRequestBody requestBody) Retrieve the "To Dos" that are chained off of a sponsoring element.- Parameters:
- serverName- name of the server instances for this request
- elementGUID- unique identifier of the element to start with
- 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
 
- 
getAssignedActionspublic OpenMetadataRootElementsResponse getAssignedActions(String serverName, String actorGUID, ActivityStatusRequestBody requestBody) Retrieve the "To Dos" for a particular actor.- Parameters:
- serverName- name of the server instances for this request
- actorGUID- unique identifier of the role
- 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
 
- 
findActionspublic OpenMetadataRootElementsResponse findActions(String serverName, ActivityStatusSearchString requestBody) Retrieve the "To Dos" that match the search string.- Parameters:
- serverName- name of the server instances for this request
- 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
 
- 
getActionsByCategorypublic OpenMetadataRootElementsResponse getActionsByCategory(String serverName, ActivityStatusFilterRequestBody requestBody) Retrieve the "To Dos" that match the category name and status.- Parameters:
- serverName- name of the server instances for this request
- 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
 
 
-