Class FileInstallationService
java.lang.Object
com.slack.api.bolt.service.builtin.FileInstallationService
- All Implemented Interfaces:
InstallationService,Service
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileInstallationService(AppConfig config) FileInstallationService(AppConfig config, String rootDir) -
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes 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.booleanReturns true if the historical data management is enabled.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.slack.api.bolt.service.InstallationService
getInstallationGuideBlocks, getInstallationGuideTextMethods 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:InstallationServiceReturns true if the historical data management is enabled.- Specified by:
isHistoricalDataEnabledin interfaceInstallationService
-
setHistoricalDataEnabled
public void setHistoricalDataEnabled(boolean isHistoricalDataEnabled) Description copied from interface:InstallationServiceSet true if the historical data management is enabled.- Specified by:
setHistoricalDataEnabledin interfaceInstallationService
-
saveInstallerAndBot
Description copied from interface:InstallationServiceSaves an installation.- Specified by:
saveInstallerAndBotin interfaceInstallationService- Throws:
Exception
-
saveBot
Description copied from interface:InstallationServiceSaves an bot installation data.- Specified by:
saveBotin interfaceInstallationService- Throws:
Exception
-
deleteBot
Description copied from interface:InstallationServiceDeletes a bot permission data only.- Specified by:
deleteBotin interfaceInstallationService- Throws:
Exception
-
deleteInstaller
Description copied from interface:InstallationServiceDeletes a user permission data only.- Specified by:
deleteInstallerin interfaceInstallationService- Throws:
Exception
-
findBot
Description copied from interface:InstallationServiceReturns a bot permission data if exists.- Specified by:
findBotin interfaceInstallationService
-
findInstaller
Description copied from interface:InstallationServiceReturns a user permission data if exists.- Specified by:
findInstallerin interfaceInstallationService
-
deleteAll
Description copied from interface:InstallationServiceDeletes all installation data for given workspace or organization.- Specified by:
deleteAllin interfaceInstallationService
-