public class ExecuteExtractionClientSideElement extends StaticClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
private ExtractionHelper |
_extractionHelper |
private JSONUtils |
_jsonUtils |
private ExtractionDefinitionReader |
_reader |
private Scheduler |
_scheduler |
private SourceResolver |
_sourceResolver |
private UserManager |
_userManager |
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
ExecuteExtractionClientSideElement() |
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
private UserManager _userManager
private ExtractionDefinitionReader _reader
private SourceResolver _sourceResolver
private JSONUtils _jsonUtils
private Scheduler _scheduler
private ExtractionHelper _extractionHelper
public ExecuteExtractionClientSideElement()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class StaticFileImportsClientSideElement
ServiceException
public Map<String,Object> getExecutionParameters(String definitionFile) throws Exception
definitionFile
- The extraction definition file pathMap
containing parameters infos used to configure form to fill the parametersException
- if an error occursprivate Map<String,Object> _getFormatInputConfig()
private Map<String,Object> _getStylesheetInputConfigForPDFFormat()
private Map<String,Object> _getStylesheetInputConfigForXMLFormat()
private Map<String,Object> _getStylesheetInputConfig()
private Map<String,Object> _getStylesheetInputDisabledCondition(String value)
private Map<String,Object> _getClauseVariableInputConfig(Map.Entry<String,String> clausesVariable)
private Map<String,Object> _getOptionalColumnsInputConfig(String optionalColumn)
private Map<String,Object> _getRecipientInputConfig()
private Map<String,Object> _getMandatoryValidation()
public Map<String,Object> executeExtraction(String definitionFilePath, Map<String,Object> variables, String recipient, String format, String xsltFilePath) throws Exception
definitionFilePath
- The extraction definition file pathvariables
- clauses variables and optional columnsrecipient
- An email will be sent at this address when the extraction is completeformat
- The format of the extraction resultxsltFilePath
- The stylesheet to apply on extraction resultException
- if an error occurs