Package com.inesm.KeyManager.model
Class Settings
java.lang.Object
com.inesm.KeyManager.model.Settings
- All Implemented Interfaces:
Resource,Serializable
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(String data) Deserializes the resource from a data string generated by theResource.serialize()method.intintGets the station resource identifier.intSerializes a resource into a string.voidsetLoginWaitTime(int loginWaitTime) voidsetMaxLogins(int maxLogins) voidsetSessionTimeout(int sessionTimeout) toString()
-
Field Details
-
UNDEFINED
public static final int UNDEFINED- See Also:
-
-
Constructor Details
-
Settings
public Settings()
-
-
Method Details
-
toString
-
getResourceID
Description copied from interface:ResourceGets the station resource identifier.- Specified by:
getResourceIDin interfaceResource- Returns:
- a string containing the resource identifier.
-
serialize
Description copied from interface:ResourceSerializes a resource into a string.- Specified by:
serializein interfaceResource- Returns:
- the string representing the serialization of the resource.
- Throws:
IOException- if an error occurred during serialization
-
deserialize
Description copied from interface:ResourceDeserializes the resource from a data string generated by theResource.serialize()method.- Specified by:
deserializein interfaceResource- Parameters:
data- the serialized data as a string- Throws:
IOException- if an error occurred during the serialization processClassNotFoundException- 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)
-