Class 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 Detail

      • BitstreamBundleController

        public BitstreamBundleController()
    • 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,
                               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 retrieved
        response - The response object
        request - The request object
        Returns:
        The wrapped resource containing the new bundle of the bitstream
        Throws:
        SQLException
        IOException
        AuthorizeException