2004.04.29


com.jdc.app
Class UserProfile

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.lang.SerializableObject
              |
              +--com.jdc.app.UserProfile
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HttpUserProfile

public class UserProfile
extends SerializableObject

A profile of the client using the application. The UserProfile class represents all client information regarding the user including login, operating system, display and locale information.

Version:
1.0
Author:
Jay Damon
See Also:
OperatingSystem, Display, Serialized Form

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
UserProfile()
          Constructor for class UserProfile.
 
Method Summary
 Display getDisplay()
          Returns the user's display.
 Locale getLocale()
          Returns the user's locale information.
 String getName()
          Returns the user's name
 String getPassword()
          Returns the user's password.
 boolean isLoggedIn()
          Returns true if the user is logged in, i.e.
 void setDisplay(Display display)
          Sets the user's display, i.e.
 void setLocale(Locale locale)
          Sets the user's locale information.
 void setName(String name)
          Sets the user's name.
 void setPassword(String password)
          Sets the user's password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProfile

public UserProfile()
Constructor for class UserProfile.

Method Detail

getDisplay

public Display getDisplay()
Returns the user's display. i.e. screen, information.

Returns:
Display

isLoggedIn

public boolean isLoggedIn()
Returns true if the user is logged in, i.e. a valid user name and password exist.

Returns:
boolean

getLocale

public Locale getLocale()
Returns the user's locale information.

Returns:
Locale

getName

public String getName()
Returns the user's name

Returns:
String

getPassword

public String getPassword()
Returns the user's password.

Returns:
String

setDisplay

public void setDisplay(Display display)
Sets the user's display, i.e. screen, information.

Parameters:
display - The user's display.

setLocale

public void setLocale(Locale locale)
Sets the user's locale information.

Parameters:
locale - The user's locale.

setName

public void setName(String name)
Sets the user's name.

Parameters:
name - The user's name.

setPassword

public void setPassword(String password)
Sets the user's password.

Parameters:
password - The user's password.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.