Class ItemMetadataValueReplacePatchOperation
- java.lang.Object
-
- org.dspace.app.rest.submit.factory.impl.PatchOperation<T>
-
- org.dspace.app.rest.submit.factory.impl.ReplacePatchOperation<MetadataValueRest>
-
- org.dspace.app.rest.submit.factory.impl.MetadataValueReplacePatchOperation<Item>
-
- org.dspace.app.rest.submit.factory.impl.ItemMetadataValueReplacePatchOperation
-
public class ItemMetadataValueReplacePatchOperation extends MetadataValueReplacePatchOperation<Item>
Submission "replace" PATCH operation. The replace operation allows to replace existent information with new one. Attempt to use the replace operation to set not yet initialized information must return an error. Example:curl -X PATCH http://${dspace.server.url}/api/submission/workspaceitems/<:id-workspaceitem> -H " Content-Type: application/json" -d '[{ "op": "replace", "path": " /sections/traditionalpageone/dc.title/0", "value": {"value": "Add new title", "language": "en"}}]'It is also possible to change only a single attribute of theMetadataValueRest(except the "place"). Example:curl -X PATCH http://${dspace.server.url}/api/submission/workspaceitems/<:id-workspaceitem> -H " Content-Type: application/json" -d '[{ "op": "replace", "path": " /sections/traditionalpageone/dc.title/0/language", "value": "it"}]'- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description ItemMetadataValueReplacePatchOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ItemServicegetDSpaceObjectService()-
Methods inherited from class org.dspace.app.rest.submit.factory.impl.MetadataValueReplacePatchOperation
getArrayClassForEvaluation, getClassForEvaluation, replaceValue, setDeclaredField
-
Methods inherited from class org.dspace.app.rest.submit.factory.impl.ReplacePatchOperation
perform
-
Methods inherited from class org.dspace.app.rest.submit.factory.impl.PatchOperation
evaluateArrayObject, evaluateSingleObject, getAbsolutePath
-
-
-
-
Method Detail
-
getDSpaceObjectService
protected ItemService getDSpaceObjectService()
- Specified by:
getDSpaceObjectServicein classMetadataValueReplacePatchOperation<Item>
-
-