Package org.ametys.cms.search.solr
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 Summary
FieldsModifier and TypeFieldDescriptionprotected CurrentUserProviderThe provider of current userprotected SchedulerSchedulerstatic final StringThe Avalon Role - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
- 
Field Details
- 
ROLE
The Avalon Role - 
_currentUserProvider
The provider of current user - 
_scheduler
Scheduler 
 - 
 - 
Constructor Details
- 
AsyncExportLauncher
public AsyncExportLauncher() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 - 
add
public Map<String,Object> add(String type, String recipient, String searchParams, String lang, String exportUrl) throws SchedulerException Launch a search export- Parameters:
 type- csv, xml or wordrecipient- email of the recipient of the exportsearchParams- search parameterslang- language for the mailexportUrl- the internal url for export- Returns:
 - A result map
 - Throws:
 SchedulerException- if an error occured
 - 
_generateUniqueId
Generate an unique ID for a scheduler label- Returns:
 - a unique id for this sceduler
 - Throws:
 SchedulerException- Something went wrong
 
 -