Package org.forgerock.api.annotations
Annotation Interface Patch
Indicates an CREST patch method on an annotated POJO. This annotation can be used on
methods in both singleton and collection resource request handlers.
The annotated method's return type must be:
- A
Promise<Resource, ? extends ResourceException>
promise.
- A
org.forgerock.json.resource.PatchRequest
to be given the request.
- A string parameter for the instance identifier.
- A
Context
to be given the context.
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionDescribe the standard operation details of this action. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe set of patch operations supported by this request handler.
-
Element Details
-
operationDescription
Operation operationDescriptionDescribe the standard operation details of this action.
-
-
-
operations
PatchOperation[] operationsThe set of patch operations supported by this request handler. By default, all are supported.- Default:
- {ADD, REMOVE, REPLACE, INCREMENT, MOVE, COPY, TRANSFORM}
-