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 Details

    • ROLE

      public static final String ROLE
      The Avalon role name
  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager serviceManager) throws ServiceException
      Specified by:
      service in interface Serviceable
      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 path
      extractionComponents - A Map containing definition informations
      Returns:
      true if extraction saving succeed, false otherwise
      Throws:
      Exception - if an error occurs