Class AsyncExportLauncher

java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.search.solr.AsyncExportLauncher
All Implemented Interfaces:
LogEnabled, Component, Serviceable

Export a solr search
  • Field Details

  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • add

      public Map<String,Object> add(String type, String recipient, String searchParams, String lang, String exportUrl) throws org.quartz.SchedulerException
      Launch a search export
      Parameters:
      type - csv, xml or word
      recipient - email of the recipient of the export
      searchParams - search parameters
      lang - language for the mail
      exportUrl - the internal url for export
      Returns:
      A result map
      Throws:
      org.quartz.SchedulerException - if an error occured
    • _generateUniqueId

      protected String _generateUniqueId() throws org.quartz.SchedulerException
      Generate an unique ID for a scheduler label
      Returns:
      a unique id for this sceduler
      Throws:
      org.quartz.SchedulerException - Something went wrong