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 boolean
saveExtraction(String relativeDefinitionFilePath, Map<String,Object> extractionComponents)
Saves modifications on extraction.void
service(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:
service
in 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
- AMap
containing definition informations- Returns:
true
if extraction saving succeed,false
otherwise- Throws:
Exception
- if an error occurs
-
-