| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectairline.User
public abstract class User
Represents a registered user for the airline system.
| Field Summary | |
|---|---|
| (package private)  String | IDUnique ID for system User | 
| (package private)  String | passwordPassword for the user | 
| Constructor Summary | |
|---|---|
| protected  | User(String userID,
     String pwd)Creates a new User instance with given credentials. | 
| Method Summary | |
|---|---|
| abstract  UserSession | getSession(Connection connection)A factory function producing an appropriate UserSessionfor this user. | 
|  String | getUserID()Returns this customer's unique user ID | 
|  boolean | verifyPassword(String attempt)Compares a given password attempt to the underlying password. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
String ID
String password
| Constructor Detail | 
|---|
protected User(String userID,
               String pwd)
userID - A unique userIDpwd - The password for that user| Method Detail | 
|---|
public abstract UserSession getSession(Connection connection)
UserSession for this user.
UserSession.public String getUserID()
public boolean verifyPassword(String attempt)
attempt - a potential match for the password
true if parameter matches the password; false otherwise.| 
 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||