Class UserDetails
java.lang.Object
model.UserDetails
- All Implemented Interfaces:
Serializable
Title: Misc
Description:
Copyright: Copyright (c) 2006
Company: TAFE SA
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionno-arg UserDetails constructorUserDetails(String userName) one arg UserDetails constructorUserDetails(String userName, String password) two arg UserDetails constructorUserDetails(String userName, String password, boolean wantingIntroInfo) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidloadData()voidsaveData()voidsetPassword(String password) allows the password to be set/changedvoidsetUserName(String userName) sets the value of userNamevoidsetWantingIntroInfo(boolean val) stores the value of whether the introductory info will be displayed to the usertoString()
-
Field Details
-
DEFAULT_USERNAME
- See Also:
-
DEFAULT_PASSWORD
-
DEFAULT_INFO
public static final boolean DEFAULT_INFO- See Also:
-
-
Constructor Details
-
UserDetails
public UserDetails()no-arg UserDetails constructor
-
UserDetails
one arg UserDetails constructor
- Parameters:
userName- user's alias
-
UserDetails
-
UserDetails
-
-
Method Details
-
getUserName
- Returns:
- current username
-
getPassword
- Returns:
- current password
-
isWantingIntroInfo
public boolean isWantingIntroInfo()- Returns:
- true or false based on whether or not the introduction information is shown
-
setUserName
-
setPassword
allows the password to be set/changed
- Parameters:
password-
-
setWantingIntroInfo
public void setWantingIntroInfo(boolean val) stores the value of whether the introductory info will be displayed to the user
- Parameters:
val- either true or false
-
toString
-
equals
-
saveData
-
loadData
-