public final class TextExtractionHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static ExtractionCheckStatus |
checkExtractionByFilter(boolean redoExtraction,
RepositoryFileFilter filter,
Writer statusOut)
Triggers the process of checking for files (by filter), where extraction is possible.
|
static ExtractionCheckStatus |
checkMissingExtraction(boolean fixMissingExtraction,
Writer statusOut)
Triggers the process of checking for missing text extractions check.
|
static void |
forceStopExtractionCheck()
Forces stop of the extraction check process if it is currently running.
|
static boolean |
isCheckingExtractions()
Returns
true if the process for checking extractions is currently running. |
public static ExtractionCheckStatus checkMissingExtraction(boolean fixMissingExtraction, Writer statusOut) throws javax.jcr.RepositoryException
fixMissingExtraction is set to true also
tries to extract the text now.
This method ensures that only one check process runs at a time.fixMissingExtraction - if set to true performs the text extraction now; in case of false only the missing extraction count is
reported, but no fix is donestatusOut - a writer to log current processing status intojavax.jcr.RepositoryException - in case of JCR errorspublic static ExtractionCheckStatus checkExtractionByFilter(boolean redoExtraction, RepositoryFileFilter filter, Writer statusOut) throws javax.jcr.RepositoryException
redoExtraction is set to true also
tries to extract the text now.
This method ensures that only one check process runs at a time.redoExtraction - if set to true performs the text extraction now; in case of false only the extraction count is
reported, but not redonestatusOut - a writer to log current processing status intojavax.jcr.RepositoryException - in case of JCR errorspublic static void forceStopExtractionCheck()
public static boolean isCheckingExtractions()
true if the process for checking extractions is currently running.true if the process for checking extractions is currently running; false otherwiseCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.