public final class UserUpdateService extends Object implements CollectionResourceProvider
Constructor and Description |
---|
UserUpdateService(ConnectionFactory connectionFactory,
ResourcePath identityService,
JsonPointer kbaPropertyField)
Construct a service to update the user's KBA info.
|
Modifier and Type | Method and Description |
---|---|
Promise<ResourceResponse,ResourceException> |
patchInstance(Context context,
String resourceId,
PatchRequest request)
Patches an existing resource within the collection. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionCollection, actionInstance, createInstance, deleteInstance, queryCollection, readInstance, updateInstance
@Inject public UserUpdateService(ConnectionFactory connectionFactory, ResourcePath identityService, JsonPointer kbaPropertyField)
connectionFactory
- a ConnectionFactory with access to the identityService route.identityService
- the route to the identity service used to patch the userkbaPropertyField
- the pointer where KBA is stored in the userpublic Promise<ResourceResponse,ResourceException> patchInstance(Context context, String resourceId, PatchRequest request)
CollectionResourceProvider
Patches
an existing resource within the collection.patchInstance
in interface CollectionResourceProvider
context
- The request server context.resourceId
- The ID of the targeted resource within the collection.request
- The patch request.Promise
containing the result of the operation.RequestHandler.handlePatch(Context, PatchRequest)
Copyright © 2010-2020, ForgeRock All Rights Reserved.