airline
Class Administrator
java.lang.Object
airline.User
airline.Administrator
- All Implemented Interfaces:
- Serializable
public class Administrator
- extends User
Represents a User
with administrative privileges.
- Author:
- Michael Goldwasser
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Administrator
public Administrator(String userID,
String pwd)
- Creates a new Administrator instance with given credentials.
- Parameters:
userID
- A unique userIDpwd
- The password for that user
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
.