Expose process unallocated space setting through IngestJobContext

This commit is contained in:
Richard Cordovano 2014-09-25 11:21:46 -04:00
parent 53d51db52f
commit dac0b4782d

View File

@ -35,9 +35,9 @@ public final class IngestJobContext {
IngestJobContext(IngestJob ingestJob) {
this.ingestJob = ingestJob;
}
/**
*
*
* @return The data source that this ingest job is associated with.
*/
public Content getDataSource() {
@ -63,6 +63,16 @@ public final class IngestJobContext {
return this.ingestJob.isCancelled();
}
/**
* Checks whether or not the ingest job includes processing of unallocated
* space.
*
* @return True if unallocated space will be processed, false otherwise.
*/
public boolean processingUnallocatedSpace() {
return this.ingestJob.shouldProcessUnallocatedSpace();
}
/**
* Adds one or more files to the files to be passed through the file ingest
* pipeline of the ingest job associated with the current context.