@Component public class EPersonLoginReplaceOperation extends ReplacePatchOperation<EPersonRest,Boolean> implements ResourcePatchOperation<EPersonRest>
curl -X PATCH http://${dspace.url}/api/epersons/eperson/<:id-eperson> -H "
Content-Type: application/json" -d '[{ "op": "replace", "path": "
/canLogin", "value": true|false]'
| Constructor and Description |
|---|
EPersonLoginReplaceOperation() |
| 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.
|
EPersonRest |
replace(EPersonRest eperson,
Operation operation)
Executes the replace patch operation.
|
performclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitperformpublic EPersonRest replace(EPersonRest eperson, Operation operation)
ReplacePatchOperationeperson - the rest model.operation - the replace patch operation.protected Class<Boolean[]> getArrayClassForEvaluation()
PatchOperationgetArrayClassForEvaluation in class PatchOperation<EPersonRest,Boolean>protected Class<Boolean> getClassForEvaluation()
PatchOperationgetClassForEvaluation in class PatchOperation<EPersonRest,Boolean>Copyright © 2019 DuraSpace. All rights reserved.