protected static class IncrementalIngester.OutputAddActivitiesWrapper extends IncrementalIngester.OutputRecordingActivity implements IOutputAddActivity
| Modifier and Type | Field and Description |
|---|---|
protected IOutputAddActivity |
addActivities |
activityProvider, outputConnectionName_rcsidCREATED_DIRECTORY, EXCEPTION, EXCLUDED_CONTENT, EXCLUDED_DATE, EXCLUDED_LENGTH, EXCLUDED_MIMETYPE, EXCLUDED_URL, HTTP_ERROR, IOEXCEPTION, UNKNOWN_SECURITY| Constructor and Description |
|---|
OutputAddActivitiesWrapper(IOutputAddActivity addActivities,
java.lang.String outputConnectionName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkDateIndexable(java.util.Date date)
Detect if a date is acceptable downstream or not.
|
boolean |
checkDocumentIndexable(java.io.File localFile)
Pre-determine whether a document (passed here as a File object) is acceptable downstream.
|
boolean |
checkLengthIndexable(long length)
Pre-determine whether a document's length is acceptable downstream.
|
boolean |
checkMimeTypeIndexable(java.lang.String mimeType)
Detect if a mime type is acceptable downstream or not.
|
boolean |
checkURLIndexable(java.lang.String url)
Pre-determine whether a document's URL is acceptable downstream.
|
void |
noDocument()
Send NO document via the pipeline to the next output connection.
|
java.lang.String |
qualifyAccessToken(java.lang.String authorityNameString,
java.lang.String accessToken)
Qualify an access token appropriately, to match access tokens as returned by mod_aa.
|
int |
sendDocument(java.lang.String documentURI,
RepositoryDocument document)
Send a document via the pipeline to the next output connection.
|
recordActivityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrecordActivityprotected final IOutputAddActivity addActivities
public OutputAddActivitiesWrapper(IOutputAddActivity addActivities, java.lang.String outputConnectionName)
public java.lang.String qualifyAccessToken(java.lang.String authorityNameString,
java.lang.String accessToken)
throws ManifoldCFException
qualifyAccessToken in interface IOutputQualifyActivityauthorityNameString - is the name of the authority to use to qualify the access token.accessToken - is the raw, repository access token.ManifoldCFExceptionpublic int sendDocument(java.lang.String documentURI,
RepositoryDocument document)
throws ManifoldCFException,
ServiceInterruption,
java.io.IOException
sendDocument in interface IOutputAddActivitydocumentURI - is the document's URI.document - is the document data to be processed (handed to the output data store).java.io.IOException - only if there's an IO error reading the data from the document.ManifoldCFExceptionServiceInterruptionpublic void noDocument()
throws ManifoldCFException,
ServiceInterruption
noDocument in interface IOutputAddActivityManifoldCFExceptionServiceInterruptionpublic boolean checkDateIndexable(java.util.Date date)
throws ManifoldCFException,
ServiceInterruption
checkDateIndexable in interface IOutputCheckActivitydate - is the mime type of the document.ManifoldCFExceptionServiceInterruptionpublic boolean checkMimeTypeIndexable(java.lang.String mimeType)
throws ManifoldCFException,
ServiceInterruption
checkMimeTypeIndexable in interface IOutputCheckActivitymimeType - is the mime type of the document.ManifoldCFExceptionServiceInterruptionpublic boolean checkDocumentIndexable(java.io.File localFile)
throws ManifoldCFException,
ServiceInterruption
checkDocumentIndexable in interface IOutputCheckActivitylocalFile - is the local file to check.ManifoldCFExceptionServiceInterruptionpublic boolean checkLengthIndexable(long length)
throws ManifoldCFException,
ServiceInterruption
checkLengthIndexable in interface IOutputCheckActivitylength - is the length of the document.ManifoldCFExceptionServiceInterruptionpublic boolean checkURLIndexable(java.lang.String url)
throws ManifoldCFException,
ServiceInterruption
checkURLIndexable in interface IOutputCheckActivityurl - is the URL of the document.ManifoldCFExceptionServiceInterruption