|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
com.essbase.eas.server.SessionManager
public class SessionManager
SessionManager This class coordinates authenticated users with their database connection parameters held in state. It passes an ISession on to SessionLogic to invoke the session's primitive calls. Must import class definition of every allowed ISession implementation (e.g. EssSession) ORDER OF ISESSION ATTRIBUTES String (session implementation class name) String (server machine name) String (user name) String (password) ...others where required by implementation
| Constructor Summary | |
|---|---|
SessionManager() |
|
| Method Summary | |
|---|---|
static ISession |
checkSession(java.lang.String sessionType, java.lang.String serverName, StoreService store, ServiceContext context)Check the user's context for a collection of sessions. |
static ISession |
checkSession(java.lang.String sessionType, java.lang.String serverName, StoreService store, ServiceContext context, java.util.Locale locale) |
static java.lang.Object |
getCSSUserObject(StoreService store, ServiceContext context)Return an external user object which is a CSSUserIF object |
static java.lang.String |
getEmailAddress(StoreService store, ServiceContext context)get the users email address information |
static java.lang.String |
getEmailName(StoreService store, ServiceContext context)Return the user's display or real name |
static java.lang.String |
getEmailSMTPHost(StoreService store, ServiceContext context)Return the SMTP host to use to send email messages from this user |
static FrameworkUser |
getFrameworkUser(StoreService store, ServiceContext context)Return an instance of the FrameworkUser for this context |
static java.util.ArrayList |
getLoggedOnUsers(StoreService store, ServiceContext context) |
static java.util.ArrayList |
getServerList(StoreService store, ServiceContext context)* Returns an ArrayList of Strings representing the servers that a given * user is authorised to access. |
static java.util.ArrayList |
getServerList(StoreService store, ServiceContext context, java.lang.String type) |
static ISession |
getSession(java.lang.String sessionType, java.lang.String serverName, StoreService store, ServiceContext context)Utility method signature defaults to US (see below) |
static ISession |
getSession(java.lang.String sessionType, java.lang.String serverName, StoreService store, ServiceContext context, boolean wait) |
static ISession |
getSession(java.lang.String sessionType, java.lang.String serverName, StoreService store, ServiceContext context, java.util.Locale locale, boolean wait, boolean checkOnly)Check the user's context for a collection of sessions. |
static java.lang.String |
getToken(StoreService store, ServiceContext context) |
static java.lang.String |
getUserName(StoreService store, ServiceContext context) |
static boolean |
isAuthenticatedSession(StoreService store, ServiceContext context)check for an authenticated session. |
static boolean |
isAuthenticatedSession(StoreService store, ServiceContext context, java.util.Locale locale)check for an authenticated session. |
static boolean |
isSupervisor(StoreService store, ServiceContext context)Return whether the user is supervisor |
static boolean |
isUserAdmin(StoreService store, ServiceContext context)Return whether the user is admin |
static void |
login(java.lang.String username, java.lang.String password, StoreService store, ServiceContext context)* Convenience method defaults to US locale |
static void |
login(java.lang.String username, java.lang.String password, StoreService store, ServiceContext context, java.util.Locale locale)* Requests authentication based on username and password, and requires * a handle to the PFServiceContext. |
static void |
logout(StoreService store, ServiceContext context)* Signature of logout which defaults to US locale |
static void |
logout(StoreService store, ServiceContext context, java.util.Locale locale)* Requests all active sessions shut down by calling logout in * SessionLogic for each session. |
protected static void |
logoutUser(java.util.HashMap map, java.lang.String username) |
static ISession |
reconnect(ISession session, java.lang.String serverName, java.util.PropertyResourceBundle pBundle) |
static void |
releaseSession(ISession session) |
static boolean |
removeSession(java.lang.String sessionType, java.lang.String serverName, StoreService store, ServiceContext context) |
static void |
setEmailSettings(StoreService store, ServiceContext context, java.lang.String emailName, java.lang.String emailAddress) |
protected static void |
setEmailSMTPHost(StoreService store, ServiceContext context, java.lang.String smtpHost)Set the smtp host so that it can be |
static void |
updateSessionParameters(java.lang.String sessionType, java.lang.String serverName, java.util.ArrayList parameters, StoreService store, ServiceContext context) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionManager()
| Method Detail |
|---|
public static ISession getSession(java.lang.String sessionType,
java.lang.String serverName,
StoreService store,
ServiceContext context)
throws MessageException
MessageException
public static ISession getSession(java.lang.String sessionType,
java.lang.String serverName,
StoreService store,
ServiceContext context,
boolean wait)
throws MessageException
MessageExceptionpublic static void releaseSession(ISession session)
public static boolean removeSession(java.lang.String sessionType,
java.lang.String serverName,
StoreService store,
ServiceContext context)
public static boolean isAuthenticatedSession(StoreService store,
ServiceContext context)
throws MessageException
store -context -MessageException
public static boolean isAuthenticatedSession(StoreService store,
ServiceContext context,
java.util.Locale locale)
throws MessageException
store -context -locale -MessageException
public static ISession checkSession(java.lang.String sessionType,
java.lang.String serverName,
StoreService store,
ServiceContext context)
throws MessageException
MessageException
public static ISession checkSession(java.lang.String sessionType,
java.lang.String serverName,
StoreService store,
ServiceContext context,
java.util.Locale locale)
throws MessageException
MessageException
public static ISession getSession(java.lang.String sessionType,
java.lang.String serverName,
StoreService store,
ServiceContext context,
java.util.Locale locale,
boolean wait,
boolean checkOnly)
throws MessageException
MessageException
public static ISession reconnect(ISession session,
java.lang.String serverName,
java.util.PropertyResourceBundle pBundle)
throws MessageException
MessageException
public static void login(java.lang.String username,
java.lang.String password,
StoreService store,
ServiceContext context)
throws MessageException,
java.lang.Exception
MessageExceptionjava.lang.Exception
public static void login(java.lang.String username,
java.lang.String password,
StoreService store,
ServiceContext context,
java.util.Locale locale)
throws MessageException,
java.lang.Exception
MessageExceptionjava.lang.Exception
public static java.util.ArrayList getLoggedOnUsers(StoreService store,
ServiceContext context)
public static void updateSessionParameters(java.lang.String sessionType,
java.lang.String serverName,
java.util.ArrayList parameters,
StoreService store,
ServiceContext context)
public static void logout(StoreService store,
ServiceContext context)
throws MessageException
MessageException
public static void logout(StoreService store,
ServiceContext context,
java.util.Locale locale)
throws MessageException
MessageException
public static java.util.ArrayList getServerList(StoreService store,
ServiceContext context)
public static java.util.ArrayList getServerList(StoreService store,
ServiceContext context,
java.lang.String type)
public static java.lang.String getUserName(StoreService store,
ServiceContext context)
public static java.lang.String getToken(StoreService store,
ServiceContext context)
public static java.lang.Object getCSSUserObject(StoreService store,
ServiceContext context)
store -context -
public static boolean isSupervisor(StoreService store,
ServiceContext context)
public static boolean isUserAdmin(StoreService store,
ServiceContext context)
public static java.lang.String getEmailAddress(StoreService store,
ServiceContext context)
store -context -
public static java.lang.String getEmailName(StoreService store,
ServiceContext context)
store -context -
public static void setEmailSettings(StoreService store,
ServiceContext context,
java.lang.String emailName,
java.lang.String emailAddress)
public static java.lang.String getEmailSMTPHost(StoreService store,
ServiceContext context)
store -context -
protected static void setEmailSMTPHost(StoreService store,
ServiceContext context,
java.lang.String smtpHost)
store -context -smtpHost -
public static FrameworkUser getFrameworkUser(StoreService store,
ServiceContext context)
store -context -
protected static void logoutUser(java.util.HashMap map,
java.lang.String username)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||