airline
Class Administrator

java.lang.Object
  extended by airline.User
      extended by airline.Administrator
All Implemented Interfaces:
Serializable

public class Administrator
extends User

Represents a User with administrative privileges.

Author:
Michael Goldwasser
See Also:
Serialized Form

Constructor Summary
Administrator(String userID, String pwd)
          Creates a new Administrator instance with given credentials.
 
Method Summary
 UserSession getSession(Connection connect)
          Overrides the factory function User.getSession in order to provide an appropriate AdministratorSession.
 
Methods inherited from class airline.User
getUserID, verifyPassword
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Administrator

public Administrator(String userID,
                     String pwd)
Creates a new Administrator instance with given credentials.

Parameters:
userID - A unique userID
pwd - The password for that user
Method Detail

getSession

public UserSession getSession(Connection connect)
Overrides the factory function User.getSession in order to provide an appropriate AdministratorSession.

Specified by:
getSession in class User
Parameters:
connect - The user-inteface Connection.
Returns:
A new AdministratorSession.