WPI GDC CMS 0.0.1

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
 

Constructor Detail

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 position
userName - the user name of the user
fullName - the full name of the user
password - the password (most likely crypted in some way)
Method Detail

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.

WPI GDC CMS 0.0.1

Copyright © 2001 WPI Game Development Club. All Rights Reserved.