© 2002 BEA Systems, Inc.


examples.e2e.b2b
Interface SessionState

All Known Implementing Classes:
SessionStateImpl

public interface SessionState
extends java.io.Serializable

The SessionState maintains the portal state for a particular HTTP session.


Method Summary
 Inventory getPart()
          Returns the part selected.
 Inventory getProduct()
          Returns the product selected.
 QPA getQpa()
          Returns the QPA.
 PurchaseQuote getQuote()
          Returns the PurchaseQuote.
 StateValue getState()
          Returns the current state for this session.
 java.util.Calendar partSelectedTime()
          Retrieves the time at which the customer selected the part in the part inventory portlet.
 java.util.Calendar poSubmittedTime()
          Retrieves the time at which the customer submitted the PO in the PO review portlet.
 boolean poTimedOut(java.util.Calendar currentDate)
          This method determines if the timeout has elapsed since the PO was submitted to the supplier.
 java.util.Calendar qpaSentTime()
          Retrieves the time at which the customer sent the QPA in the price query portlet.
 java.util.Calendar quoteSelectedTime()
          Retrieves the time at which the customer selected the quote in the price quote portlet.
 boolean quoteTimedOut(java.util.Calendar currentDate)
          This method determines if the timeout has elapsed since the QPA was submitted to suppliers.
 void reset()
          Clears all values from the object
 void setPart(Inventory part)
          Sets this part as the selected part.
 java.util.Calendar setPartSelectedTime(java.util.Calendar calendar)
          Sets the time at which the customer selected the part in the part inventory portlet.
 java.util.Calendar setPOSubmittedTime(java.util.Calendar calendar)
          Sets the time at which the customer submitted the PO in the PO review portlet.
 java.util.Calendar setPOTimeout(java.util.Calendar timeoutDate)
          Set the time after which the purchase order acknowledgement system is considered to be timed out.
 void setProduct(Inventory product)
          Sets this product as the selected product.
 void setQpa(QPA qpa)
          Sets the QPA.
 java.util.Calendar setQPASentTime(java.util.Calendar calendar)
          Sets the time at which the customer sent the qpa in the price query portlet.
 void setQuote(PurchaseQuote quote)
          Returns the PurchaseQuote.
 java.util.Calendar setQuoteSelectedTime(java.util.Calendar calendar)
          Sets the time at which the customer selected a quote in the price quote portlet.
 java.util.Calendar setQuoteTimeout(java.util.Calendar timeoutDate)
          Set the time after which the quote system is considered to be timed out.
 void setState(StateValue state)
          Sets the current state for this session.
 

Method Detail

reset

public void reset()
Clears all values from the object


getProduct

public Inventory getProduct()
Returns the product selected.


setProduct

public void setProduct(Inventory product)
Sets this product as the selected product.

Parameters:
product - the selected product.

getPart

public Inventory getPart()
Returns the part selected.


setPart

public void setPart(Inventory part)
Sets this part as the selected part.

Parameters:
part - the selected part.

getQpa

public QPA getQpa()
Returns the QPA.


setQpa

public void setQpa(QPA qpa)
Sets the QPA.

Parameters:
qpa - the QPA for this session.

getQuote

public PurchaseQuote getQuote()
Returns the PurchaseQuote.


setQuote

public void setQuote(PurchaseQuote quote)
Returns the PurchaseQuote.

Parameters:
quote - the selected PurchaseQuote.

getState

public StateValue getState()
Returns the current state for this session.


setState

public void setState(StateValue state)
Sets the current state for this session.

Parameters:
state - the new state for this session.

quoteTimedOut

public boolean quoteTimedOut(java.util.Calendar currentDate)
This method determines if the timeout has elapsed since the QPA was submitted to suppliers. This method works in conjunction with setQuoteTimeout(java.util.Calendar) which is used to indicate the date after which the quote system is considered to be timed out.

Parameters:
currentDate - a Calendar representing the current time with which to compare against the timeout time.
Returns:
true if currentDate is after the timeout time, false otherwise.

poTimedOut

public boolean poTimedOut(java.util.Calendar currentDate)
This method determines if the timeout has elapsed since the PO was submitted to the supplier. This method works in conjunction with setPOTimeout(java.util.Calendar) which is used to indicate the date after which the purchase order acknowledgement system is considered to be timed out.

Parameters:
currentDate - a Calendar representing the current time with which to compare against the timeout time.
Returns:
true if currentDate is after the timeout time, false otherwise.

setQuoteTimeout

public java.util.Calendar setQuoteTimeout(java.util.Calendar timeoutDate)
Set the time after which the quote system is considered to be timed out. This method works in conjunction with quoteTimedOut(java.util.Calendar) which compares the timeout time with the current time and returns an appropriate boolean response.

Parameters:
timeoutDate - the time after which the system is considered to be timed out.
Returns:
the Calendar passed in to this method.

setPOTimeout

public java.util.Calendar setPOTimeout(java.util.Calendar timeoutDate)
Set the time after which the purchase order acknowledgement system is considered to be timed out. This method works in conjunction with poTimedOut(java.util.Calendar) which compares the timeout time with the current time and returns an appropriate boolean response.

Parameters:
timeoutDate - the time after which the system is considered to be timed out.
Returns:
the Calendar passed in to this method.

setPartSelectedTime

public java.util.Calendar setPartSelectedTime(java.util.Calendar calendar)
Sets the time at which the customer selected the part in the part inventory portlet. This value is used for display purposes.

Parameters:
calendar - a Calendar representing the time the part was selected.
Returns:
the Calendar passed in to this method.

partSelectedTime

public java.util.Calendar partSelectedTime()
Retrieves the time at which the customer selected the part in the part inventory portlet. This value is used for display purposes.


setQPASentTime

public java.util.Calendar setQPASentTime(java.util.Calendar calendar)
Sets the time at which the customer sent the qpa in the price query portlet. This value is used for display purposes.

Parameters:
calendar - a Calendar representing the time the QPA was submitted.

qpaSentTime

public java.util.Calendar qpaSentTime()
Retrieves the time at which the customer sent the QPA in the price query portlet. This value is used for display purposes.


setQuoteSelectedTime

public java.util.Calendar setQuoteSelectedTime(java.util.Calendar calendar)
Sets the time at which the customer selected a quote in the price quote portlet. This value is used for display purposes.

Parameters:
calendar - a Calendar representing the time the PurchaseQuote was selected by the user.

quoteSelectedTime

public java.util.Calendar quoteSelectedTime()
Retrieves the time at which the customer selected the quote in the price quote portlet. This value is used for display purposes.


setPOSubmittedTime

public java.util.Calendar setPOSubmittedTime(java.util.Calendar calendar)
Sets the time at which the customer submitted the PO in the PO review portlet. This value is used for display purposes.

Parameters:
calendar - a Calendar representing the time the PO was submitted.

poSubmittedTime

public java.util.Calendar poSubmittedTime()
Retrieves the time at which the customer submitted the PO in the PO review portlet. This value is used for display purposes.


© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved