public class OAIHarvester extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OAIHarvester.HarvestingException
Exception class specifically assigned to recoverable errors that occur during harvesting.
|
static class |
OAIHarvester.HarvestScheduler
The class responsible for scheduling harvesting cycles are regular intervals.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
OAI_ADDRESS_ERROR |
static String |
OAI_DMD_ERROR |
static String |
OAI_ORE_ERROR |
static String |
OAI_SET_ERROR |
| Constructor and Description |
|---|
OAIHarvester(Context c,
DSpaceObject dso,
HarvestedCollection hc) |
| Modifier and Type | Method and Description |
|---|---|
static String |
oaiResolveNamespaceToPrefix(String oaiSource,
String MDNamespace)
Query the OAI-PMH server for its mapping of the supplied namespace and metadata prefix.
|
static void |
pauseScheduler()
Pause an active harvest scheduler.
|
static void |
resetScheduler() |
static void |
resumeScheduler()
Resume a paused harvest scheduler.
|
void |
runHarvest()
Performs a harvest cycle on this collection.
|
static void |
startNewScheduler()
Start harvest scheduler.
|
static void |
stopScheduler()
Stop an active harvest scheduler.
|
List<String> |
verifyOAIharvester()
Verify OAI settings for the current collection
|
static List<String> |
verifyOAIharvester(String oaiSource,
String oaiSetId,
String metaPrefix,
boolean testORE)
Verify the existence of an OAI server with the specified set and
supporting the provided metadata formats.
|
public static final String OAI_ADDRESS_ERROR
public static final String OAI_SET_ERROR
public static final String OAI_DMD_ERROR
public static final String OAI_ORE_ERROR
public OAIHarvester(Context c, DSpaceObject dso, HarvestedCollection hc) throws OAIHarvester.HarvestingException, SQLException
public void runHarvest()
throws SQLException,
IOException,
AuthorizeException
public static String oaiResolveNamespaceToPrefix(String oaiSource, String MDNamespace) throws IOException, ParserConfigurationException, SAXException, TransformerException, ConnectException
oaiSource - the address of the OAI-PMH providerMDNamespace - the namespace that we are trying to resolve to the metadataPrefixIOExceptionParserConfigurationExceptionSAXExceptionTransformerExceptionConnectExceptionpublic List<String> verifyOAIharvester()
public static List<String> verifyOAIharvester(String oaiSource, String oaiSetId, String metaPrefix, boolean testORE)
oaiSource - the address of the OAI-PMH provideroaiSetId - metaPrefix - testORE - whether the method should also check the PMH provider for ORE supportpublic static void startNewScheduler()
throws SQLException,
AuthorizeException
SQLExceptionAuthorizeExceptionpublic static void stopScheduler()
throws SQLException,
AuthorizeException
SQLExceptionAuthorizeExceptionpublic static void pauseScheduler()
throws SQLException,
AuthorizeException
SQLExceptionAuthorizeExceptionpublic static void resumeScheduler()
throws SQLException,
AuthorizeException
SQLExceptionAuthorizeExceptionpublic static void resetScheduler()
throws SQLException,
AuthorizeException,
IOException
Copyright © 2014 DuraSpace. All Rights Reserved.