Interface OaiPmhDatabase

All Known Implementing Classes:
AbstractOaiPmhDatabase, OaiPmhDatabaseImpl

public interface OaiPmhDatabase
API that defines persistent storage of OAI-PMH.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(String mediaPackageId, String repository)
    Marks a existing mediapackage as deleted
    Searches mediapackages from the OAI-PMH persistence storage
    void
    store(MediaPackage mediaPackage, String repository)
    Stores or updates a mediapackage from the OAI-PMH persistence
  • Method Details

    • store

      void store(MediaPackage mediaPackage, String repository) throws OaiPmhDatabaseException
      Stores or updates a mediapackage from the OAI-PMH persistence
      Parameters:
      mediaPackage - the mediapackage
      repository - the OAI-PMH repository ID
      Throws:
      OaiPmhDatabaseException - if there is a problem communicating with the underlying data store
    • delete

      void delete(String mediaPackageId, String repository) throws OaiPmhDatabaseException, NotFoundException
      Marks a existing mediapackage as deleted
      Parameters:
      mediaPackageId - the mediapackage id
      repository - the OAI-PMH repository ID
      Throws:
      NotFoundException - if the mediapackage does not exist
      OaiPmhDatabaseException - if there is a problem communicating with the underlying data store
    • search

      SearchResult search(Query q)
      Searches mediapackages from the OAI-PMH persistence storage
      Parameters:
      q - the query
      Returns:
      a search result