Class SaveExtractionHelper
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.extraction.edition.SaveExtractionHelper
- All Implemented Interfaces:
Component,LogEnabled,Serviceable
Helper that manages the button that saves extraction's modifications
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleansaveExtraction(String relativeDefinitionFilePath, Map<String, Object> extractionComponents) Saves modifications on extraction.voidservice(ServiceManager serviceManager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
ROLE
The Avalon role name
-
-
Constructor Details
-
SaveExtractionHelper
public SaveExtractionHelper()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
saveExtraction
public boolean saveExtraction(String relativeDefinitionFilePath, Map<String, Object> extractionComponents) throws ExceptionSaves modifications on extraction. Creates the definition file if it doesn't exist- Parameters:
relativeDefinitionFilePath- The extraction definition file pathextractionComponents- AMapcontaining definition informations- Returns:
trueif extraction saving succeed,falseotherwise- Throws:
Exception- if an error occurs
-