Class CrestUserProfileService
java.lang.Object
org.forgerock.openig.tools.userprofile.CrestUserProfileService
- All Implemented Interfaces:
 UserProfileService
The 
CrestUserProfileService is responsible for interactions with AM users endpoint
 using resource version 3.0; since AM v13.- 
Constructor Summary
ConstructorsConstructorDescriptionCrestUserProfileService(RequestHandler requestHandler, Set<String> profileAttributes) Creates a newCrestUserProfileServicewhich is responsible for interactions with AM users endpoint. - 
Method Summary
Modifier and TypeMethodDescriptiongetUserProfile(Context context, String username) Returns a promise that will be completed with anUserProfileor with anUserProfileExceptionin case of errors. 
- 
Constructor Details
- 
CrestUserProfileService
Creates a newCrestUserProfileServicewhich is responsible for interactions with AM users endpoint.- Parameters:
 requestHandler- The requestHandler used when interacting with AM users endpoint.profileAttributes- The profile attributes to request.
 
 - 
 - 
Method Details
- 
getUserProfile
Description copied from interface:UserProfileServiceReturns a promise that will be completed with anUserProfileor with anUserProfileExceptionin case of errors.- Specified by:
 getUserProfilein interfaceUserProfileService- Parameters:
 context- The request context.username- The username that identifies the user to retrieve the profile attributes for.- Returns:
 - a promise that will be completed with 
UserProfileor with anResourceExceptionin case of errors. 
 
 -