tock / ai.tock.bot.admin.bot / BotApplicationConfigurationDAO

BotApplicationConfigurationDAO

interface BotApplicationConfigurationDAO (source)

Functions

delete

abstract fun delete(conf: BotApplicationConfiguration): Unit
abstract fun delete(conf: BotConfiguration): Unit

getBotConfigurations

abstract fun getBotConfigurations(): List<BotConfiguration>

getBotConfigurationsByNamespaceAndBotId

abstract fun getBotConfigurationsByNamespaceAndBotId(namespace: String, botId: String): List<BotConfiguration>

getBotConfigurationsByNamespaceAndNameAndBotId

abstract fun getBotConfigurationsByNamespaceAndNameAndBotId(namespace: String, name: String, botId: String): BotConfiguration?

getConfigurationByApplicationIdAndBotId

abstract fun getConfigurationByApplicationIdAndBotId(namespace: String, applicationId: String, botId: String): BotApplicationConfiguration?

getConfigurationById

abstract fun getConfigurationById(id: Id<BotApplicationConfiguration>): BotApplicationConfiguration?

getConfigurationByPath

Get configuration by path.

abstract fun getConfigurationByPath(path: String): BotApplicationConfiguration?

getConfigurationByTargetId

Get configuration by target application identifier.

abstract fun getConfigurationByTargetId(id: Id<BotApplicationConfiguration>): BotApplicationConfiguration?

getConfigurations

abstract fun getConfigurations(): List<BotApplicationConfiguration>

getConfigurationsByBotNamespaceAndConfigurationName

abstract fun getConfigurationsByBotNamespaceAndConfigurationName(namespace: String, botId: String, configurationName: String): List<BotApplicationConfiguration>

getConfigurationsByNamespaceAndBotId

abstract fun getConfigurationsByNamespaceAndBotId(namespace: String, botId: String): List<BotApplicationConfiguration>

getConfigurationsByNamespaceAndNlpModel

abstract fun getConfigurationsByNamespaceAndNlpModel(namespace: String, nlpModel: String): List<BotApplicationConfiguration>

listenBotChanges

Listen changes on bot configurations.

abstract fun listenBotChanges(listener: () -> Unit): Unit

listenChanges

Listen changes on application configurations.

abstract fun listenChanges(listener: () -> Unit): Unit

save

abstract fun save(conf: BotApplicationConfiguration): BotApplicationConfiguration
abstract fun save(conf: BotConfiguration): Unit