|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.console.gui.session.GuiSession
This class defines a GUISession
Field Summary | |
(package private) java.util.ArrayList |
configurationFiles
|
(package private) java.util.ArrayList |
controllerItems
|
(package private) java.util.Hashtable |
databaseItems
|
private boolean |
saveDatabaseInfoToDisk
|
Constructor Summary | |
GuiSession()
Creates a new GUISession.java object no recorded values |
Method Summary | |
void |
addControllerToList(java.lang.String controller)
Add a controller url to the list of controllers |
void |
addDatabaseToSession(java.lang.String databaseName,
java.lang.String login,
java.lang.String password)
Add authentication to session |
void |
addFileToConfigurationFiles(java.io.File newFile)
Add a file to the list of configuration files if it is not already in the session |
boolean |
checkControllerInSession(java.lang.String controller)
checkif a controller is in the session |
java.lang.String |
getAuthenticatedDatabaseLogin(java.lang.String databaseName)
Retrieve the login stored for this database |
java.lang.String |
getAuthenticatedDatabasePassword(java.lang.String databaseName)
Retrieve the password stored for this database |
java.util.ArrayList |
getConfigurationFiles()
Get the list of configuration files |
java.util.ArrayList |
getControllerItems()
Returns the controllerItems value. |
java.util.Hashtable |
getDatabaseItems()
Returns the databaseItems value. |
boolean |
isAuthenticatedDatabase(java.lang.String databaseName)
Test if user was authenticated for this database |
void |
loadSessionFromFile(java.io.File sessionFile)
Load a gui session from the give file |
void |
saveSessionToFile(java.io.File sessionFile)
Save the current gui session into a file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final boolean saveDatabaseInfoToDisk
java.util.ArrayList controllerItems
java.util.ArrayList configurationFiles
java.util.Hashtable databaseItems
Constructor Detail |
public GuiSession()
GUISession.java
object no recorded values
Method Detail |
public void saveSessionToFile(java.io.File sessionFile) throws java.io.IOException
sessionFile
- the file to save the session in
java.io.IOException
- if writing causes a problempublic void loadSessionFromFile(java.io.File sessionFile) throws java.io.IOException
sessionFile
- the file to load the session from
java.io.IOException
- if loading causes a problempublic java.util.ArrayList getControllerItems()
public void addControllerToList(java.lang.String controller)
controller
- [ipAddress]:[portNumber]public boolean checkControllerInSession(java.lang.String controller)
controller
- [ipAddress]:[portNumber]
public java.util.ArrayList getConfigurationFiles()
Vector
of configuration filespublic void addFileToConfigurationFiles(java.io.File newFile)
newFile
- to add to the listpublic void addDatabaseToSession(java.lang.String databaseName, java.lang.String login, java.lang.String password)
databaseName
- name of the virtual databaselogin
- login namepassword
- password associated to the loginpublic boolean isAuthenticatedDatabase(java.lang.String databaseName)
databaseName
- name of the virtual database
public java.lang.String getAuthenticatedDatabaseLogin(java.lang.String databaseName)
databaseName
- name of the virtual database
String
or nullpublic java.lang.String getAuthenticatedDatabasePassword(java.lang.String databaseName)
databaseName
- name of the virtual database
String
or nullpublic java.util.Hashtable getDatabaseItems()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |