Package org.dspace.harvest.service
Interface HarvestedItemService
-
- All Known Implementing Classes:
HarvestedItemServiceImpl
public interface HarvestedItemServiceService interface class for the HarvestedItem object. The implementation of this class is responsible for all business logic calls for the HarvestedItem object and is autowired by spring- Author:
- kevinvandevelde at atmire.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HarvestedItemcreate(Context context, Item item, String itemOAIid)Create a new harvested item row for a specified item id.voiddelete(Context context, HarvestedItem harvestedItem)HarvestedItemfind(Context context, Item item)Find the harvest parameters corresponding to the specified DSpace itemItemgetItemByOAIId(Context context, String itemOaiID, Collection collection)Retrieve a DSpace Item that corresponds to this particular combination of owning collection and OAI ID.voidupdate(Context context, HarvestedItem harvestedItem)
-
-
-
Method Detail
-
find
HarvestedItem find(Context context, Item item) throws SQLException
Find the harvest parameters corresponding to the specified DSpace item- Parameters:
context- The relevant DSpace Context.item- target item- Returns:
- a HarvestedItem object corresponding to this item, null if not found.
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
getItemByOAIId
Item getItemByOAIId(Context context, String itemOaiID, Collection collection) throws SQLException
Retrieve a DSpace Item that corresponds to this particular combination of owning collection and OAI ID.- Parameters:
context- The relevant DSpace Context.itemOaiID- the string used by the OAI-PMH provider to identify the itemcollection- the local collection that the item should be found in- Returns:
- DSpace Item or null if no item was found
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
create
HarvestedItem create(Context context, Item item, String itemOAIid) throws SQLException
Create a new harvested item row for a specified item id.- Parameters:
context- The relevant DSpace Context.item- target itemitemOAIid- the string used by the OAI-PMH provider to identify the item- Returns:
- a new HarvestedItem object
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
update
void update(Context context, HarvestedItem harvestedItem) throws SQLException
- Throws:
SQLException
-
delete
void delete(Context context, HarvestedItem harvestedItem) throws SQLException
- Throws:
SQLException
-
-