com.ibm.commerce.programadapter.security

Class DummyProgramAdapterSessionContext

  • java.lang.Object
    • com.ibm.commerce.adapter.AbstractSessionLessAdapterSessionContext
      • com.ibm.commerce.programadapter.security.DummyProgramAdapterSessionContext
  • All Implemented Interfaces:
    com.ibm.commerce.adapter.SessionContext, ProgramAdapterSessionContext


    public class DummyProgramAdapterSessionContext
    extends com.ibm.commerce.adapter.AbstractSessionLessAdapterSessionContext
    implements ProgramAdapterSessionContext
    Dummy Implementation of the com.ibm.commerce.programadapter.security.ProgramAdapterSessionContext interface.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DummyProgramAdapterSessionContext()
      Creates the dummy implementation of the program adapter session context.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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
      • Methods inherited from class com.ibm.commerce.adapter.AbstractSessionLessAdapterSessionContext

        commit, getExtendedSessionData, getSessionData, getUniqueSessionTag, resolveActivityToken, rollback, setExtendedSessionData, setSessionData, setUniqueSessionTag, updateActivityToken, updateBaseContext
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.commerce.adapter.SessionContext

        commit, getExtendedSessionData, getSessionData, getUniqueSessionTag, resolveActivityToken, rollback, setExtendedSessionData, setSessionData, setUniqueSessionTag, updateActivityToken
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DummyProgramAdapterSessionContext

        public DummyProgramAdapterSessionContext()
        Creates the dummy implementation of the program adapter session context.
    • Method Detail

      • getCookie

        public com.ibm.commerce.server.WCSCookie getCookie()
        Will always return null.
        Returns:
        Always will return null.
      • getValidUserId

        public java.lang.Long getValidUserId()
                                      throws ECSystemException
        Returns a valid user identifier.
        Specified by:
        getValidUserId in interface com.ibm.commerce.adapter.SessionContext
        Overrides:
        getValidUserId in class com.ibm.commerce.adapter.AbstractSessionLessAdapterSessionContext
        Returns:
        Will always return the generic user identifier com.ibm.commerce.server.ECConstants.EC_GENERIC_USER_REFNUM.
        Throws:
        ECSystemException - will never happen.
      • setRequest

        public void setRequest(java.lang.Object request)
        Sets the Request Object.
        Specified by:
        setRequest in interface ProgramAdapterSessionContext
        Parameters:
        request - the request object.
      • setResponse

        public void setResponse(java.lang.Object response)
        Sets the Response Object
        Specified by:
        setResponse in interface ProgramAdapterSessionContext
        Parameters:
        response - the response object.
      • didErrorOccur

        public boolean didErrorOccur()
        Indicates whether an error occured and the Program Adapter should indicate this. This will be called when the response is processed.
        Specified by:
        didErrorOccur in interface ProgramAdapterSessionContext
        Returns:
        Alway will return false.