Methods Summary |
---|
public boolean | doLogin()Business method to perform login
loggedIn = false;
// this implementation just checks that the password is more
// than three characters long. A real implementation should
// use some real method of verifying the username and password.
if((username != null) && (username.length() > 0) &&
(password != null) && (password.length() > 3)) {
loggedIn = true;
}
return loggedIn;
|
public java.lang.String | getLanguage()Get the user's preferred language
return language;
|
public java.lang.String | getUsername()Get the username
return username;
|
public boolean | isLoggedIn()Determine if the user is logged in
return loggedIn;
|
public void | setLanguage(java.lang.String language)Set the user's preferred language
this.language = language;
|
public void | setPassword(java.lang.String password)Set the user's password
this.password = password;
|
public void | setUsername(java.lang.String username)Set the username
this.username = username;
|