Class ExtractionExecutor
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.extraction.execution.ExtractionExecutor
-
- All Implemented Interfaces:
LogEnabled,Component,Serviceable
public class ExtractionExecutor extends AbstractLogEnabled implements Component, Serviceable
Extracts query results form a XML definition file
-
-
Constructor Summary
Constructors Constructor Description ExtractionExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(String relativeFilePath, OutputStream resultOutputStream, String lang, Map<String,Object> parameters, PipelineDescriptor pipeline)Executes the given extractionSet<Path>execute(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
-
-
-
-
Constructor Detail
-
ExtractionExecutor
public ExtractionExecutor()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
execute
public Set<Path> execute(String relativeFilePath, String defaultResultFileName, String lang, Map<String,Object> parameters, PipelineDescriptor pipeline) throws Exception
Executes 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 Exception
Executes 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
-
-