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
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
.