public class

IPASessionManager

extends AbstractPersistable
java.lang.Object
   ↳ com.microstrategy.utils.serialization.AbstractPersistable
     ↳ com.microstrategy.web.ipa.IPASessionManager

Class Overview

This is stateless class, managing the IServer sessions and credentiasl for each environment in the topology And also managing the credentials of MHA.

Summary

Nested Classes
class IPASessionManager.EnvironmentSession  
class IPASessionManager.IncorrectCredentialsException  
[Expand]
Inherited Constants
From interface com.microstrategy.utils.serialization.EnumWebPersistableState
Fields
public static String ADMIN_ID
public static String PRIVILEGE_ADMINISTRATOR
public static String PRIVILEGE_MONITOR
Public Constructors
IPASessionManager(AppContext appContext)
IPASessionManager(AppTaskRequestContext reqContext)
Public Methods
void closeStatusChangedSessions(String iEnvId, IServerSessionFactory.SessionProperties ssp)
close sessions whose status changed
int getAuthenticationMode(String iServerId)
get password by serverId@return
String getBrowserLocaleId()
This method returns the Locale Id defined in web preferences as Language.
String getDescriptor(int key)
Map<String, WebAppException> getEnvsLoginMsgs()
Locale getLocale()
String getPassword(String iServerId)
get password by serverId@return
ArrayList<String> getPrivilegeList(String serverId)
String getUserName(String iServerId)
get user name by server Id@return
void ipaRestoreXMLState(String state)
boolean isEnvLoggedin(String iEnvId)
to see if the environment is logged in
String isIncLogin()
check if it is incremental login, if it is, then the landing page need to call login task again the landing page should check it whenever refreshing the landing page
boolean isServerLoggedin(String iServerId)
to see if the server is logged in
void loginAllEnvironments(String iEnvId, IServerSessionFactory.SessionProperties ssp, boolean isIPALoginTask)
setup connections and sessions with IServers in the whole environment list
void logoutEnvironments(String iEnvId)
logout environments
void restoreSessionFromURLSeperatedParas()
void restoreStateFromBrowserSettings()
ISimpleExecutor setupConnectionLessSession(String iServerName)
void validateSession(boolean byPassSessionCheck)
validate the I-Server sessions
void validateSession()
validate the I-Server sessions
String validateSessionSetupForEachEnvironment()
validate the sessions for each environment
Protected Methods
AbstractHandler getStateHandler()
void saveXMLState(StringBuffer buf, int howMuchState)
[Expand]
Inherited Methods
From class com.microstrategy.utils.serialization.AbstractPersistable
From class java.lang.Object
From interface com.microstrategy.utils.serialization.Persistable

Fields

public static String ADMIN_ID

public static String PRIVILEGE_ADMINISTRATOR

public static String PRIVILEGE_MONITOR

Public Constructors

public IPASessionManager (AppContext appContext)

public IPASessionManager (AppTaskRequestContext reqContext)

Public Methods

public void closeStatusChangedSessions (String iEnvId, IServerSessionFactory.SessionProperties ssp)

close sessions whose status changed

public int getAuthenticationMode (String iServerId)

get password by serverId@return

public String getBrowserLocaleId ()

This method returns the Locale Id defined in web preferences as Language. If default, it'll return browser's locale Id instead.

Returns
  • a String with the Locale ID.

public String getDescriptor (int key)

public Map<String, WebAppException> getEnvsLoginMsgs ()

public Locale getLocale ()

public String getPassword (String iServerId)

get password by serverId@return

public ArrayList<String> getPrivilegeList (String serverId)

public String getUserName (String iServerId)

get user name by server Id@return

public void ipaRestoreXMLState (String state)

public boolean isEnvLoggedin (String iEnvId)

to see if the environment is logged in

public String isIncLogin ()

check if it is incremental login, if it is, then the landing page need to call login task again the landing page should check it whenever refreshing the landing page

public boolean isServerLoggedin (String iServerId)

to see if the server is logged in

public void loginAllEnvironments (String iEnvId, IServerSessionFactory.SessionProperties ssp, boolean isIPALoginTask)

setup connections and sessions with IServers in the whole environment list

public void logoutEnvironments (String iEnvId)

logout environments

Throws
IndexOutOfBoundsException
MSTRCheckedException

public void restoreSessionFromURLSeperatedParas ()

public void restoreStateFromBrowserSettings ()

public ISimpleExecutor setupConnectionLessSession (String iServerName)

Throws
ExecutorException

public void validateSession (boolean byPassSessionCheck)

validate the I-Server sessions

public void validateSession ()

validate the I-Server sessions

public String validateSessionSetupForEachEnvironment ()

validate the sessions for each environment

Protected Methods

protected AbstractHandler getStateHandler ()

protected void saveXMLState (StringBuffer buf, int howMuchState)