tock / ai.tock.bot.admin.story / StoryDefinitionConfigurationDAO

# StoryDefinitionConfigurationDAO

`interface StoryDefinitionConfigurationDAO` (source)

Manage StoryDefinitionConfiguration persistence.

### Functions

#### createBuiltInStoriesIfNotExist | Create the built-in stories if they don't exist yet. `abstract fun createBuiltInStoriesIfNotExist(stories: List<StoryDefinitionConfiguration>): Unit`
#### delete | `abstract fun delete(story: StoryDefinitionConfiguration): Unit`
#### getConfiguredStoryDefinitionByNamespaceAndBotIdAndIntent | `abstract fun getConfiguredStoryDefinitionByNamespaceAndBotIdAndIntent(namespace: String, botId: String, intent: String): StoryDefinitionConfiguration?`
#### getRuntimeStorySettings | `abstract fun getRuntimeStorySettings(namespace: String, botId: String): List<StoryDefinitionConfiguration>`
#### getStoryDefinitionById | `abstract fun getStoryDefinitionById(id: Id<StoryDefinitionConfiguration>): StoryDefinitionConfiguration?`
#### getStoryDefinitionByNamespaceAndBotIdAndIntent | `abstract fun getStoryDefinitionByNamespaceAndBotIdAndIntent(namespace: String, botId: String, intent: String): StoryDefinitionConfiguration?`
#### getStoryDefinitionByNamespaceAndBotIdAndStoryId | `abstract fun getStoryDefinitionByNamespaceAndBotIdAndStoryId(namespace: String, botId: String, storyId: String): StoryDefinitionConfiguration?`
#### getStoryDefinitionsByNamespaceAndBotId | `abstract fun getStoryDefinitionsByNamespaceAndBotId(namespace: String, botId: String): List<StoryDefinitionConfiguration>`
#### getStoryDefinitionsByNamespaceBotIdStoryId | `abstract fun getStoryDefinitionsByNamespaceBotIdStoryId(namespace: String, botId: String, storyId: String): StoryDefinitionConfiguration?`
#### listenChanges | Listen changes on story definitions. `abstract fun listenChanges(listener: () -> Unit): Unit`
#### save | `abstract fun save(story: StoryDefinitionConfiguration): Unit`
#### searchStoryDefinitionSummaries | Search StoryDefinitionConfigurationSummary. `abstract fun searchStoryDefinitionSummaries(request: StoryDefinitionConfigurationSummaryRequest): List<StoryDefinitionConfigurationSummary>`