Class ExtractionDetailsToolElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.plugins.extraction.execution.ExtractionDetailsToolElement
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
Tool client side element for extraction edition tool
-
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 TypeMethodDescriptiongetExtractionDefinitionDetails
(String relativeDefinitionFilePath) Retrieve extraction definition details.boolean
saveExtraction
(String definitionFileName, Map<String, Object> extraction) Saves modifications on extraction.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
-
ExtractionDetailsToolElement
public ExtractionDetailsToolElement()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
getExtractionDefinitionDetails
public Map<String,Object> getExtractionDefinitionDetails(String relativeDefinitionFilePath) throws Exception Retrieve extraction definition details.- Parameters:
relativeDefinitionFilePath
- The extraction's definition file path, relative to the base definitions directory- Returns:
- a
Map
containing the extraction definition details - Throws:
Exception
- if an error occurs
-
saveExtraction
public boolean saveExtraction(String definitionFileName, Map<String, Object> extraction) throws ExceptionSaves modifications on extraction. Creates the definition file if it doesn't exist- Parameters:
definitionFileName
- The extraction definition file nameextraction
- AMap
containing definition information- Returns:
true
if extraction saving succeed,false
otherwise- Throws:
Exception
- if an error occurs
-