Skip navigation links


com.essbase.eas.framework.client.defs.login
Class LoginDialogSettings

java.lang.Object
  extended by com.essbase.eas.framework.client.defs.login.LoginDialogSettings


public class LoginDialogSettings
extends java.lang.Object

Acts as persistent storage for the users to connect to multiple EAS servers. The user can create connections through the login dialog and through menu items if using the EAS admin plug in

Since:
7.1
Version:
7.1
Author:
Scott Rasmussen

Method Summary
 boolean addServer(java.lang.String serverName, java.lang.String userName)
          Add a new server user pair to the properties file
 boolean addServer(java.lang.String serverName, java.lang.String userName, boolean sslEnabled)
           
 boolean editServer(java.lang.String serverName, java.lang.String userName)
          Change user information for the specified server.
static LoginDialogSettings getInstance(boolean webenabled)
          Generate a LoginDialogSettings object for use in accessing the settings for the <@link DefaultLoginDialog
 java.lang.String getSelectedServer()
          The logged in server
 java.lang.String getSelectedUser()
          The user for the selected server
 java.util.ArrayList getServerList()
          Return the list of server that are stored in this class backed by a properties file
 java.util.HashMap getServerSslSupportMap()
          Return the map of server and ssl support
 java.lang.String getServerUser(java.lang.String serverName)
          Return the user for a server user pair
 boolean isSslEnabled(java.lang.String serverName)
           
 boolean removeServer(java.lang.String serverName)
          Remove this server from the stored list
 void setSelected(java.lang.String server, java.lang.String user)
          The selected server is the one that is currently logged in.
 void setSelected(java.lang.String server, java.lang.String user, boolean sslEnabled)
           
 void storeProperties(java.lang.String server, java.lang.String user)
          The server and user pairs are stored as a single entry in a properties file.
 void storeProperties(java.lang.String server, java.lang.String user, boolean sslEnabled)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getInstance

public static LoginDialogSettings getInstance(boolean webenabled)
Generate a LoginDialogSettings object for use in accessing the settings for the <@link DefaultLoginDialog
Returns:
the instance of LoginDialogSettings

getServerList

public java.util.ArrayList getServerList()
Return the list of server that are stored in this class backed by a properties file
Returns:
the list of servers

getServerSslSupportMap

public java.util.HashMap getServerSslSupportMap()
Return the map of server and ssl support
Returns:
the map of servers to ssl

getServerUser

public java.lang.String getServerUser(java.lang.String serverName)
Return the user for a server user pair
Parameters:
serverName -
Returns:
the user for this server

addServer

public boolean addServer(java.lang.String serverName,
                         java.lang.String userName)
Add a new server user pair to the properties file
Parameters:
serverName -
userName -
Returns:

addServer

public boolean addServer(java.lang.String serverName,
                         java.lang.String userName,
                         boolean sslEnabled)

removeServer

public boolean removeServer(java.lang.String serverName)
Remove this server from the stored list
Parameters:
serverName -
Returns:

editServer

public boolean editServer(java.lang.String serverName,
                          java.lang.String userName)
Change user information for the specified server. This will change what is the default when the login dialog is opened.
Parameters:
serverName -
userName -
Returns:
true if the change was successful

getSelectedServer

public java.lang.String getSelectedServer()
The logged in server
Returns:

getSelectedUser

public java.lang.String getSelectedUser()
The user for the selected server
Returns:

setSelected

public void setSelected(java.lang.String server,
                        java.lang.String user)
The selected server is the one that is currently logged in.
Parameters:
server -
user -

setSelected

public void setSelected(java.lang.String server,
                        java.lang.String user,
                        boolean sslEnabled)

storeProperties

public void storeProperties(java.lang.String server,
                            java.lang.String user)
The server and user pairs are stored as a single entry in a properties file. The format is <server> "|" user. This method creates the properties entry for each known setting
Parameters:
server -
user -

storeProperties

public void storeProperties(java.lang.String server,
                            java.lang.String user,
                            boolean sslEnabled)

isSslEnabled

public boolean isSslEnabled(java.lang.String serverName)

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.