public class ExtractionDetailsToolElement extends StaticClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
private ExtractionDefinitionReader |
_reader |
private SaveExtractionHelper |
_saveHelper |
private SourceResolver |
_sourceResolver |
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
ExtractionDetailsToolElement() |
Modifier and Type | Method and Description |
---|---|
private Map<String,Object> |
_getClausesVariablesNode(Extraction extraction) |
private List<Map<String,Object>> |
_getComponentNodes(List<ExtractionComponent> components) |
private Map<String,Object> |
_getOptionalColumnsNode(Extraction extraction) |
Map<String,Object> |
getExtractionDefinitionDetails(String definitionFile)
Retrieve extraction definition details.
|
boolean |
saveExtraction(String definitionFileName,
Map<String,Object> definitionNodes)
Saves modifications on extraction.
|
void |
service(ServiceManager serviceManager) |
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
private ExtractionDefinitionReader _reader
private SourceResolver _sourceResolver
private SaveExtractionHelper _saveHelper
public ExtractionDetailsToolElement()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class StaticFileImportsClientSideElement
ServiceException
public Map<String,Object> getExtractionDefinitionDetails(String definitionFile) throws Exception
definitionFile
- The extraction's definition file pathMap
containing the extraction definition detailsException
- if an error occursprivate Map<String,Object> _getClausesVariablesNode(Extraction extraction)
private Map<String,Object> _getOptionalColumnsNode(Extraction extraction)
private List<Map<String,Object>> _getComponentNodes(List<ExtractionComponent> components)
public boolean saveExtraction(String definitionFileName, Map<String,Object> definitionNodes) throws Exception
definitionFileName
- The extraction definition file namedefinitionNodes
- A Map
containing definition informationstrue
if extraction saving succeed, false
otherwiseException
- if an error occurs