Class CCLicenseAddPatchOperation
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.CCLicenseAddPatchOperation
Submission "add" PATCH operation
To add or update the Creative Commons License of a workspace item.
When the item already has a Creative Commons License, the license will be replaced with a new one.
Example:
curl -X PATCH http://${dspace.server.url}/api/submission/workspaceitems/31599 -H "Content-Type:
application/json" -d '[{ "op": "add", "path": "/sections/cclicense/uri",
"value":"https://creativecommons.org/licenses/by-nc-sa/4.0/us/"}]'
-
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
-
CCLicenseAddPatchOperation
public CCLicenseAddPatchOperation()
-
-
Method Details
-
getArrayClassForEvaluation
- Specified by:
getArrayClassForEvaluationin classPatchOperation<String>
-
getClassForEvaluation
- Specified by:
getClassForEvaluationin classPatchOperation<String>
-