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
return: list of collection id's
|
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
return: list of collection id's
|
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) |
void |
update(Context context,
HarvestedCollection harvestedCollection) |
HarvestedCollection find(Context context, Collection collection) throws SQLException
SQLExceptionHarvestedCollection create(Context context, Collection collection) throws SQLException
SQLExceptionboolean isHarvestable(Context context, Collection collection) throws SQLException
SQLExceptionboolean isHarvestable(HarvestedCollection harvestedCollection) throws SQLException
SQLExceptionboolean isReady(Context context, Collection collection) throws SQLException
SQLExceptionboolean isReady(HarvestedCollection harvestedCollection) throws SQLException
SQLExceptionList<HarvestedCollection> findAll(Context context) throws SQLException
SQLExceptionList<HarvestedCollection> findReady(Context context) throws SQLException
SQLExceptionList<HarvestedCollection> findByStatus(Context context, int status) throws SQLException
context - status - see HarvestInstance.STATUS_...SQLExceptionHarvestedCollection findOldestHarvest(Context context) throws SQLException
SQLExceptionHarvestedCollection findNewestHarvest(Context context) throws SQLException
SQLExceptionvoid delete(Context context, HarvestedCollection harvestedCollection) throws SQLException
SQLExceptionvoid update(Context context, HarvestedCollection harvestedCollection) throws SQLException
SQLExceptionboolean exists(Context context) throws SQLException
SQLExceptionCopyright © 2016 DuraSpace. All Rights Reserved.