public interface HarvestedCollectionService
| Modifier and Type | Method and Description |
|---|---|
HarvestedCollection |
create(Context context,
Collection collection)
Create a new harvest instance row for a specified collection.
|
void |
delete(Context context,
HarvestedCollection harvestedCollection) |
boolean |
exists(Context context) |
HarvestedCollection |
find(Context context,
Collection collection)
Find the harvest settings corresponding to this collection
|
List<HarvestedCollection> |
findAll(Context context)
Find all collections that are set up for harvesting
|
List<HarvestedCollection> |
findByStatus(Context context,
int status)
Find all collections with the specified status flag.
|
HarvestedCollection |
findNewestHarvest(Context context)
Find the collection that was harvested most recently.
|
HarvestedCollection |
findOldestHarvest(Context context)
Find the collection that was harvested the longest time ago.
|
List<HarvestedCollection> |
findReady(Context context)
Find all collections that are ready for harvesting
|
boolean |
isHarvestable(Context context,
Collection collection)
Returns whether the specified collection is harvestable, i.e.
|
boolean |
isHarvestable(HarvestedCollection harvestedCollection)
Returns whether this harvest instance is actually harvestable, i.e.
|
boolean |
isReady(Context context,
Collection collection)
Returns whether the specified collection is ready for immediate harvest.
|
boolean |
isReady(HarvestedCollection harvestedCollection)
Returns whether the specified collection is ready for immediate harvest.
|
void |
update(Context context,
HarvestedCollection harvestedCollection) |
HarvestedCollection find(Context context, Collection collection) throws SQLException
context - The relevant DSpace Context.collection - target collectionSQLException - if database errorHarvestedCollection create(Context context, Collection collection) throws SQLException
context - The relevant DSpace Context.collection - target collectionSQLException - if database errorboolean isHarvestable(Context context, Collection collection) throws SQLException
context - The relevant DSpace Context.collection - target collectionSQLException - if database errorboolean isHarvestable(HarvestedCollection harvestedCollection) throws SQLException
harvestedCollection - collection to be harvestedSQLException - if database errorboolean isReady(Context context, Collection collection) throws SQLException
context - The relevant DSpace Context.collection - collection to be harvestedSQLException - if database errorboolean isReady(HarvestedCollection harvestedCollection) throws SQLException
harvestedCollection - collection to be harvestedSQLException - if database errorList<HarvestedCollection> findAll(Context context) throws SQLException
context - The relevant DSpace Context.SQLException - if database errorList<HarvestedCollection> findReady(Context context) throws SQLException
context - The relevant DSpace Context.SQLException - if database errorList<HarvestedCollection> findByStatus(Context context, int status) throws SQLException
context - The relevant DSpace Context.status - see HarvestInstance.STATUS_...SQLException - if database errorHarvestedCollection findOldestHarvest(Context context) throws SQLException
context - The relevant DSpace Context.SQLException - if database errorHarvestedCollection findNewestHarvest(Context context) throws SQLException
context - The relevant DSpace Context.SQLException - if database errorvoid delete(Context context, HarvestedCollection harvestedCollection) throws SQLException
SQLExceptionvoid update(Context context, HarvestedCollection harvestedCollection) throws SQLException
SQLExceptionboolean exists(Context context) throws SQLException
SQLExceptionCopyright © 2019 DuraSpace. All rights reserved.