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
-
public class CCLicenseAddPatchOperation extends AddPatchOperation<String>
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":"http://creativecommons.org/licenses/by-nc-sa/3.0/us/"}]'
-
-
Constructor Summary
Constructors Constructor Description CCLicenseAddPatchOperation()
-
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>
-
-