|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role public interface WikiIRCBotManager
Start/stop the Wiki IRC Bot including its Wiki Bot Listeners and provides some other APIs about the Wiki IRC Bot.
| Method Summary | |
|---|---|
List<org.xwiki.ircbot.internal.BotListenerData> |
getBotListenerData()
Provides information about all Bot Listeners (whether they are Wiki Bot Listeners or standard Java components). |
Map<String,Object> |
getContext()
|
boolean |
isBotStarted()
|
void |
startBot(boolean updateBotStatus)
Connects the IRC Bot using the Configuration data located in WikiIRCBotConstants.WIKI_BOT_CONFIGURATION_CLASS and registers all Wiki Bot Listeners that are
not marked as inactive. |
void |
stopBot(boolean updateBotStatus)
Disconnect the IRC Bot and unregister all Wiki Bot Listeners. |
| Method Detail |
|---|
void startBot(boolean updateBotStatus)
throws IRCBotException
WikiIRCBotConstants.WIKI_BOT_CONFIGURATION_CLASS and registers all Wiki Bot Listeners that are
not marked as inactive. Note that the Bot is only connected if it's not marked inactive.
updateBotStatus - if true then update the Bot status to mark it as active
IRCBotException - if any error happens
void stopBot(boolean updateBotStatus)
throws IRCBotException
updateBotStatus - if true then update the Bot status to mark it as inactive (this means that the Bot should
not be restarted automatically by the IRC Bot Scheduler Job for example)
IRCBotException - if any error happensboolean isBotStarted()
List<org.xwiki.ircbot.internal.BotListenerData> getBotListenerData()
throws IRCBotException
IRCBotException - if any error happens
Map<String,Object> getContext()
throws IRCBotException
IRCBotException - if any error happens
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||