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 org.opencastproject.db.DBSessionabstract org.opencastproject.security.api.SecurityServiceabstract org.opencastproject.workspace.api.Workspaceprotected booleanmatchSetDef(OaiPmhSetDefinition setDef, List<SearchResultElementItem> elements) Returns true if all set definition filters matches.Searches mediapackages from the OAI-PMH persistence storagevoidStores or updates a mediapackage from the OAI-PMH persistencevoidupdateEntity(OaiPmhEntity entity, org.opencastproject.mediapackage.MediaPackage mediaPackage, String repository)
-
Constructor Details
-
AbstractOaiPmhDatabase
public AbstractOaiPmhDatabase()
-
-
Method Details
-
getDBSession
public abstract org.opencastproject.db.DBSession getDBSession() -
getSecurityService
public abstract org.opencastproject.security.api.SecurityService getSecurityService() -
getWorkspace
public abstract org.opencastproject.workspace.api.Workspace getWorkspace() -
store
public void store(org.opencastproject.mediapackage.MediaPackage mediaPackage, String repository) throws OaiPmhDatabaseException 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
public void updateEntity(OaiPmhEntity entity, org.opencastproject.mediapackage.MediaPackage mediaPackage, String repository) -
delete
public void delete(String mediaPackageId, String repository) throws OaiPmhDatabaseException, org.opencastproject.util.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 storeorg.opencastproject.util.NotFoundException- 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
-