Package org.dspace.harvest.service
Interface HarvestedItemService
- All Known Implementing Classes:
HarvestedItemServiceImpl
public interface HarvestedItemService
Service 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
Modifier and TypeMethodDescriptionCreate a new harvested item row for a specified item id.voiddelete(Context context, HarvestedItem harvestedItem) Find the harvest parameters corresponding to the specified DSpace itemgetItemByOAIId(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 Details
-
find
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
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
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
- Throws:
SQLException
-
delete
- Throws:
SQLException
-