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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-
Field Details
-
ROLE
The Avalon role name
-
-
Constructor Details
-
SaveExtractionHelper
public SaveExtractionHelper()
-
-
Method Details
-
service
- Specified by:
service
in 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
- AMap
containing definition informations- Returns:
true
if extraction saving succeed,false
otherwise- Throws:
Exception
- if an error occurs
-