com.ibm.commerce.adapter
Class DummySessionContext

java.lang.Object
  |
  +--com.ibm.commerce.adapter.DummySessionContext
All Implemented Interfaces:
SessionContext

public class DummySessionContext
extends java.lang.Object
implements SessionContext

Defines a dummy session context.


Field Summary
static DummySessionContext singleton
           
 
Constructor Summary
DummySessionContext()
          DummySessionContext constructor.
 
Method Summary
 void commit()
          This method commits the session data.
 com.ibm.commerce.adapter.WCSCookie getCookie()
           
 java.lang.Object getExtendedSessionData(java.lang.String strParamName)
          Gets an extended session data.
 SessionData getSessionData()
          This methods retrieves the session data.
 java.lang.String getUniqueSessionTag()
          Gets the session tag.
 java.lang.Long getValidUserId()
          This method returns a validated user id.
 void rollback()
          This method rolls back the previous set session data.
 void setExtendedSessionData(java.lang.String istrParamName, java.lang.Object oParamVal)
          Sets an extended session data.
 void setSessionData(SessionData value)
          This mehtod sets the session data.
 void setUniqueSessionTag(java.lang.String strSessionTag)
          Sets the unique session tag.
static DummySessionContext singleton()
          Returns a singleton instance of a DummySessionContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

public static DummySessionContext singleton
Constructor Detail

DummySessionContext

public DummySessionContext()
DummySessionContext constructor.
Method Detail

commit

public void commit()
This method commits the session data.
Specified by:
commit in interface SessionContext
Following copied from interface: com.ibm.commerce.adapter.SessionContext
Throws:
ECSystemException -  

getCookie

public com.ibm.commerce.adapter.WCSCookie getCookie()

getExtendedSessionData

public java.lang.Object getExtendedSessionData(java.lang.String strParamName)
Gets an extended session data.

Specified by:
getExtendedSessionData in interface SessionContext
Returns:
Object - the session data object corresponding to the given name

getSessionData

public SessionData getSessionData()
This methods retrieves the session data.
Specified by:
getSessionData in interface SessionContext
Following copied from interface: com.ibm.commerce.adapter.SessionContext
Returns:
SessionData

getUniqueSessionTag

public java.lang.String getUniqueSessionTag()
Gets the session tag.

Specified by:
getUniqueSessionTag in interface SessionContext
Returns:
String - session tag

getValidUserId

public java.lang.Long getValidUserId()
This method returns a validated user id.
Specified by:
getValidUserId in interface SessionContext
Following copied from interface: com.ibm.commerce.adapter.SessionContext
Returns:
Long - the user Id
Throws:
ECSystemException -  

rollback

public void rollback()
This method rolls back the previous set session data.
Specified by:
rollback in interface SessionContext
Following copied from interface: com.ibm.commerce.adapter.SessionContext
Throws:
ECSystemException -  

setExtendedSessionData

public void setExtendedSessionData(java.lang.String istrParamName,
                                   java.lang.Object oParamVal)
                            throws ECException
Sets an extended session data.

Specified by:
setExtendedSessionData in interface SessionContext
Parameters:
istrParamName - String - session data name
istrParamValue - String - session data value
Throws:
ECSystemException -  

setSessionData

public void setSessionData(SessionData value)
This mehtod sets the session data.
Specified by:
setSessionData in interface SessionContext
Following copied from interface: com.ibm.commerce.adapter.SessionContext
Throws:
ECSystemException -  

setUniqueSessionTag

public void setUniqueSessionTag(java.lang.String strSessionTag)
                         throws ECException
Sets the unique session tag.

Specified by:
setUniqueSessionTag in interface SessionContext
Parameters:
strSessionTag - String - session specific tag
Throws:
ECSystemException -  

singleton

public static DummySessionContext singleton()
Returns a singleton instance of a DummySessionContext.