public class HarvestedItemServiceImpl extends Object implements HarvestedItemService
| Modifier and Type | Field and Description |
|---|---|
protected HarvestedItemDAO |
harvestedItemDAO |
| Modifier | Constructor and Description |
|---|---|
protected |
HarvestedItemServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
HarvestedItem |
create(Context context,
Item item,
String itemOAIid)
Create a new harvested item row for a specified item id.
|
void |
delete(Context context,
HarvestedItem harvestedItem) |
HarvestedItem |
find(Context context,
Item item)
Find the harvest parameters corresponding to the specified DSpace item
|
Item |
getItemByOAIId(Context context,
String itemOaiID,
Collection collection)
Retrieve a DSpace Item that corresponds to this particular combination of owning collection and OAI ID.
|
void |
update(Context context,
HarvestedItem harvestedItem) |
@Autowired(required=true) protected HarvestedItemDAO harvestedItemDAO
public HarvestedItem find(Context context, Item item) throws SQLException
HarvestedItemServicefind in interface HarvestedItemServicecontext - The relevant DSpace Context.item - target itemSQLException - An exception that provides information on a database access error or other errors.public Item getItemByOAIId(Context context, String itemOaiID, Collection collection) throws SQLException
HarvestedItemServicegetItemByOAIId in interface HarvestedItemServicecontext - 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 inSQLException - An exception that provides information on a database access error or other errors.public HarvestedItem create(Context context, Item item, String itemOAIid) throws SQLException
HarvestedItemServicecreate in interface HarvestedItemServicecontext - The relevant DSpace Context.item - target itemitemOAIid - the string used by the OAI-PMH provider to identify the itemSQLException - An exception that provides information on a database access error or other errors.public void update(Context context, HarvestedItem harvestedItem) throws SQLException
update in interface HarvestedItemServiceSQLExceptionpublic void delete(Context context, HarvestedItem harvestedItem) throws SQLException
delete in interface HarvestedItemServiceSQLExceptionCopyright © 2019 DuraSpace. All rights reserved.