Package org.dspace.app.rest.repository
Class HarvestedCollectionRestRepository
java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.repository.HarvestedCollectionRestRepository
@Component("core.harvestedcollections")
public class HarvestedCollectionRestRepository
extends AbstractDSpaceRestRepository
This is the repository responsible for managing the HarvestedCollection Rest object
- Author:
- Jelle Pelgrims (jelle.pelgrims at atmire.com)
-
Field Summary
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindOne(Collection collection) update(Context context, jakarta.servlet.http.HttpServletRequest request, Collection collection) Function to update the harvesting settings of a collectionMethods inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
getRequestService, obtainContext
-
Constructor Details
-
HarvestedCollectionRestRepository
public HarvestedCollectionRestRepository()
-
-
Method Details
-
findOne
- Throws:
SQLException
-
update
public HarvestedCollectionRest update(Context context, jakarta.servlet.http.HttpServletRequest request, Collection collection) throws SQLException Function to update the harvesting settings of a collection- Parameters:
context- The context objectrequest- The incoming put requestcollection- The collection whose settings should be changed- Returns:
- a harvestedCollection if a new harvestedCollection is created, otherwise null
- Throws:
SQLException
-