Class AmazonS3InstallationService
- java.lang.Object
-
- com.slack.api.bolt.service.builtin.AmazonS3InstallationService
-
- All Implemented Interfaces:
InstallationService
,Service
public class AmazonS3InstallationService extends Object implements InstallationService
-
-
Constructor Summary
Constructors Constructor Description AmazonS3InstallationService(String bucketName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.amazonaws.services.s3.AmazonS3
createS3Client()
void
deleteAll(String enterpriseId, String teamId)
Deletes all installation data for given workspace or organization.void
deleteBot(Bot bot)
Deletes a bot permission data only.void
deleteInstaller(Installer installer)
Deletes a user permission data only.Bot
findBot(String enterpriseId, String teamId)
Returns a bot permission data if exists.Installer
findInstaller(String enterpriseId, String teamId, String userId)
Returns a user permission data if exists.protected com.amazonaws.auth.AWSCredentials
getCredentials()
Initializer
initializer()
Returns the initializer for this service.boolean
isHistoricalDataEnabled()
Returns true if the historical data management is enabled.void
saveBot(Bot bot)
Saves an bot installation data.void
saveInstallerAndBot(Installer i)
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
-
-
-
-
Constructor Detail
-
AmazonS3InstallationService
public AmazonS3InstallationService(String bucketName)
-
-
Method Detail
-
initializer
public Initializer initializer()
Description copied from interface:Service
Returns the initializer for this service. If the service has time-consuming initialization steps, putting those into this function would be a good way to avoid timeout errors for the first incoming request (in other words, to avoid cold-start problems).- Specified by:
initializer
in interfaceService
-
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
public void saveInstallerAndBot(Installer i) throws Exception
Description copied from interface:InstallationService
Saves an installation.- Specified by:
saveInstallerAndBot
in interfaceInstallationService
- Throws:
Exception
-
saveBot
public void saveBot(Bot bot) throws Exception
Description copied from interface:InstallationService
Saves an bot installation data.- Specified by:
saveBot
in interfaceInstallationService
- Throws:
Exception
-
deleteBot
public void deleteBot(Bot bot) throws Exception
Description copied from interface:InstallationService
Deletes a bot permission data only.- Specified by:
deleteBot
in interfaceInstallationService
- Throws:
Exception
-
deleteInstaller
public void deleteInstaller(Installer installer) throws Exception
Description copied from interface:InstallationService
Deletes a user permission data only.- Specified by:
deleteInstaller
in interfaceInstallationService
- Throws:
Exception
-
findBot
public Bot findBot(String enterpriseId, String teamId)
Description copied from interface:InstallationService
Returns a bot permission data if exists.- Specified by:
findBot
in interfaceInstallationService
-
findInstaller
public Installer findInstaller(String enterpriseId, String teamId, String userId)
Description copied from interface:InstallationService
Returns a user permission data if exists.- Specified by:
findInstaller
in interfaceInstallationService
-
deleteAll
public void deleteAll(String enterpriseId, String teamId)
Description copied from interface:InstallationService
Deletes all installation data for given workspace or organization.- Specified by:
deleteAll
in interfaceInstallationService
-
getCredentials
protected com.amazonaws.auth.AWSCredentials getCredentials()
-
createS3Client
protected com.amazonaws.services.s3.AmazonS3 createS3Client()
-
-