Package com.slack.api.bolt.service
Interface InstallationService
- All Superinterfaces:
Service
- All Known Implementing Classes:
AmazonS3InstallationService,FileInstallationService
A service that manages Slack app installations.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidDeletes all installation data for given workspace or organization.voidDeletes a bot permission data only.voiddeleteInstaller(Installer installer) Deletes a user permission data only.Returns a bot permission data if exists.findInstaller(String enterpriseId, String teamId, String userId) Returns a user permission data if exists.default List<LayoutBlock>getInstallationGuideBlocks(String enterpriseId, String teamId, String userId) Returns a message (Block Kit) to inform unknown users.default StringgetInstallationGuideText(String enterpriseId, String teamId, String userId) Returns a message text to inform unknown users.booleanReturns true if the historical data management is enabled.default voidSaves an bot installation data.voidsaveInstallerAndBot(Installer installer) Saves an installation.voidsetHistoricalDataEnabled(boolean isHistoricalDataEnabled) Set true if the historical data management is enabled.Methods inherited from interface com.slack.api.bolt.service.Service
initializer
-
Method Details
-
isHistoricalDataEnabled
boolean isHistoricalDataEnabled()Returns true if the historical data management is enabled. -
setHistoricalDataEnabled
void setHistoricalDataEnabled(boolean isHistoricalDataEnabled) Set true if the historical data management is enabled. -
saveInstallerAndBot
Saves an installation.- Throws:
Exception
-
saveBot
Saves an bot installation data.- Throws:
Exception
-
deleteBot
Deletes a bot permission data only.- Throws:
Exception
-
deleteInstaller
Deletes a user permission data only.- Throws:
Exception
-
findBot
Returns a bot permission data if exists. -
findInstaller
Returns a user permission data if exists. -
getInstallationGuideText
Returns a message text to inform unknown users. -
getInstallationGuideBlocks
default List<LayoutBlock> getInstallationGuideBlocks(String enterpriseId, String teamId, String userId) Returns a message (Block Kit) to inform unknown users. -
deleteAll
Deletes all installation data for given workspace or organization.
-