Class SaveExtractionHelper
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.plugins.extraction.edition.SaveExtractionHelper
-
- All Implemented Interfaces:
Component,LogEnabled,Serviceable
public class SaveExtractionHelper extends AbstractLogEnabled implements Component, Serviceable
Helper that manages the button that saves extraction's modifications
-
-
Constructor Summary
Constructors Constructor Description SaveExtractionHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleansaveExtraction(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
-
-
-
-
Constructor Detail
-
SaveExtractionHelper
public SaveExtractionHelper()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
saveExtraction
public boolean saveExtraction(String relativeDefinitionFilePath, Map<String,Object> extractionComponents) throws Exception
Saves 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
-
-