Class CollectionHarvestSettingsController

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

@RestController @RequestMapping("/api/core/collections/{collectionUuid:[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}}/harvester") public class CollectionHarvestSettingsController extends Object
Rest controller that handles the harvest settings for collections
Author:
Jelle Pelgrims (jelle.pelgrims at atmire.com)
  • Constructor Details

    • CollectionHarvestSettingsController

      public CollectionHarvestSettingsController()
  • Method Details

    • get

      @PreAuthorize("hasPermission(#collectionUuid, \'COLLECTION\', \'WRITE\')") @RequestMapping(method=GET) public HarvestedCollectionResource get(@PathVariable UUID collectionUuid, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws SQLException
      GET endpoint that returns the harvest settings of the given collection
      Parameters:
      request - The request object
      response - The response object
      Returns:
      a HarvesterMetadataResource containing all available metadata formats
      Throws:
      SQLException
    • updateHarvestSettingsEndpoint

      @PreAuthorize("hasPermission(#collectionUuid, \'COLLECTION\', \'WRITE\')") @RequestMapping(method=PUT, consumes="application/json") public HarvestedCollectionResource updateHarvestSettingsEndpoint(@PathVariable UUID collectionUuid, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.http.HttpServletRequest request) throws SQLException
      PUT Endpoint for updating the settings of a collection.
      Parameters:
      collectionUuid - The collection whose settings should be changed
      response - The response object
      request - The request object
      Throws:
      SQLException