Class ExecuteExtractionClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.plugins.extraction.execution.ExecuteExtractionClientSideElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
This client site element creates a button to execute an extraction
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
Field Summary
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecuteExtraction
(String definitionFilePath, Map<String, Object> variables, String recipient, String pipelineId) Execute the extractiongetExecutionParameters
(String definitionFile) Retrieve needed extraction parameters.void
service
(ServiceManager serviceManager) Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
ExecuteExtractionClientSideElement
public ExecuteExtractionClientSideElement()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
getExecutionParameters
Retrieve needed extraction parameters.- Parameters:
definitionFile
- The extraction definition file path- Returns:
- a
Map
containing parameters infos used to configure form to fill the parameters - Throws:
Exception
- if an error occurs
-
executeExtraction
public Map<String,Object> executeExtraction(String definitionFilePath, Map<String, Object> variables, String recipient, String pipelineId) throws ExceptionExecute the extraction- Parameters:
definitionFilePath
- The extraction definition file pathvariables
- clauses variables and optional columnsrecipient
- An email will be sent at this address when the extraction is completepipelineId
- The id of the extraction pipeline- Returns:
- a Map with error if one occurs
- Throws:
Exception
- if an error occurs
-