Class LicenseAddPatchOperation
java.lang.Object
org.dspace.app.rest.submit.factory.impl.PatchOperation<T>
org.dspace.app.rest.submit.factory.impl.AddPatchOperation<String>
org.dspace.app.rest.submit.factory.impl.LicenseAddPatchOperation
Submission "add" PATCH operation
To accept/reject the license.
Example:
curl -X PATCH http://${dspace.server.url}/api/submission/workspaceitems/31599 -H "Content-Type:
application/json" -d '[{ "op": "add", "path": "/sections/license/granted", "value":"true"}]'
Please note that according to the JSON Patch specification RFC6902 a
subsequent add operation on the "granted" path will have the effect to
replace the previous granted license with a new one.- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.dspace.app.rest.submit.factory.impl.AddPatchOperation
performMethods inherited from class org.dspace.app.rest.submit.factory.impl.PatchOperation
evaluateArrayObject, evaluateSingleObject, getAbsolutePath, getStepId
-
Constructor Details
-
LicenseAddPatchOperation
public LicenseAddPatchOperation()
-
-
Method Details
-
getArrayClassForEvaluation
- Specified by:
getArrayClassForEvaluationin classPatchOperation<String>
-
getClassForEvaluation
- Specified by:
getClassForEvaluationin classPatchOperation<String>
-