Class BitstreamRemoveOperation


  • @Component
    public class BitstreamRemoveOperation
    extends PatchOperation<Bitstream>
    A PATCH operation for removing bitstreams in bulk from the repository. Example: curl -X PATCH http://${dspace.server.url}/api/core/bitstreams -H "Content-Type: application/json" -d '[ {"op": "remove", "path": "/bitstreams/${bitstream1UUID}"}, {"op": "remove", "path": "/bitstreams/${bitstream2UUID}"}, {"op": "remove", "path": "/bitstreams/${bitstream3UUID}"} ]'
    Author:
    Jens Vannerum (jens.vannerum@atmire.com)
    • Constructor Detail

      • BitstreamRemoveOperation

        public BitstreamRemoveOperation()
    • Method Detail

      • supports

        public boolean supports​(Object objectToMatch,
                                Operation operation)
        Description copied from class: PatchOperation
        Determines whether or not this Patch Operation can do this patch (Object of operation and path gets checked)
        Specified by:
        supports in class PatchOperation<Bitstream>
        Parameters:
        objectToMatch - Object whose class must be instance of type object for which this PatchOperation was created
        operation - Operation of the patch, should match this type of Patch Operation
        Returns:
        True if this PatchOperation class can do the patch for this given dso type and Path