Package org.correomqtt.business.provider
Class SettingsProvider
- java.lang.Object
-
- org.correomqtt.business.provider.BaseUserFileProvider
-
- org.correomqtt.business.provider.SettingsProvider
-
public class SettingsProvider extends BaseUserFileProvider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ConnectionConfigDTO>getConnectionConfigs()StringgetCssPath()StringgetIconModeCssClass()static SettingsProvidergetInstance()StringgetLogPath()SettingsDTOgetSettings()ThemeSettingsDTOgetThemeSettings()voidinitializePasswords(String masterPassword)voidsaveConnections(List<ConnectionConfigDTO> connections, String masterPassword)voidsaveSettings(boolean showRestartRequiredDialog)voidwipeSecretData(String masterPassword)-
Methods inherited from class org.correomqtt.business.provider.BaseUserFileProvider
getFile, getTargetDirectoryPath, isLinux, isMacOS, isWindows
-
-
-
-
Method Detail
-
getInstance
public static SettingsProvider getInstance()
-
getConnectionConfigs
public List<ConnectionConfigDTO> getConnectionConfigs()
-
getSettings
public SettingsDTO getSettings()
-
getThemeSettings
public ThemeSettingsDTO getThemeSettings()
-
saveSettings
public void saveSettings(boolean showRestartRequiredDialog)
-
saveConnections
public void saveConnections(List<ConnectionConfigDTO> connections, String masterPassword) throws EncryptionRecoverableException
- Throws:
EncryptionRecoverableException
-
wipeSecretData
public void wipeSecretData(String masterPassword) throws EncryptionRecoverableException
- Throws:
EncryptionRecoverableException
-
getCssPath
public String getCssPath()
-
getLogPath
public String getLogPath()
-
getIconModeCssClass
public String getIconModeCssClass()
-
initializePasswords
public void initializePasswords(String masterPassword) throws EncryptionRecoverableException
- Throws:
EncryptionRecoverableException
-
-