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.voidorg.opencastproject.db.DBSessionorg.opencastproject.security.api.SecurityServiceorg.opencastproject.workspace.api.WorkspacevoidsetDBSessionFactory(org.opencastproject.db.DBSessionFactory dbSessionFactory) voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) OSGi callback to set the security service.voidsetWorkspace(org.opencastproject.workspace.api.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
public org.opencastproject.db.DBSession getDBSession()- Specified by:
getDBSessionin classAbstractOaiPmhDatabase
-
getSecurityService
public org.opencastproject.security.api.SecurityService getSecurityService()- Specified by:
getSecurityServicein classAbstractOaiPmhDatabase
-
getWorkspace
public org.opencastproject.workspace.api.Workspace 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
public void setDBSessionFactory(org.opencastproject.db.DBSessionFactory dbSessionFactory) -
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) OSGi callback to set the security service.- Parameters:
securityService- the securityService to set
-
setWorkspace
public void setWorkspace(org.opencastproject.workspace.api.Workspace workspace) OSGi callback to set the workspace.- Parameters:
workspace- the workspace to set
-