Interface IFingerprintActivity
-
- All Known Subinterfaces:
IProcessActivity
- All Known Implementing Classes:
WorkerThread.ProcessActivity
public interface IFingerprintActivityThis interface abstracts from the activities that handle document fingerprinting and mime type acceptance.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsid
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckDateIndexable(java.util.Date date)Detect if a date is indexable or not.booleancheckDocumentIndexable(java.io.File localFile)Check whether a document is indexable by the currently specified output connector.booleancheckLengthIndexable(long length)Check whether a document of a specific length is indexable by the currently specified output connector.booleancheckMimeTypeIndexable(java.lang.String mimeType)Detect if a mime type is indexable or not.booleancheckURLIndexable(java.lang.String url)Pre-determine whether a document's URL is indexable by this connector.
-
-
-
Field Detail
-
_rcsid
static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkDateIndexable
boolean checkDateIndexable(java.util.Date date) throws ManifoldCFException, ServiceInterruptionDetect if a date is indexable or not. This method is used by participating repository connectors to pre-filter the number of unusable documents that will be passed to this output connector.- Parameters:
date- is the date of the document; may be null- Returns:
- true if a document with that date is indexable by this connector.
- Throws:
ManifoldCFExceptionServiceInterruption
-
checkMimeTypeIndexable
boolean checkMimeTypeIndexable(java.lang.String mimeType) throws ManifoldCFException, ServiceInterruptionDetect if a mime type is indexable or not. This method is used by participating repository connectors to pre-filter the number of unusable documents that will be passed to this output connector.- Parameters:
mimeType- is the mime type of the document.- Returns:
- true if the mime type is indexable by this connector.
- Throws:
ManifoldCFExceptionServiceInterruption
-
checkDocumentIndexable
boolean checkDocumentIndexable(java.io.File localFile) throws ManifoldCFException, ServiceInterruptionCheck whether a document is indexable by the currently specified output connector.- Parameters:
localFile- is the local copy of the file to check.- Returns:
- true if the document is indexable.
- Throws:
ManifoldCFExceptionServiceInterruption
-
checkLengthIndexable
boolean checkLengthIndexable(long length) throws ManifoldCFException, ServiceInterruptionCheck whether a document of a specific length is indexable by the currently specified output connector.- Parameters:
length- is the document length.- Returns:
- true if the document is indexable.
- Throws:
ManifoldCFExceptionServiceInterruption
-
checkURLIndexable
boolean checkURLIndexable(java.lang.String url) throws ManifoldCFException, ServiceInterruptionPre-determine whether a document's URL is indexable by this connector. This method is used by participating repository connectors to help filter out documents that are not worth indexing.- Parameters:
url- is the URL of the document.- Returns:
- true if the file is indexable.
- Throws:
ManifoldCFExceptionServiceInterruption
-
-