Interface OaiPmhDatabase
- All Known Implementing Classes:
AbstractOaiPmhDatabase,OaiPmhDatabaseImpl
public interface OaiPmhDatabase
API that defines persistent storage of OAI-PMH.
-
Method Summary
Modifier and TypeMethodDescriptionvoidMarks a existing mediapackage as deletedSearches mediapackages from the OAI-PMH persistence storagevoidStores or updates a mediapackage from the OAI-PMH persistence
-
Method Details
-
store
void store(org.opencastproject.mediapackage.MediaPackage mediaPackage, String repository) throws OaiPmhDatabaseException Stores or updates a mediapackage from the OAI-PMH persistence- Parameters:
mediaPackage- the mediapackagerepository- 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, org.opencastproject.util.NotFoundException Marks a existing mediapackage as deleted- Parameters:
mediaPackageId- the mediapackage idrepository- the OAI-PMH repository ID- Throws:
org.opencastproject.util.NotFoundException- if the mediapackage does not existOaiPmhDatabaseException- if there is a problem communicating with the underlying data store
-
search
Searches mediapackages from the OAI-PMH persistence storage- Parameters:
q- the query- Returns:
- a search result
-