Class MyProfileResource
java.lang.Object
org.odpi.openmetadata.viewservices.myprofile.server.spring.MyProfileResource
@RestController
@RequestMapping("/servers/{serverName}/api/open-metadata/my-profile")
public class MyProfileResource
extends Object
The MyProfileResource provides part of the server-side implementation of the My Profile OMVS.
=
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMyProfile(String serverName, NewElementRequestBody requestBody) Add the profile for this user.getMyActors(String serverName, GetRequestBody requestBody) Return the list of actors linked to the user's profile.getMyProfile(String serverName) Return the profile for this user.getMyResources(String serverName, GetRequestBody requestBody) Return the list of assigned resources linked to the user's profile.getMyRoles(String serverName, GetRequestBody requestBody) Return the list of assigned roles linked to the user's profile.getMyUserIdentities(String serverName, GetRequestBody requestBody) Return the list of user identities linked to the user's profile.
-
Constructor Details
-
MyProfileResource
public MyProfileResource()Default constructor
-
-
Method Details
-
getMyProfile
@GetMapping(path="") public OpenMetadataRootElementResponse getMyProfile(@PathVariable String serverName) Return the profile for this user.- Parameters:
serverName- name of the server instances for this request- Returns:
- profile response object or InvalidParameterException the userId is null or invalid or PropertyServerException a problem retrieving information from the property server(s) or UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
getMyActors
@PostMapping(path="/actors") public OpenMetadataRootElementsResponse getMyActors(@PathVariable String serverName, @RequestBody(required=false) GetRequestBody requestBody) Return the list of actors linked to the user's profile.- Parameters:
serverName- name of the server instances for this request- Returns:
- profile response object or InvalidParameterException the userId is null or invalid or PropertyServerException a problem retrieving information from the property server(s) or UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
getMyUserIdentities
@PostMapping(path="/actors/user-identities") public OpenMetadataRootElementsResponse getMyUserIdentities(@PathVariable String serverName, @RequestBody(required=false) GetRequestBody requestBody) Return the list of user identities linked to the user's profile.- Parameters:
serverName- name of the server instances for this request- Returns:
- profile response object or InvalidParameterException the userId is null or invalid or PropertyServerException a problem retrieving information from the property server(s) or UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
getMyRoles
@PostMapping(path="/actors/assigned-roles") public OpenMetadataRootElementsResponse getMyRoles(@PathVariable String serverName, @RequestBody(required=false) GetRequestBody requestBody) Return the list of assigned roles linked to the user's profile.- Parameters:
serverName- name of the server instances for this request- Returns:
- profile response object or InvalidParameterException the userId is null or invalid or PropertyServerException a problem retrieving information from the property server(s) or UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
getMyResources
@PostMapping(path="/assigned-resources") public OpenMetadataRootElementsResponse getMyResources(@PathVariable String serverName, @RequestBody(required=false) GetRequestBody requestBody) Return the list of assigned resources linked to the user's profile.- Parameters:
serverName- name of the server instances for this request- Returns:
- profile response object or InvalidParameterException the userId is null or invalid or PropertyServerException a problem retrieving information from the property server(s) or UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
addMyProfile
@PostMapping(path="") public GUIDResponse addMyProfile(@PathVariable String serverName, @RequestBody(required=false) NewElementRequestBody requestBody) Add the profile for this user.- Parameters:
serverName- name of the server instances for this requestrequestBody- details of the user profile to add- Returns:
- profile response object or InvalidParameterException the userId is null or invalid or PropertyServerException a problem retrieving information from the property server(s) or UserNotAuthorizedException the requesting user is not authorized to issue this request.
-