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 void
Deletes all installation data for given workspace or organization.void
Deletes a bot permission data only.void
deleteInstaller
(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 String
getInstallationGuideText
(String enterpriseId, String teamId, String userId) Returns a message text to inform unknown users.boolean
Returns true if the historical data management is enabled.default void
Saves an bot installation data.void
saveInstallerAndBot
(Installer installer) Saves an installation.void
setHistoricalDataEnabled
(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.
-