Class Settings

java.lang.Object
com.inesm.KeyManager.model.Settings
All Implemented Interfaces:
Resource, Serializable

public class Settings extends Object implements Serializable, Resource
Container for the application settings.

All the getters and setters are the default ones.

Details about the meaning of each field are provided in the source code.

See Also:
  • Field Details

  • Constructor Details

    • Settings

      public Settings()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getResourceID

      public String getResourceID()
      Description copied from interface: Resource
      Gets the station resource identifier.
      Specified by:
      getResourceID in interface Resource
      Returns:
      a string containing the resource identifier.
    • serialize

      public String serialize() throws IOException
      Description copied from interface: Resource
      Serializes a resource into a string.
      Specified by:
      serialize in interface Resource
      Returns:
      the string representing the serialization of the resource.
      Throws:
      IOException - if an error occurred during serialization
    • deserialize

      public void deserialize(String data) throws IOException, ClassNotFoundException
      Description copied from interface: Resource
      Deserializes the resource from a data string generated by the Resource.serialize() method.
      Specified by:
      deserialize in interface Resource
      Parameters:
      data - the serialized data as a string
      Throws:
      IOException - if an error occurred during the serialization process
      ClassNotFoundException - if its was not possible to load the class data, or the class data was not found
    • getMaxLogins

      public int getMaxLogins()
    • setMaxLogins

      public void setMaxLogins(int maxLogins)
    • getLoginWaitTime

      public int getLoginWaitTime()
    • setLoginWaitTime

      public void setLoginWaitTime(int loginWaitTime)
    • getSessionTimeout

      public int getSessionTimeout()
    • setSessionTimeout

      public void setSessionTimeout(int sessionTimeout)