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
-
public class LicenseAddPatchOperation extends AddPatchOperation<String>
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 Constructor Description LicenseAddPatchOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<String[]>getArrayClassForEvaluation()protected Class<String>getClassForEvaluation()-
Methods inherited from class org.dspace.app.rest.submit.factory.impl.AddPatchOperation
perform
-
Methods inherited from class org.dspace.app.rest.submit.factory.impl.PatchOperation
evaluateArrayObject, evaluateSingleObject, getAbsolutePath
-
-
-
-
Method Detail
-
getArrayClassForEvaluation
protected Class<String[]> getArrayClassForEvaluation()
- Specified by:
getArrayClassForEvaluationin classPatchOperation<String>
-
getClassForEvaluation
protected Class<String> getClassForEvaluation()
- Specified by:
getClassForEvaluationin classPatchOperation<String>
-
-