Package com.inesm.KeyManager.services
Class SettingsService
java.lang.Object
com.inesm.KeyManager.services.SettingsService
Provides all methods to view and modify settings.
-
Method Summary
Modifier and TypeMethodDescriptionintGetter for the loginWaitTime variable.intGetter for the maxLogins variable.intGetter for the sessionTimeout variable.Getter for all the settings available.updateSettings(Settings set) Updates the current settings.
-
Method Details
-
getSettings
Getter for all the settings available.- Returns:
- the settings object containing all the settings in its fields
-
updateSettings
Updates the current settings.- Parameters:
set- the settings object containing the settings to be updated, not null- Returns:
- the settings object that resulted of the update
- Throws:
FileProcessException- if an error occurred handling the properties file
-
getMaxLogins
public int getMaxLogins()Getter for the maxLogins variable.- Returns:
- the value of the maxLogins setting
-
getLoginWaitTime
public int getLoginWaitTime()Getter for the loginWaitTime variable.- Returns:
- the value of the loginWaitTime setting
-
getSessionTimeout
public int getSessionTimeout()Getter for the sessionTimeout variable.- Returns:
- the value of the sessionTimeout setting
-