|
© 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.RequestStateImpl
Maintains the portal state for a particular servlet request.
Constructor Summary | |
RequestStateImpl()
Constructs a new object. |
Method Summary | |
java.util.Calendar |
calendar()
Returns a Calendar for use during this request. |
long |
getDefaultQpaQty()
Returns the default quantity value to be displayed in the QPA form. |
java.lang.String |
getIconUrl(javax.servlet.http.HttpServletRequest request,
SessionState sState)
Returns a URL for obtaining the titlebar icon for the requesting portlet. |
java.util.List |
getParts()
Returns the parts inventory to be displayed. |
java.util.List |
getPOs()
Returns the purchase orders to be displayed |
java.lang.String |
getProcessImageURL()
Returns the image URL for the process portlet. |
java.util.List |
getProducts()
Returns the product inventory to be displayed. |
java.util.List |
getQuotes()
Returns the quotes to be displayed. |
CalendarFormData |
qpaCalendarFormData()
Returns date information collected from the QPA form for redisplay. |
boolean |
qpaFormDataError()
Returns true if an error occured when validating form data. |
int |
qpaFormDataErrorCount()
Returns a count of the number of errors that have been recorded for the QPA form. |
java.util.List |
qpaFormDataErrorMsg()
If qpaFormDataError() returns true this method will return a List of String messages associated
with the error(s). |
boolean |
quoteFormDataError()
Returns true if an error occured when validating form data. |
java.lang.String |
quoteFormDataErrorMsg()
If quoteFormDataError() returns true this method will return a message associated with the error. |
void |
setDefaultQpaQty(long qty)
Sets the default quantity value to be displayed in the QPA form. |
void |
setParts(java.util.List parts)
Sets this parts inventory to be displayed. |
void |
setPOs(java.util.List pos)
Sets the purchase orders to be displayed. |
void |
setProcessImageURL(java.lang.String url)
Sets the image URL for the process portlet. |
void |
setProducts(java.util.List products)
Sets the product inventory to be displayed. |
CalendarFormData |
setQpaCalendarFormData(CalendarFormData data)
Sets the for this request. |
void |
setQpaFormDataError(java.lang.String message)
Use to indicate an error has occured. |
void |
setQuoteFormDataError(java.lang.String msg)
Use to indicate an error has occured. |
void |
setQuotes(java.util.List quotes)
Sets the quotes to be displayed. |
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 RequestStateImpl()
Method Detail |
public java.util.Calendar calendar()
Calendar
for use during this request. By using this
Calendar
all processors and JSPs can use the same effective time
when evaluating logic or display output.
public java.lang.String getIconUrl(javax.servlet.http.HttpServletRequest request, SessionState sState) throws javax.servlet.jsp.JspException
request
- the HttpServletRequest
.sState
- the user's SessionState
.public java.util.List getProducts()
List
of Inventory
objects.public void setProducts(java.util.List products)
products
- a List
of Inventory
objects.public java.util.List getParts()
List
of Inventory
objects.public void setParts(java.util.List parts)
parts
- a List
of Inventory
objects.public long getDefaultQpaQty()
public void setDefaultQpaQty(long qty)
qty
- the default quantity to display in the form.public java.util.List getQuotes()
List
of PurchaseQuote
objects.public void setQuotes(java.util.List quotes)
quotes
- a List
of PurchaseQuote
objects.public java.util.List getPOs()
List
of PO
objects.public void setPOs(java.util.List pos)
pos
- a List
of PO
objects.public java.lang.String getProcessImageURL()
public void setProcessImageURL(java.lang.String url)
the
- current process image url.public boolean qpaFormDataError()
qpaFormDataErrorMsg()
method.
qpaFormDataErrorMsg()
,
qpaFormDataErrorCount()
,
setQpaFormDataError(java.lang.String)
public int qpaFormDataErrorCount()
qpaFormDataError()
returns false, otherwise the
the number of errors will be returned and will be equal to the size
of the List
returned by qpaFormDataErrorMsg()
.qpaFormDataError()
,
setQpaFormDataError(java.lang.String)
,
qpaFormDataErrorMsg()
public java.util.List qpaFormDataErrorMsg()
List
of String
messages associated
with the error(s).
List
of String
objects or null
if no errors have occured.qpaFormDataError()
,
qpaFormDataErrorCount()
,
setQpaFormDataError(java.lang.String)
public void setQpaFormDataError(java.lang.String message)
qpaFormDataErrorMsg()
call. Use of this method will
cause a call to qpaFormDataError()
to return true.
message
- a string indicating the error that occured.qpaFormDataErrorMsg()
,
qpaFormDataError()
,
qpaFormDataErrorCount()
public CalendarFormData qpaCalendarFormData()
CalendarFormData
or null. See QpaProcessor
for more
details on when this value is valid.public CalendarFormData setQpaCalendarFormData(CalendarFormData data)
CalendarFormData
for this request.
public boolean quoteFormDataError()
quoteFormDataErrorMsg()
method.
setQuoteFormDataError(java.lang.String)
,
quoteFormDataErrorMsg()
public java.lang.String quoteFormDataErrorMsg()
String
corresponding to the error that occurred.quoteFormDataError()
,
setQuoteFormDataError(java.lang.String)
public void setQuoteFormDataError(java.lang.String msg)
quoteFormDataErrorMsg()
.
Use of this method will cause a call to
quoteFormDataError()
to return true.
msg
- a string indicating the error that occured.quoteFormDataErrorMsg()
,
quoteFormDataError()
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 |