|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.mdm.session.AbstractManagerWithPasswordStorage
com.sap.mdm.session.SessionManager
This class is memory cache for MDM sessions. It supply users with convenient interface for creating, retrieving and destroying sessions of all supported types. This class is wrapper class for internal class InternalSessionManager that includes the actual implementation.
| Method Summary | |
String |
createSession(MdmSessionContext ctx,
int sessionType,
String password)
Create and authenticate MDM session of the specified type. |
void |
destroyAllSessions()
Deprecated. |
void |
destroyAllSessions(boolean checkThreadCount)
Deprecated. |
void |
destroySession(MdmSessionContext ctx,
int sessionType)
Destroy session of the specified type that is managed by this SessionManaged instance. |
void |
destroySession(MdmSessionContext ctx,
int sessionType,
boolean checkThreadCount)
Destroy session of the specified type that is managed by this SessionManaged instance. |
void |
destroySessions(MdmSessionContext ctx)
Destroy sessions of all types that are related to the specified session context. |
void |
destroySessions(MdmSessionContext ctx,
boolean checkThreadCount)
Destroy sessions of all types that are related to the specified session context. |
void |
destroySessionsByApplication(String applicationName)
Deprecated. |
void |
destroySessionsByApplication(String applicationName,
boolean checkThreadCount)
Deprecated. |
void |
destroySessionsByServer(String serverName)
Deprecated. |
void |
destroySessionsByServer(String serverName,
boolean checkThreadCount)
Deprecated. |
static SessionManager |
getInstance()
Returns the single instance of SessionManager class |
String |
getSession(MdmSessionContext ctx,
int sessionType)
Get session ID for the specified session type |
static void |
refreshInstance()
Deprecated. |
void |
releaseSession(MdmSessionContext ctx,
int sessionType)
Release session of the specified type that is managed by this SessionManaged instance. |
void |
releaseSession(MdmSessionContext ctx,
int sessionType,
boolean checkThreadCount)
Release session of the specified type that is managed by this SessionManaged instance. |
void |
releaseSessions(MdmSessionContext ctx)
Release sessions of all types that are related to the specified session context. |
void |
releaseSessions(MdmSessionContext ctx,
boolean checkThreadCount)
Release sessions of all types that are related to the specified session context. |
void |
setDestroyTimeOut(long destroyTimeOut)
Deprecated. |
void |
setPasswordStorage(String applicationId,
MdmPasswordStorage passwordStorage)
Sets password storage for the specified application If the application is supposed to use password storage then this method should be called once per application run session. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static SessionManager getInstance()
public static void refreshInstance()
public String createSession(MdmSessionContext ctx,
int sessionType,
String password)
throws SessionException
setPasswordStorage
ctx - session contextsessionType - session typepassword -
SessionException - if there is mismatch between session context and session type or
if can not create/authenticate session.for session type constants
public String getSession(MdmSessionContext ctx,
int sessionType)
throws SessionException
ctx - session contextsessionType - session type (1-ServerSession, 2-RepositorySession, 3-UserSession)
SessionException - if there is mismatch between session context and session type or
if can not create/authenticate session.for session type constants
public void releaseSession(MdmSessionContext ctx,
int sessionType)
throws SessionException
ctx - session contextsessionType - session type (1-ServerSession, 2-RepositorySession, 3-UserSession)
SessionException - if there is mismatch between session context and session typefor session type constantspublic void releaseSessions(MdmSessionContext ctx)
ctx - session context
public void destroySession(MdmSessionContext ctx,
int sessionType)
throws SessionException
ctx - server session contextsessionType - session type (1-ServerSession, 2-RepositorySession, 3-UserSession)
SessionException - if there is mismatch between session context and session type or
if session can not be destroyedfor session type constants
public void destroySessions(MdmSessionContext ctx)
throws SessionException
ctx - server session context
SessionException - if one of the sessions can not be destroyed
public void destroySessionsByServer(String serverName)
throws SessionException
serverName - the server name
SessionException - if one of the sessions can not be destroyed
public void destroySessionsByApplication(String applicationName)
throws SessionException
applicationName - the application ID
SessionException - if one of the sessions can not be destroyed
public void destroyAllSessions()
throws SessionException
SessionException - if one of the sessions can not be destroyedpublic void setDestroyTimeOut(long destroyTimeOut)
destroyTimeOut - destroy timeout in milliseconds. Set -1 if sessions never should be destroyed
public void setPasswordStorage(String applicationId,
MdmPasswordStorage passwordStorage)
setPasswordStorage in class AbstractManagerWithPasswordStorageapplicationId - application unique IDpasswordStorage -
public void destroySessions(MdmSessionContext ctx,
boolean checkThreadCount)
throws SessionException
ctx - server session contextcheckThreadCount - boolean, if true, the session will not be destroyed in case it is in use by other thread
SessionException - if one of the sessions can not be destroyed
public void destroySession(MdmSessionContext ctx,
int sessionType,
boolean checkThreadCount)
throws SessionException
ctx - server session contextsessionType - session type (1-ServerSession, 2-RepositorySession, 3-UserSession)checkThreadCount - boolean, if true, the session will not be destroyed in case it is in use by other thread
SessionException - if there is mismatch between session context and session type or
if session can not be destroyedfor session type constants
public void destroySessionsByApplication(String applicationName,
boolean checkThreadCount)
throws SessionException
applicationName - the application IDcheckThreadCount - boolean, if true, the session will not be destroyed in case it is in use by other thread
SessionException - if one of the sessions can not be destroyed
public void destroySessionsByServer(String serverName,
boolean checkThreadCount)
throws SessionException
serverName - the server namecheckThreadCount - boolean, if true, the session will not be destroyed in case it is in use by other thread
SessionException - if one of the sessions can not be destroyed
public void releaseSession(MdmSessionContext ctx,
int sessionType,
boolean checkThreadCount)
throws SessionException
ctx - session contextsessionType - session type (1-ServerSession, 2-RepositorySession, 3-UserSession)checkThreadCount - boolean, if true, the session will not be destroyed in case it is in use by other thread
SessionException - if there is mismatch between session context and session typefor session type constants
public void releaseSessions(MdmSessionContext ctx,
boolean checkThreadCount)
ctx - session contextcheckThreadCount - boolean, if true, the session will not be destroyed in case it is in use by other thread
public void destroyAllSessions(boolean checkThreadCount)
throws SessionException
checkThreadCount - boolean, if true, the session will not be destroyed in case it is in use by other thread
SessionException - if one of the sessions can not be destroyed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright 2004-2007 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.