Class DefaultExportService

All Implemented Interfaces:
ExportService, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

public class DefaultExportService extends AbstractBusinessService implements ExportService
Default implementation of export service.
Since:
4.0
See Also:
  • Constructor Details

    • DefaultExportService

      public DefaultExportService()
  • Method Details

    • exportData

      protected ExportModel exportData(ImpExExportCronJobModel cronJob, boolean synchronous)
    • configureCronJob

      protected void configureCronJob(ImpExExportCronJobModel cronJob, ExportConfig config)
    • exportData

      public ExportResult exportData(ExportConfig config)
      Description copied from interface: ExportService
      Exports platform data. The export is configured by given configuration object. Please pay attention for the defaults of parameters not explicitly configured. For example the export will be executed synchronous if not reconfigured. Returns a result object for accessing state of export and resulting data. If executed asynchronous the exported data can be accessed only if ExportResult.isFinished() returns true.
      Specified by:
      exportData in interface ExportService
      Parameters:
      config - export configuration
      Returns:
      result of export
    • validateExportScript

      public DefaultImpExValidationResult validateExportScript(String script, ImpExValidationModeEnum validationMode)
      Description copied from interface: ExportService
      Validates export script.
      Specified by:
      validateExportScript in interface ExportService
      Returns:
      result of script validation
    • exportData

      public ExportResult exportData(ImpExResource script)
      Description copied from interface: ExportService
      Exports platform data using given impex export script. Default parameters are set as when creating an empty ExportConfig, so execution will be synchronous for example. Returns a result object where exported data can be accessed from.
      Specified by:
      exportData in interface ExportService
      Parameters:
      script - export script
      Returns:
      result of export
    • setCronJobService

      public void setCronJobService(CronJobService cronJobService)