airline
Class AdministratorSession
java.lang.Object
airline.AdministratorSession
- All Implemented Interfaces:
- UserSession
public class AdministratorSession
- extends Object
- implements UserSession
Manages the flow of control for a session with a registered Administrator
.
- Author:
- Michael Goldwasser
Method Summary |
void |
mainDialog()
The main menu is first presented to an Administrator immediately
after logging in. |
AdministratorSession
public AdministratorSession(Administrator administrator,
Connection connect)
- Instantiates a new session for the given Administrator and the given
front-end Connection. The constructor does not begin any interactions.
Those should typically be started by calling
mainDialog()
.
- Parameters:
administrator
- The Administrator instance associated with this sessionconnect
- The Connection instance managing the front-end interactions for this session
mainDialog
public void mainDialog()
- The main menu is first presented to an Administrator immediately
after logging in. It offers choices for managing the
overall system and the underlying databases of users and flights.
- Specified by:
mainDialog
in interface UserSession