java.lang.Object | +--com.ibm.commerce.programadapter.security.DummyProgramAdapterSessionContext
Dummy Implementation of the com.ibm.commerce.programadapter.security.ProgramAdapterSessionContext interface.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM Copyright notice field. |
Constructor Summary | |
---|---|
DummyProgramAdapterSessionContext() Creates the dummy implementation of the program adapter session context. |
Method Summary | |
---|---|
void |
commit() Dummy method to commit the session data. |
boolean |
didErrorOccur() Indicates whether an error occured and the Program Adapter should indicate this. |
CommandProperty |
getCommandProperty() Returns the command property. |
com.ibm.commerce.server.WCSCookie |
getCookie() Will always return null. |
java.lang.Object |
getExtendedSessionData(java.lang.String strParamName) Will always return null because extended session data is not stored. |
SessionData |
getSessionData() Will always return null because the session data is not stored. |
java.lang.String |
getUniqueSessionTag() Gets the unique session tag. |
java.lang.Long |
getValidUserId() Returns a valid user identifier. |
void |
rollback() Rollback previously set session data. |
void |
setCommandProperty(
CommandProperty propertyCommand) Sets the CommandProperty |
void |
setConfiguration(
TypedProperty config) Sets the configuration for the session context. |
void |
setExtendedSessionData(java.lang.String strParamName,
java.lang.Object strParamVal) Sets an extended session data. |
void |
setRequest(java.lang.Object request) Sets the Request Object. |
void |
setResponse(java.lang.Object response) Sets the Response Object |
void |
setSessionData(
SessionData sessionData) Sets the base session data. |
void |
setUniqueSessionTag(java.lang.String strSessionTag) Sets the unique session tag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public DummyProgramAdapterSessionContext()
Method Detail |
---|
public void commit() throws ECSystemException
commit
in interface
SessionContext
ECSystemException
- will never happen.public CommandProperty getCommandProperty()
getCommandProperty
in interface
ProgramAdapterSessionContext
public com.ibm.commerce.server.WCSCookie getCookie()
public java.lang.Object getExtendedSessionData(java.lang.String strParamName)
getExtendedSessionData
in interface
SessionContext
strParamName
- the parameter name.public SessionData getSessionData()
getSessionData
in interface
SessionContext
public java.lang.String getUniqueSessionTag()
getUniqueSessionTag
in interface
SessionContext
public java.lang.Long getValidUserId() throws ECSystemException
getValidUserId
in interface
SessionContext
com.ibm.commerce.server.ECConstants.EC_GENERIC_USER_REFNUM
.ECSystemException
- will never happen.public void rollback() throws ECSystemException
rollback
in interface
SessionContext
ECSystemException
- will never happen because the rollback
does not do anything since nothing will be stored.public void setCommandProperty(CommandProperty propertyCommand)
setCommandProperty
in interface
ProgramAdapterSessionContext
public void setConfiguration(TypedProperty config)
setConfiguration
in interface
ProgramAdapterSessionContext
config
- the session context
configuration.public void setExtendedSessionData(java.lang.String strParamName, java.lang.Object strParamVal) throws ECException
setExtendedSessionData
in interface
SessionContext
strParamName
- the name of the parameter.ECException
- will never happen because the method does not do
any action.public void setRequest(java.lang.Object request)
setRequest
in interface
ProgramAdapterSessionContext
request
- the request object.public void setResponse(java.lang.Object response)
setResponse
in interface
ProgramAdapterSessionContext
response
- the response object.public void setSessionData(SessionData sessionData) throws ECSystemException
setSessionData
in interface
SessionContext
sessionData
- the session data.ECSystemException
- will never happen because the method does
not do any action.public void setUniqueSessionTag(java.lang.String strSessionTag) throws ECException
setUniqueSessionTag
in interface
SessionContext
strSessionTag
- the session specific tagECException
- will never happen because the method does not
perform any action.public boolean didErrorOccur()
didErrorOccur
in interface
ProgramAdapterSessionContext