Package ai.tock.bot.admin.service
Object DocumentCompressorService
-
- All Implemented Interfaces:
public class DocumentCompressorServiceService that manage the document compressor functionality
-
-
Field Summary
Fields Modifier and Type Field Description public final static DocumentCompressorServiceINSTANCE
-
Method Summary
Modifier and Type Method Description final BotDocumentCompressorConfigurationgetDocumentCompressorConfiguration(String namespace, String botId)Get the Document Compressor Configuration final BotDocumentCompressorConfigurationgetDocumentCompressorConfiguration(String namespace, String botId, Boolean enabled)Get the Document Compressor Configuration final UnitdeleteConfig(String namespace, String botId)Deleting the Document Compressor Configuration final BotDocumentCompressorConfigurationsaveDocumentCompressor(BotDocumentCompressorConfigurationDTO documentCompressorConfig)Save Document Compressor Configuration and filter errors -
-
Method Detail
-
getDocumentCompressorConfiguration
final BotDocumentCompressorConfiguration getDocumentCompressorConfiguration(String namespace, String botId)
Get the Document Compressor Configuration
- Parameters:
namespace- : the namespacebotId- : the bot ID
-
getDocumentCompressorConfiguration
final BotDocumentCompressorConfiguration getDocumentCompressorConfiguration(String namespace, String botId, Boolean enabled)
Get the Document Compressor Configuration
- Parameters:
namespace- : the namespacebotId- : the botIdenabled- : the document compressor activation (enabled or not)
-
deleteConfig
final Unit deleteConfig(String namespace, String botId)
Deleting the Document Compressor Configuration
- Parameters:
namespace- : the namespacebotId- : the bot ID
-
saveDocumentCompressor
final BotDocumentCompressorConfiguration saveDocumentCompressor(BotDocumentCompressorConfigurationDTO documentCompressorConfig)
Save Document Compressor Configuration and filter errors
- Parameters:
documentCompressorConfig- : the document compressor configuration to create or update- Returns:
BotDocumentCompressorConfiguration
-
-
-
-