Class ItemMetadataValueMovePatchOperation
- java.lang.Object
-
- org.dspace.app.rest.submit.factory.impl.PatchOperation<T>
-
- org.dspace.app.rest.submit.factory.impl.MovePatchOperation<MetadataValueRest>
-
- org.dspace.app.rest.submit.factory.impl.MetadataValueMovePatchOperation<Item>
-
- org.dspace.app.rest.submit.factory.impl.ItemMetadataValueMovePatchOperation
-
public class ItemMetadataValueMovePatchOperation extends MetadataValueMovePatchOperation<Item>
Submission "move" PATCH operation. It is possible to rearrange the metadata values using the move operation. For instance to put the 3rd author as 1st author you need to run:curl -X PATCH http://${dspace.server.url}/api/submission/workspaceitems/<:id-workspaceitem> -H " Content-Type: application/json" -d '[{ "op": "move", "from": " /sections/traditionalpageone/dc.contributor.author/2", "path": " /sections/traditionalpageone/dc.contributor.author/0"}]'- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description ItemMetadataValueMovePatchOperation()
-
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.MetadataValueMovePatchOperation
getArrayClassForEvaluation, getClassForEvaluation, moveValue
-
Methods inherited from class org.dspace.app.rest.submit.factory.impl.MovePatchOperation
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 classMetadataValueMovePatchOperation<Item>
-
-