|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object airline.AdministratorSession
public class AdministratorSession
Manages the flow of control for a session with a registered Administrator
.
Nested Class Summary | |
---|---|
static class |
AdministratorSession.AdminMenuChoice
Serves as a return value from Connection.getAdminMainMenuChoice() . |
static class |
AdministratorSession.NewFlightDetails
Serves as a return value from Connection.getNewFlightInfo() . |
Field Summary | |
---|---|
private Administrator |
administrator
The Administrator instance associated with this session. |
private Connection |
connect
The Connection instance managing the front-end interactions for this session. |
Constructor Summary | |
---|---|
AdministratorSession(Administrator administrator,
Connection connect)
Instantiates a new session for the given Administrator and the given front-end Connection. |
Method Summary | |
---|---|
private void |
addFlightDialog()
This dialog is used to add a new flight to the system. |
private void |
exportDatabaseDialog()
This dialog is used to save the system data to a file. |
private void |
importDatabaseDialog()
This dialog is used to load an existing system from a file. |
void |
mainDialog()
The main menu is first presented to an Administrator immediately after logging in. |
private void |
viewPassengerListDialog()
This dialog is used to provide a view of the passenger list for a selected flight. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Administrator administrator
private Connection connect
Constructor Detail |
---|
public AdministratorSession(Administrator administrator, Connection connect)
mainDialog()
.
administrator
- The Administrator instance associated with this sessionconnect
- The Connection instance managing the front-end interactions for this sessionMethod Detail |
---|
private void addFlightDialog()
private void exportDatabaseDialog()
private void importDatabaseDialog()
public void mainDialog()
mainDialog
in interface UserSession
private void viewPassengerListDialog()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |