|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.harvest.OAIHarvester
public class OAIHarvester
This class handles OAI harvesting of externally located records into this repository.
| Nested Class Summary | |
|---|---|
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. |
| Field Summary | |
|---|---|
static String |
OAI_ADDRESS_ERROR
|
static String |
OAI_DMD_ERROR
|
static String |
OAI_ORE_ERROR
|
static String |
OAI_SET_ERROR
|
| Constructor Summary | |
|---|---|
OAIHarvester(Context c,
DSpaceObject dso,
HarvestedCollection hc)
|
|
| Method Summary | |
|---|---|
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 existance of an OAI server with the specified set and supporting the provided metadata formats. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public OAIHarvester(Context c,
DSpaceObject dso,
HarvestedCollection hc)
throws OAIHarvester.HarvestingException,
SQLException
OAIHarvester.HarvestingException
SQLException| Method Detail |
|---|
public void runHarvest()
throws SQLException,
IOException,
AuthorizeException
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 metadataPrefix
IOException
ParserConfigurationException
SAXException
TransformerException
ConnectExceptionpublic 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 support
public static void startNewScheduler()
throws SQLException,
AuthorizeException
SQLException
AuthorizeException
public static void stopScheduler()
throws SQLException,
AuthorizeException
SQLException
AuthorizeException
public static void pauseScheduler()
throws SQLException,
AuthorizeException
SQLException
AuthorizeException
public static void resumeScheduler()
throws SQLException,
AuthorizeException
SQLException
AuthorizeException
public static void resetScheduler()
throws SQLException,
AuthorizeException,
IOException
SQLException
AuthorizeException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||