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.collections") public class HarvestedCollectionRestRepository extends AbstractDSpaceRestRepositoryThis 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 Constructor Description HarvestedCollectionRestRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HarvestedCollectionRestfindOne(org.dspace.content.Collection collection)HarvestedCollectionRestupdate(org.dspace.core.Context context, javax.servlet.http.HttpServletRequest request, org.dspace.content.Collection collection)Function to update the harvesting settings of a collection-
Methods inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
getRequestService, obtainContext
-
-
-
-
Method Detail
-
findOne
public HarvestedCollectionRest findOne(org.dspace.content.Collection collection) throws SQLException
- Throws:
SQLException
-
update
public HarvestedCollectionRest update(org.dspace.core.Context context, javax.servlet.http.HttpServletRequest request, org.dspace.content.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
-
-