public class FileInstallationService extends Object implements InstallationService
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ROOT_DIR |
Constructor and Description |
---|
FileInstallationService(AppConfig config) |
FileInstallationService(AppConfig config,
String rootDir) |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isHistoricalDataEnabled()
Returns true if the historical data management is enabled.
|
void |
saveInstallerAndBot(Installer installer)
Saves an installation.
|
void |
setHistoricalDataEnabled(boolean isHistoricalDataEnabled)
Set true if the historical data management is enabled.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstallationGuideBlocks, getInstallationGuideText
initializer
public static final String DEFAULT_ROOT_DIR
public FileInstallationService(AppConfig config)
public boolean isHistoricalDataEnabled()
InstallationService
isHistoricalDataEnabled
in interface InstallationService
public void setHistoricalDataEnabled(boolean isHistoricalDataEnabled)
InstallationService
setHistoricalDataEnabled
in interface InstallationService
public void saveInstallerAndBot(Installer installer) throws Exception
InstallationService
saveInstallerAndBot
in interface InstallationService
Exception
public void deleteBot(Bot bot) throws Exception
InstallationService
deleteBot
in interface InstallationService
Exception
public void deleteInstaller(Installer installer) throws Exception
InstallationService
deleteInstaller
in interface InstallationService
Exception
public Bot findBot(String enterpriseId, String teamId)
InstallationService
findBot
in interface InstallationService
public Installer findInstaller(String enterpriseId, String teamId, String userId)
InstallationService
findInstaller
in interface InstallationService
Copyright © 2020. All rights reserved.