Class DefaultExportService

  • All Implemented Interfaces:
    ExportService, java.io.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:
    Serialized Form
    • Constructor Detail

      • DefaultExportService

        public DefaultExportService()
    • Method Detail

      • 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
      • 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)