Package org.forgerock.selfservice.core
Class UserUpdateService
- java.lang.Object
-
- org.forgerock.selfservice.core.UserUpdateService
-
- All Implemented Interfaces:
CollectionResourceProvider
public final class UserUpdateService extends Object implements CollectionResourceProvider
A RequestHandler that proxies user requests to update the user's KBA answers.- Since:
- 0.8.0
-
-
Constructor Summary
Constructors Constructor Description UserUpdateService(ConnectionFactory connectionFactory, SecurityAnswer securityAnswer, ResourcePath identityService, KbaConfig kbaConfig)
Construct a service to update the user's KBA info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Promise<ResourceResponse,ResourceException>
patchInstance(Context context, String resourceId, PatchRequest request)
Patches
an existing resource within the collection.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.forgerock.json.resource.CollectionResourceProvider
actionCollection, actionInstance, createInstance, deleteInstance, queryCollection, readInstance, updateInstance
-
-
-
-
Constructor Detail
-
UserUpdateService
@Inject public UserUpdateService(ConnectionFactory connectionFactory, SecurityAnswer securityAnswer, ResourcePath identityService, KbaConfig kbaConfig)
Construct a service to update the user's KBA info.- Parameters:
connectionFactory
- a ConnectionFactory with access to the identityService route.securityAnswer
- the helper class for security answersidentityService
- the route to the identity service used to patch the userkbaConfig
- the kbaConfig that contains questions and kbaPropertyName
-
-
Method Detail
-
patchInstance
public Promise<ResourceResponse,ResourceException> patchInstance(Context context, String resourceId, PatchRequest request)
Description copied from interface:CollectionResourceProvider
Patches
an existing resource within the collection.- Specified by:
patchInstance
in interfaceCollectionResourceProvider
- Parameters:
context
- The request server context.resourceId
- The ID of the targeted resource within the collection.request
- The patch request.- Returns:
- A
Promise
containing the result of the operation. - See Also:
RequestHandler.handlePatch(Context, PatchRequest)
-
-