|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.databrowser.DBMenuController
Controller for the various menus on the main GUI menubar. Acts as the controller in the MVC pattern, ie a buffer between the views and the model. In this case the views are the available selections from dropdown menus on the menu bar.
Field Summary | |
private static java.lang.String |
ABOUT
|
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private DBGUI |
mGUI
|
private DBModel |
mModel
|
Constructor Summary | |
DBMenuController(DBGUI gui,
DBModel model)
Construct the controller for the drop down menus of the GUI |
Method Summary | |
void |
about()
Displays the "About" dialog |
void |
configureMessageLevelSecurityDescriptor()
Pops up a dialog displaying message level security options and saves the selected configuration to a security descriptor. |
void |
enableTransportLevelEncryption()
Switches on transport level encryption. |
void |
exit()
Exit the program |
java.awt.Component |
getParent()
|
void |
launchJoinDialog()
Launch the dialog for running a join |
void |
retrieveSchema()
Retrieves the schema from the database and displays it in a new window. |
void |
runJoin(DBJoinParameter parameters)
Run a join. |
void |
setMessageLevelSecurityDescriptor()
Pops up a file chooser dialog and configures the current data service resource for message level security with the selected security descriptor. |
private java.io.File |
writeMLSDescriptor(boolean privacy,
boolean integrity,
java.lang.String auth,
java.lang.String delegation)
Writes the specified message level security configuration to a security descriptor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private DBGUI mGUI
private DBModel mModel
private static final java.lang.String ABOUT
Constructor Detail |
public DBMenuController(DBGUI gui, DBModel model)
gui
- The main GUImodel
- The data modelMethod Detail |
public void exit()
public void about()
public java.awt.Component getParent()
public void launchJoinDialog()
public void runJoin(DBJoinParameter parameters)
parameters
- The parameters for the joinpublic void retrieveSchema()
public void enableTransportLevelEncryption()
public void setMessageLevelSecurityDescriptor()
public void configureMessageLevelSecurityDescriptor()
private java.io.File writeMLSDescriptor(boolean privacy, boolean integrity, java.lang.String auth, java.lang.String delegation)
privacy
- is privacy switched on?integrity
- is integrity switched on?auth
- authentication mechanismdelegation
- delegation level
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |