Class SettingsService

java.lang.Object
com.inesm.KeyManager.services.SettingsService

@Service public class SettingsService extends Object
Provides all methods to view and modify settings.
  • Method Details

    • getSettings

      public Settings getSettings()
      Getter for all the settings available.
      Returns:
      the settings object containing all the settings in its fields
    • updateSettings

      public Settings updateSettings(Settings set) throws FileProcessException
      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