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
public class ExecuteExtractionClientSideElement extends StaticClientSideElement
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
Constructors Constructor Description ExecuteExtractionClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
executeExtraction(String definitionFilePath, Map<String,Object> variables, String recipient, String pipelineId)
Execute the extractionMap<String,Object>
getExecutionParameters(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 Detail
-
ExecuteExtractionClientSideElement
public ExecuteExtractionClientSideElement()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
getExecutionParameters
public Map<String,Object> getExecutionParameters(String definitionFile) throws Exception
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 Exception
Execute 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
-
-