Class FileInstallationService
java.lang.Object
com.slack.api.bolt.service.builtin.FileInstallationService
- All Implemented Interfaces:
InstallationService
,Service
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFileInstallationService
(AppConfig config) FileInstallationService
(AppConfig config, String rootDir) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.boolean
Returns true if the historical data management is enabled.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.slack.api.bolt.service.InstallationService
getInstallationGuideBlocks, getInstallationGuideText
Methods inherited from interface com.slack.api.bolt.service.Service
initializer
-
Field Details
-
DEFAULT_ROOT_DIR
-
-
Constructor Details
-
FileInstallationService
-
FileInstallationService
-
-
Method Details
-
isHistoricalDataEnabled
public boolean isHistoricalDataEnabled()Description copied from interface:InstallationService
Returns true if the historical data management is enabled.- Specified by:
isHistoricalDataEnabled
in interfaceInstallationService
-
setHistoricalDataEnabled
public void setHistoricalDataEnabled(boolean isHistoricalDataEnabled) Description copied from interface:InstallationService
Set true if the historical data management is enabled.- Specified by:
setHistoricalDataEnabled
in interfaceInstallationService
-
saveInstallerAndBot
Description copied from interface:InstallationService
Saves an installation.- Specified by:
saveInstallerAndBot
in interfaceInstallationService
- Throws:
Exception
-
saveBot
Description copied from interface:InstallationService
Saves an bot installation data.- Specified by:
saveBot
in interfaceInstallationService
- Throws:
Exception
-
deleteBot
Description copied from interface:InstallationService
Deletes a bot permission data only.- Specified by:
deleteBot
in interfaceInstallationService
- Throws:
Exception
-
deleteInstaller
Description copied from interface:InstallationService
Deletes a user permission data only.- Specified by:
deleteInstaller
in interfaceInstallationService
- Throws:
Exception
-
findBot
Description copied from interface:InstallationService
Returns a bot permission data if exists.- Specified by:
findBot
in interfaceInstallationService
-
findInstaller
Description copied from interface:InstallationService
Returns a user permission data if exists.- Specified by:
findInstaller
in interfaceInstallationService
-
deleteAll
Description copied from interface:InstallationService
Deletes all installation data for given workspace or organization.- Specified by:
deleteAll
in interfaceInstallationService
-