Package org.dspace.app.rest
Class BitstreamBundleController
java.lang.Object
org.dspace.app.rest.BitstreamBundleController
@RestController
@RequestMapping("/api/core/bitstreams/{uuid:[0-9a-fxA-FX]{8}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{4}-[0-9a-fxA-FX]{12}}/bundle")
public class BitstreamBundleController
extends Object
Controller to manage bundle of bitstreams.
Endpoint: /api/core/bitstreams/{uuid}
This controller can:
- move bitstreams between bundles (POST /api/core/bitstreams/{uuid}/bundle (text/uri-list) -d link-to-new-bundle)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BitstreamBundleController
public BitstreamBundleController()
-
-
Method Details
-
move
@RequestMapping(method=PUT, consumes="text/uri-list") @PreAuthorize("hasPermission(#uuid, \'BITSTREAM\',\'WRITE\')") @PostAuthorize("returnObject != null") public BundleRest move(@PathVariable UUID uuid, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.http.HttpServletRequest request) throws SQLException, IOException, AuthorizeException This method moves the bitstream to the bundle corresponding the the link provided in the body of the put request- Parameters:
uuid- The UUID of the bitstream for which the bundle will be retrievedresponse- The response objectrequest- The request object- Returns:
- The wrapped resource containing the new bundle of the bitstream
- Throws:
SQLExceptionIOExceptionAuthorizeException
-