Class OaiPmhDatabaseImpl
java.lang.Object
org.opencastproject.oaipmh.persistence.impl.AbstractOaiPmhDatabase
org.opencastproject.oaipmh.persistence.impl.OaiPmhDatabaseImpl
- All Implemented Interfaces:
OaiPmhDatabase
Implements
OaiPmhDatabase. Defines permanent storage for OAI-PMH.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) CreatesEntityManagerFactoryusing persistence provider and properties passed via OSGi.voidvoidsetDBSessionFactory(DBSessionFactory dbSessionFactory) voidsetSecurityService(SecurityService securityService) OSGi callback to set the security service.voidsetWorkspace(Workspace workspace) OSGi callback to set the workspace.Methods inherited from class org.opencastproject.oaipmh.persistence.impl.AbstractOaiPmhDatabase
delete, matchSetDef, search, store, updateEntity
-
Field Details
-
PERSISTENCE_UNIT_NAME
- See Also:
-
-
Constructor Details
-
OaiPmhDatabaseImpl
public OaiPmhDatabaseImpl()
-
-
Method Details
-
getDBSession
- Specified by:
getDBSessionin classAbstractOaiPmhDatabase
-
getSecurityService
- Specified by:
getSecurityServicein classAbstractOaiPmhDatabase
-
getWorkspace
- Specified by:
getWorkspacein classAbstractOaiPmhDatabase
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) CreatesEntityManagerFactoryusing persistence provider and properties passed via OSGi.- Parameters:
cc-
-
deactivate
public void deactivate() -
setDBSessionFactory
-
setSecurityService
OSGi callback to set the security service.- Parameters:
securityService- the securityService to set
-
setWorkspace
OSGi callback to set the workspace.- Parameters:
workspace- the workspace to set
-