public class BotExecutor extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_USER_EMAIL |
static String |
DATA_USER_FIRSTNAME |
static String |
DATA_USER_LASTNAME |
| Constructor and Description |
|---|
BotExecutor(EasyRulesBot bot,
Locale locale)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
fireRules()
Executes rules.
|
Object |
getBotAvatarUrl()
Returns bot avatar URL
|
String |
getBotName()
Returns the bot name
|
Map<String,String> |
getDataMap()
Gets all the data map
|
Locale |
getLocale()
Returns the Locale
|
String |
getQuestion()
Gets the question
|
List<fr.paris.lutece.plugins.chatbot.business.BotPost> |
processResponse(String strUserMessage)
Process the response
|
void |
setCurrentRule(BotRule rule)
Sets the current rule
|
void |
setLuteceUser(javax.servlet.http.HttpServletRequest request)
Add MyLutece user's info to data map
|
void |
traceData()
Trace utils
|
public static final String DATA_USER_FIRSTNAME
public static final String DATA_USER_LASTNAME
public static final String DATA_USER_EMAIL
public BotExecutor(EasyRulesBot bot, Locale locale)
bot - The bot to executelocale - The localepublic Locale getLocale()
public String getQuestion()
public List<fr.paris.lutece.plugins.chatbot.business.BotPost> processResponse(String strUserMessage) throws ResponseProcessingException
strUserMessage - The user messageResponseProcessingException - if an exception occurs during processingpublic void setCurrentRule(BotRule rule)
rule - The rulepublic void fireRules()
public void traceData()
public String getBotName()
public void setLuteceUser(javax.servlet.http.HttpServletRequest request)
request - public Object getBotAvatarUrl()
Copyright © 2018 City of Paris. All rights reserved.