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 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 item
        collection - 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 item
        itemOAIid - 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.