public abstract class AbstractResourcePatch<R extends RestModel> extends Object
| Constructor and Description |
|---|
AbstractResourcePatch() |
| Modifier and Type | Method and Description |
|---|---|
protected R |
add(R restModel,
Operation operation) |
protected R |
copy(R restModel,
Operation operation) |
protected R |
move(R restModel,
Operation operation) |
R |
patch(R restModel,
List<Operation> operations)
Handles the patch operations.
|
protected R |
remove(R restModel,
Operation operation) |
protected R |
replace(R restModel,
Operation operation) |
public R patch(R restModel, List<Operation> operations)
restModel - the rest resource to patchoperations - list of patch operationsUnprocessableEntityExceptionPatchBadRequestExceptionprotected R add(R restModel, Operation operation) throws UnprocessableEntityException, PatchBadRequestException
protected R replace(R restModel, Operation operation) throws UnprocessableEntityException, PatchBadRequestException
protected R remove(R restModel, Operation operation) throws UnprocessableEntityException, PatchBadRequestException
protected R copy(R restModel, Operation operation) throws UnprocessableEntityException, PatchBadRequestException
protected R move(R restModel, Operation operation) throws UnprocessableEntityException, PatchBadRequestException
Copyright © 2019 DuraSpace. All rights reserved.