Package org.dspace.app.rest
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 ObjectRest controller that handles the harvest settings for collections- Author:
- Jelle Pelgrims (jelle.pelgrims at atmire.com)
-
-
Constructor Summary
Constructors Constructor Description CollectionHarvestSettingsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HarvestedCollectionResourceget(UUID collectionUuid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)GET endpoint that returns the harvest settings of the given collectionHarvestedCollectionResourceupdateHarvestSettingsEndpoint(UUID collectionUuid, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)PUT Endpoint for updating the settings of a collection.
-
-
-
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 SQLExceptionGET endpoint that returns the harvest settings of the given collection- Parameters:
request- The request objectresponse- 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 SQLExceptionPUT Endpoint for updating the settings of a collection.- Parameters:
collectionUuid- The collection whose settings should be changedresponse- The response objectrequest- The request object- Throws:
SQLException
-
-