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 ObjectController 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 Constructor Description BitstreamBundleController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BundleRestmove(UUID uuid, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)This method moves the bitstream to the bundle corresponding the the link provided in the body of the put request
-
-
-
Method Detail
-
move
@RequestMapping(method=PUT, consumes="text/uri-list") @PreAuthorize("hasPermission(#uuid, \'BITSTREAM\',\'WRITE\')") @PostAuthorize("returnObject != null") public BundleRest move(@PathVariable UUID uuid, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws SQLException, IOException, AuthorizeExceptionThis 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
-
-