@Component public class ItemDiscoverableReplaceOperation extends ReplacePatchOperation<ItemRest,Boolean>
curl -X PATCH http://${dspace.url}/api/item/<:id-item> -H "
Content-Type: application/json" -d '[{ "op": "replace", "path": "
/discoverable", "value": true|false]'
| Constructor and Description |
|---|
ItemDiscoverableReplaceOperation() |
| Modifier and Type | Method and Description |
|---|---|
protected Class<Boolean[]> |
getArrayClassForEvaluation()
This method should return the typed array to be used in the
LateObjectEvaluator evaluation of json arrays.
|
protected Class<Boolean> |
getClassForEvaluation()
This method should return the object type to be used in the
LateObjectEvaluator evaluation of json objects.
|
ItemRest |
replace(ItemRest item,
Operation operation)
Executes the replace patch operation.
|
performpublic ItemRest replace(ItemRest item, Operation operation)
ReplacePatchOperationitem - the rest model.operation - the replace patch operation.protected Class<Boolean[]> getArrayClassForEvaluation()
PatchOperationgetArrayClassForEvaluation in class PatchOperation<ItemRest,Boolean>protected Class<Boolean> getClassForEvaluation()
PatchOperationgetClassForEvaluation in class PatchOperation<ItemRest,Boolean>Copyright © 2019 DuraSpace. All rights reserved.