Class AbstractOaiPmhDatabase
java.lang.Object
org.opencastproject.oaipmh.persistence.impl.AbstractOaiPmhDatabase
- All Implemented Interfaces:
OaiPmhDatabase
- Direct Known Subclasses:
OaiPmhDatabaseImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMarks a existing mediapackage as deletedabstract DBSessionabstract SecurityServiceabstract Workspaceprotected booleanmatchSetDef(OaiPmhSetDefinition setDef, List<SearchResultElementItem> elements) Returns true if all set definition filters matches.Searches mediapackages from the OAI-PMH persistence storagevoidstore(MediaPackage mediaPackage, String repository) Stores or updates a mediapackage from the OAI-PMH persistencevoidupdateEntity(OaiPmhEntity entity, MediaPackage mediaPackage, String repository)
-
Constructor Details
-
AbstractOaiPmhDatabase
public AbstractOaiPmhDatabase()
-
-
Method Details
-
getDBSession
-
getSecurityService
-
getWorkspace
-
store
Description copied from interface:OaiPmhDatabaseStores or updates a mediapackage from the OAI-PMH persistence- Specified by:
storein interfaceOaiPmhDatabase- Parameters:
mediaPackage- the mediapackagerepository- the OAI-PMH repository ID- Throws:
OaiPmhDatabaseException- if there is a problem communicating with the underlying data store
-
updateEntity
-
delete
public void delete(String mediaPackageId, String repository) throws OaiPmhDatabaseException, NotFoundException Description copied from interface:OaiPmhDatabaseMarks a existing mediapackage as deleted- Specified by:
deletein interfaceOaiPmhDatabase- Parameters:
mediaPackageId- the mediapackage idrepository- the OAI-PMH repository ID- Throws:
OaiPmhDatabaseException- if there is a problem communicating with the underlying data storeNotFoundException- if the mediapackage does not exist
-
search
Description copied from interface:OaiPmhDatabaseSearches mediapackages from the OAI-PMH persistence storage- Specified by:
searchin interfaceOaiPmhDatabase- Parameters:
query- the query- Returns:
- a search result
-
matchSetDef
Returns true if all set definition filters matches.- Parameters:
setDef- set definition to testelements- media package elements to test- Returns:
- returns true if all set definition filters matches, otherwise false
-