Class DefaultRepository
java.lang.Object
org.opencastproject.oaipmh.server.OaiPmhRepository
org.opencastproject.oaipmh.server.DefaultRepository
- All Implemented Interfaces:
org.osgi.service.cm.ManagedService
Factory for the default OAI-PMH repository that ships with each Opencast installation serving the
matterhorn metadata format.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGi callbackorg.opencastproject.oaipmh.persistence.OaiPmhDatabaseRepository ID.Return a list of available metadata providers.Display name of the OAI-PMH repository.intMaximum number of items returned by the list queries ListIdentifiers, ListRecords and ListSets.getSavedQuery(String resumptionToken) Get a saved query.saveQuery(ResumableQuery query) Save a query.voidsetPersistence(org.opencastproject.oaipmh.persistence.OaiPmhDatabase persistence) OSGi DIMethods inherited from class org.opencastproject.oaipmh.server.OaiPmhRepository
addItem, currentDate, getMetadataProvider, getMetadataProviders, granulate, selectVerb, updated
-
Constructor Details
-
DefaultRepository
public DefaultRepository()
-
-
Method Details
-
setPersistence
public void setPersistence(org.opencastproject.oaipmh.persistence.OaiPmhDatabase persistence) OSGi DI -
activate
public void activate(org.osgi.service.component.ComponentContext cc) OSGi callback -
getRepositoryTimeGranularity
- Specified by:
getRepositoryTimeGranularityin classOaiPmhRepository
-
getRepositoryName
Description copied from class:OaiPmhRepositoryDisplay name of the OAI-PMH repository.- Specified by:
getRepositoryNamein classOaiPmhRepository
-
getRepositoryId
Description copied from class:OaiPmhRepositoryRepository ID.- Specified by:
getRepositoryIdin classOaiPmhRepository
-
getPersistence
public org.opencastproject.oaipmh.persistence.OaiPmhDatabase getPersistence()- Specified by:
getPersistencein classOaiPmhRepository
-
getAdminEmail
- Specified by:
getAdminEmailin classOaiPmhRepository
-
saveQuery
Description copied from class:OaiPmhRepositorySave a query.- Specified by:
saveQueryin classOaiPmhRepository- Returns:
- a resumption token
-
getSavedQuery
Description copied from class:OaiPmhRepositoryGet a saved query.- Specified by:
getSavedQueryin classOaiPmhRepository
-
getResultLimit
public int getResultLimit()Description copied from class:OaiPmhRepositoryMaximum number of items returned by the list queries ListIdentifiers, ListRecords and ListSets.- Specified by:
getResultLimitin classOaiPmhRepository
-
getRepositoryMetadataProviders
Description copied from class:OaiPmhRepositoryReturn a list of available metadata providers. Please do not expose the default provider for the mandatory oai_dc format since this is automatically added when callingOaiPmhRepository.getMetadataProviders().- Specified by:
getRepositoryMetadataProvidersin classOaiPmhRepository- See Also:
-