Package org.dspace.harvest
Class HarvestedItemServiceImpl
- java.lang.Object
-
- org.dspace.harvest.HarvestedItemServiceImpl
-
- All Implemented Interfaces:
HarvestedItemService
public class HarvestedItemServiceImpl extends Object implements 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 Modifier and Type Field Description protected HarvestedItemDAOharvestedItemDAO
-
Constructor Summary
Constructors Modifier Constructor Description protectedHarvestedItemServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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)
-
-
-
Field Detail
-
harvestedItemDAO
@Autowired(required=true) protected HarvestedItemDAO harvestedItemDAO
-
-
Method Detail
-
find
public HarvestedItem find(Context context, Item item) throws SQLException
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
public HarvestedItem create(Context context, Item item, String itemOAIid) throws SQLException
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
public void update(Context context, HarvestedItem harvestedItem) throws SQLException
- Specified by:
updatein interfaceHarvestedItemService- Throws:
SQLException
-
delete
public void delete(Context context, HarvestedItem harvestedItem) throws SQLException
- Specified by:
deletein interfaceHarvestedItemService- Throws:
SQLException
-
-