public class DummyProgramAdapterSessionContext extends com.ibm.commerce.adapter.AbstractSessionLessAdapterSessionContext implements ProgramAdapterSessionContext
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Constructor and Description |
---|
DummyProgramAdapterSessionContext()
Creates the dummy implementation of the program adapter session context.
|
Modifier and Type | Method and Description |
---|---|
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.Long |
getValidUserId()
Returns a valid user identifier.
|
void |
setCommandProperty(CommandProperty propertyCommand)
Sets the CommandProperty
|
void |
setConfiguration(TypedProperty config)
Sets the configuration for the session context.
|
void |
setRequest(java.lang.Object request)
Sets the Request Object.
|
void |
setResponse(java.lang.Object response)
Sets the Response Object
|
commit, getExtendedSessionData, getSessionData, getUniqueSessionTag, resolveActivityToken, rollback, setExtendedSessionData, setSessionData, setUniqueSessionTag, updateActivityToken, updateBaseContext
public static final java.lang.String COPYRIGHT
public DummyProgramAdapterSessionContext()
public CommandProperty getCommandProperty()
getCommandProperty
in interface ProgramAdapterSessionContext
public com.ibm.commerce.server.WCSCookie getCookie()
public java.lang.Long getValidUserId() throws ECSystemException
getValidUserId
in interface com.ibm.commerce.adapter.SessionContext
getValidUserId
in class com.ibm.commerce.adapter.AbstractSessionLessAdapterSessionContext
com.ibm.commerce.server.ECConstants.EC_GENERIC_USER_REFNUM
.ECSystemException
- will never happen.public void setCommandProperty(CommandProperty propertyCommand)
setCommandProperty
in interface ProgramAdapterSessionContext
commandProperty
- the command property.public void setConfiguration(TypedProperty config)
setConfiguration
in interface ProgramAdapterSessionContext
config
- the session context configuration.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 boolean didErrorOccur()
didErrorOccur
in interface ProgramAdapterSessionContext