|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--examples.e2e.b2b.SessionStateImpl
The SessionState
maintains the portal state for a particular
HTTP session.
Constructor Summary | |
SessionStateImpl(StateValue state)
Constructs a new object with the current state value as specified by the input parameter. |
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
was submitted to the supplier. |
java.util.Calendar |
qpaSentTime()
Retrieves the time at which the customer sent the 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
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. |
java.lang.String |
toString()
Returns a string representation of this object, primarily intended for debugging. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SessionStateImpl(StateValue state)
state
- the current state for the new object.Method Detail |
public void reset()
public Inventory getProduct()
public void setProduct(Inventory product)
product
- the selected product.public Inventory getPart()
public void setPart(Inventory part)
part
- the selected part.public QPA getQpa()
public void setQpa(QPA qpa)
qpa
- the QPA for this session.public PurchaseQuote getQuote()
public void setQuote(PurchaseQuote quote)
quote
- the selected PurchaseQuote.public StateValue getState()
public void setState(StateValue state)
state
- the new state for this session.public boolean quoteTimedOut(java.util.Calendar currentDate)
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.
currentDate
- a Calendar
representing
the current time with which to compare against the timeout
time.currentDate
is after
the timeout time, false otherwise.public boolean poTimedOut(java.util.Calendar currentDate)
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.
currentDate
- a Calendar
representing
the current time with which to compare against the timeout
time.currentDate
is after
the timeout time, false otherwise.public java.util.Calendar setQuoteTimeout(java.util.Calendar timeoutDate)
quoteTimedOut(java.util.Calendar)
which compares the
timeout time with the current time and returns an
appropriate boolean response.
timeoutDate
- the time after which the system is
considered to be timed out.Calendar
passed in to this
method.public java.util.Calendar setPOTimeout(java.util.Calendar timeoutDate)
poTimedOut(java.util.Calendar)
which compares the
timeout time with the current time and returns an
appropriate boolean response.
timeoutDate
- the time after which the system is
considered to be timed out.Calendar
passed in to this
method.public java.util.Calendar setPartSelectedTime(java.util.Calendar calendar)
calendar
- a Calendar
representing the
time the part was selected.Calendar
passed in to this
method.public java.util.Calendar partSelectedTime()
public java.util.Calendar setQPASentTime(java.util.Calendar calendar)
calendar
- a Calendar
representing the
time the QPA
was submitted.public java.util.Calendar qpaSentTime()
QPA
in
the price query portlet. This value is used for display
purposes.
public java.util.Calendar setQuoteSelectedTime(java.util.Calendar calendar)
calendar
- a Calendar
representing the
time the PurchaseQuote
was selected by the user.public java.util.Calendar quoteSelectedTime()
public java.util.Calendar setPOSubmittedTime(java.util.Calendar calendar)
calendar
- a Calendar
representing the
time the PO
was submitted.public java.util.Calendar poSubmittedTime()
public java.lang.String toString()
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |