Class BitstreamCategoryRestController

java.lang.Object
org.dspace.app.rest.BitstreamCategoryRestController

@RestController @RequestMapping("/api/core/bitstreams") public class BitstreamCategoryRestController extends Object
REST controller for handling bulk updates to Bitstream resources.

This controller is responsible for handling requests to the bitstream category, which allows for updating multiple bitstream resources in a single operation.

Author:
Jens Vannerum (jens.vannerum@atmire.com)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<org.springframework.hateoas.RepresentationModel<?>>
    patch(javax.servlet.http.HttpServletRequest request, com.fasterxml.jackson.databind.JsonNode jsonNode)
    Handles PATCH requests to the bitstream category for bulk updates of bitstream resources.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BitstreamCategoryRestController

      public BitstreamCategoryRestController()
  • Method Details

    • patch

      @RequestMapping(method=PATCH) public org.springframework.http.ResponseEntity<org.springframework.hateoas.RepresentationModel<?>> patch(javax.servlet.http.HttpServletRequest request, @RequestBody(required=true) com.fasterxml.jackson.databind.JsonNode jsonNode) throws SQLException, AuthorizeException
      Handles PATCH requests to the bitstream category for bulk updates of bitstream resources.
      Parameters:
      request - the HTTP request object.
      jsonNode - the JSON representation of the bulk update operation, containing the updates to be applied.
      Returns:
      a ResponseEntity representing the HTTP response to be sent back to the client, in this case, a HTTP 204 No Content response since currently only a delete operation is supported.
      Throws:
      SQLException - if an error occurs while accessing the database.
      AuthorizeException - if the user is not authorized to perform the requested operation.