Class MyProfileResource
java.lang.Object
org.odpi.openmetadata.viewservices.myprofile.server.spring.MyProfileResource
@RestController
@RequestMapping("/servers/{serverName}/open-metadata/access-services/community-profile/users/{userId}")
public class MyProfileResource
extends Object
The MyProfileResource provides part of the server-side implementation of the Community Profile Open Metadata
Assess Service (OMAS). This interface provides access to an individual's personal profile and the
management of a special collection linked to their profile called my-assets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.viewservices.myprofile.rest.PersonalProfileResponsegetMyProfile(String serverName, String userId) Return the profile for this user.
-
Constructor Details
-
MyProfileResource
public MyProfileResource()Default constructor
-
-
Method Details
-
getMyProfile
@GetMapping(path="/my-profile") public org.odpi.openmetadata.viewservices.myprofile.rest.PersonalProfileResponse getMyProfile(@PathVariable String serverName, @PathVariable String userId) Return the profile for this user.- Parameters:
serverName- name of the server instances for this requestuserId- userId of the user making the request.- Returns:
- profile response object or InvalidParameterException the userId is null or invalid or NoProfileForUserException the user does not have a profile 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.
-