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

      • CollectionHarvestSettingsController

        public CollectionHarvestSettingsController()
    • Method Detail

      • get

        @PreAuthorize("hasPermission(#collectionUuid, \'COLLECTION\', \'WRITE\')")
        @RequestMapping(method=GET)
        public HarvestedCollectionResource get​(@PathVariable
                                               UUID collectionUuid,
                                               javax.servlet.http.HttpServletRequest request,
                                               javax.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,
                                                                         javax.servlet.http.HttpServletResponse response,
                                                                         javax.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