org.wpi.gdc.cms.main
Class User
java.lang.Object
|
+--org.wpi.gdc.cms.main.User
- public class User
- extends java.lang.Object
This class implements a user account.
- Version:
- 1.4
- Author:
- dmpotter
Constructor Summary |
User(int id,
int position,
java.lang.String userName,
java.lang.String fullName,
java.lang.String password)
Creates a new user. |
Method Summary |
java.lang.String |
getFullName()
|
int |
getID()
|
java.lang.String |
getUserName()
|
boolean |
validatePassword(java.lang.String password)
Checks to see if the passed password validates with the password for this
user. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
User
public User(int id,
int position,
java.lang.String userName,
java.lang.String fullName,
java.lang.String password)
- Creates a new user.
- Parameters:
id
- the user ID.position
- the user's positionuserName
- the user name of the userfullName
- the full name of the userpassword
- the password (most likely crypted in some way)
getID
public int getID()
getFullName
public java.lang.String getFullName()
getUserName
public java.lang.String getUserName()
validatePassword
public boolean validatePassword(java.lang.String password)
- Checks to see if the passed password validates with the password for this
user.
- Parameters:
password
- The password to validate.- Returns:
true
if the password validates, false
otherwise.
Copyright © 2001 WPI Game Development Club. All Rights Reserved.