Interface IFingerprintActivity
-
- All Known Subinterfaces:
IProcessActivity
- All Known Implementing Classes:
WorkerThread.ProcessActivity
public interface IFingerprintActivity
This 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 boolean
checkDateIndexable(java.util.Date date)
Detect if a date is indexable or not.boolean
checkDocumentIndexable(java.io.File localFile)
Check whether a document is indexable by the currently specified output connector.boolean
checkLengthIndexable(long length)
Check whether a document of a specific length is indexable by the currently specified output connector.boolean
checkMimeTypeIndexable(java.lang.String mimeType)
Detect if a mime type is indexable or not.boolean
checkURLIndexable(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, ServiceInterruption
Detect 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:
ManifoldCFException
ServiceInterruption
-
checkMimeTypeIndexable
boolean checkMimeTypeIndexable(java.lang.String mimeType) throws ManifoldCFException, ServiceInterruption
Detect 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:
ManifoldCFException
ServiceInterruption
-
checkDocumentIndexable
boolean checkDocumentIndexable(java.io.File localFile) throws ManifoldCFException, ServiceInterruption
Check 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:
ManifoldCFException
ServiceInterruption
-
checkLengthIndexable
boolean checkLengthIndexable(long length) throws ManifoldCFException, ServiceInterruption
Check 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:
ManifoldCFException
ServiceInterruption
-
checkURLIndexable
boolean checkURLIndexable(java.lang.String url) throws ManifoldCFException, ServiceInterruption
Pre-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:
ManifoldCFException
ServiceInterruption
-
-