Package org.dspace.harvest
Class HarvestedItemServiceImpl
java.lang.Object
org.dspace.harvest.HarvestedItemServiceImpl
- All Implemented Interfaces:
HarvestedItemService
Service implementation for the HarvestedItem object.
This class is responsible for all business logic calls for the HarvestedItem object and is autowired by spring.
This class should never be accessed directly.
- Author:
- kevinvandevelde at atmire.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
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)
-
Field Details
-
harvestedItemDAO
-
-
Constructor Details
-
HarvestedItemServiceImpl
protected HarvestedItemServiceImpl()
-
-
Method Details
-
find
Description copied from interface:HarvestedItemServiceFind the harvest parameters corresponding to the specified DSpace item- Specified by:
findin interfaceHarvestedItemService- 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
public Item getItemByOAIId(Context context, String itemOaiID, Collection collection) throws SQLException Description copied from interface:HarvestedItemServiceRetrieve a DSpace Item that corresponds to this particular combination of owning collection and OAI ID.- Specified by:
getItemByOAIIdin interfaceHarvestedItemService- 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
Description copied from interface:HarvestedItemServiceCreate a new harvested item row for a specified item id.- Specified by:
createin interfaceHarvestedItemService- 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
- Specified by:
updatein interfaceHarvestedItemService- Throws:
SQLException
-
delete
- Specified by:
deletein interfaceHarvestedItemService- Throws:
SQLException
-