© 2002 BEA Systems, Inc.


examples.e2e.b2b.processors
Class POProcessor

java.lang.Object
  |
  +--com.bea.portal.appflow.processor.AbstractPortalProcessor
        |
        +--examples.e2e.b2b.processors.AbstractProcessor
              |
              +--examples.e2e.b2b.processors.POProcessor

public class POProcessor
extends AbstractProcessor

The POProcessor runs business logic for the purchase order review portlet (purchaseorderreview.portlet).

This class handles the following portlet webflow events (See PortalAppflowConstants.PORTLET_WEBFLOW_EVENT_PARAMETER) directed to the purchase order review portlet:

  1. bea.portal.framework.internal.refresh
  2. null

The "bea.portal.framework.internal.refresh" and "null" events are handled identically.

If the StateValue is StateValue.START, StateValue.PRODUCT_SELECTED, StateValue.PART_SELECTED or StateValue.QPA_SENT a value of Constants.NOT_SELECTED is returned by process().

If the StateValue is StateValue.CREATE_PO then Constants.DISPLAY is returned by process().

Otherwise a value of Constants.READ_ONLY is returned by process().

Note: the "submitPO" event is handled by the POStatusProcessor.


Constructor Summary
POProcessor()
          Constructs a processor.
 
Method Summary
 java.lang.Object process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PortalRequest portalRequest, java.lang.Object requestContext, PipelineSession session, RequestState rState, SessionState sState)
          Processes events for the purchase order review portlet.
 
Methods inherited from class examples.e2e.b2b.processors.AbstractProcessor
getAppflowEvent, getInventoryProvider, getParts, getPipelineSession, getPortalEvent, getPortletEvent, getProducts, getPurchaseManager, getRequestState, getSessionState, getTimeoutCalendar, isPortletMaximized, process, submitPO, submitQPA
 
Methods inherited from class com.bea.portal.appflow.processor.AbstractPortalProcessor
getCurrentPortletState, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POProcessor

public POProcessor()
Constructs a processor.
Method Detail

process

public java.lang.Object process(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response,
                                PortalRequest portalRequest,
                                java.lang.Object requestContext,
                                PipelineSession session,
                                RequestState rState,
                                SessionState sState)
                         throws ProcessingException
Processes events for the purchase order review portlet.

Parameters:
request - an HttpServletRequest to process.
response - the HttpServletRequest associated with the request.
portalRequest - the PortalRequest associated with this http request.
requestContext - the webflow request context.
session - the PipelineSession object associated with this request.
requestState - the RequestState associated with this http request.
sessionState - the SessionState associated with this user session.
Returns:

  1. If the StateValue is StateValue.START, StateValue.PRODUCT_SELECTED, StateValue.PART_SELECTED or StateValue.QPA_SENT a value of Constants.NOT_SELECTED is returned by process().
  2. If the StateValue is StateValue.CREATE_PO then Constants.DISPLAY is returned by process().
  3. Otherwise a value of Constants.READ_ONLY is returned by process().
Overrides:
process in class AbstractProcessor

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved