public interface DocumentClassifier
DocumentClassifier
implementation runs on the server.
When implementing a document classifier, consider the following points:
QueueItem
and retried as often as set in the RetryCount property. CodeModule
object,
or you can specify a Java document classifier in the classpath of the application server where the Content Engine is running.
void classify(Document doc) throws EngineRuntimeException
Document
object passed to the method. Typically, this involves
parsing the content of the document and mapping metadata from the content to properties of the Content Engine class.
This method is executed by the server when both of the following events occur:
doc
parameter is checked in by calling its checkin
method with the autoClassify
parameter set to AUTO_CLASSIFY
.DocumentClassificationAction
object exists whose MimeType
property value is
identical to that of the MimeType
property of the checked-in document.doc
- A Document
object that specifies the document to auto-classify during check-in.EngineRuntimeException
© Copyright IBM Corporation 2006, 2015. All rights reserved.