Class ExtractionExecutor
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.extraction.execution.ExtractionExecutor
- All Implemented Interfaces:
 LogEnabled,Component,Serviceable
Extracts query results form a XML definition file
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(String relativeFilePath, OutputStream resultOutputStream, String lang, Map<String, Object> parameters, PipelineDescriptor pipeline) Executes the given extractionexecute(String relativeFilePath, String defaultResultFileName, String lang, Map<String, Object> parameters, PipelineDescriptor pipeline) Executes the given extractionvoidservice(ServiceManager serviceManager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
- 
Field Details
- 
ROLE
The Avalon role. 
 - 
 - 
Constructor Details
- 
ExtractionExecutor
public ExtractionExecutor() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 - 
execute
public Set<Path> execute(String relativeFilePath, String defaultResultFileName, String lang, Map<String, Object> parameters, PipelineDescriptor pipeline) throws ExceptionExecutes the given extraction- Parameters:
 relativeFilePath- The path of the extraction file to executedefaultResultFileName- The default file name for the result (it can be unused, for instance if resultSubFolder is a file, i.e. contains a '.' in its last element)lang- The languageparameters- The parameterspipeline- The execution pipeline- Returns:
 - The set of the result files path
 - Throws:
 Exception- if an errors occurred
 - 
execute
public void execute(String relativeFilePath, OutputStream resultOutputStream, String lang, Map<String, Object> parameters, PipelineDescriptor pipeline) throws ExceptionExecutes the given extraction- Parameters:
 relativeFilePath- The path of the extraction file to executeresultOutputStream- The result output streamlang- The languageparameters- The parameterspipeline- The execution pipeline- Throws:
 Exception- if an errors occurred
 
 -