|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProcessResult
Convenient wrapper for the result of a process.
The result property returns any object generated by the
process that is to be returned to the presentation tier.
The messages property is a list of any confirmation
messages to be displayed by the presentation tier.
These may be keys into a resource bundle, or literal text,
depending on whether the application is localized.
The dispatchPath property returns any special advice regarding
the next step in the workflow. Null indicates the nominal "success"
path should be followed.
The data property is any actual data returned from storage.
This may be a single record or a collection of records
(see isSingleForm()
).
Method Summary | |
---|---|
boolean |
addMessage(Object message)
Deprecated. Add a message to the list. |
Object |
getData()
Deprecated. Return the data object. |
String |
getDispatch()
Deprecated. The dispatch property can be used to re-route control to an non-default location, either as a system path or via a logical name (e.g ActionForward). |
List |
getMessages()
Deprecated. Return the messages list. |
String |
getName()
Deprecated. Return the attribute name for the result object. |
String |
getScope()
Deprecated. Return the scope under which to store this result object. |
boolean |
isAggregate()
Deprecated. Return whether the result of this ProcessResult is a collection of contains other ProcessResult objects to be handled individually. |
boolean |
isData()
Deprecated. Return whether data object has been set. |
boolean |
isDispatch()
Deprecated. Return whether dispatch advice has been set. |
boolean |
isDispatchPath()
Deprecated. Return whether dispatch advice is suppose to be a true path or a logical name (e.g. |
boolean |
isExposed()
Deprecated. Return the exposed state. |
boolean |
isMessages()
Deprecated. Return whether there are any messages queued. |
boolean |
isSingleForm()
Deprecated. Return the single-form state: list of 0 or more records=FALSE, exactly one record=TRUE. |
void |
setAggregate(boolean aggregate)
Deprecated. Assign a new container state. |
void |
setData(Object data)
Deprecated. Assign a new data object. |
void |
setDispatch(String dispatch)
Deprecated. Field to store dispatch property. |
void |
setDispatchPath(boolean dispatchPath)
Deprecated. Indicates whether dispatch advice (if any) is suppose to be a path or a logical name (e.g. |
void |
setExposed(boolean exposed)
Deprecated. Indicates whether the result should be exposed to the rest of the application through a context. |
void |
setName(String name)
Deprecated. Set the attribute name for this result object. |
void |
setScope(String scope)
Deprecated. Set the scope under which to store this result object. |
void |
setSingleForm(boolean singleForm)
Deprecated. Set the single-form state: list of 0 or more records=FALSE, exactly one record=TRUE. |
Method Detail |
---|
String getName()
Typically, this will be set by the caller but is provided in case a special name must be used or a way is needed to distingish between result objects.
void setName(String name)
name
- The new nameString getScope()
void setScope(String scope)
scope
- The new scopeboolean isSingleForm()
void setSingleForm(boolean singleForm)
Set
- to true for single form.boolean isExposed()
void setExposed(boolean exposed)
multiple
- The new exposedObject getData()
void setData(Object data)
data
- The new data objectboolean isData()
boolean isAggregate()
void setAggregate(boolean aggregate)
aggregate
- Set to true for aggregate resultList getMessages()
boolean isMessages()
boolean addMessage(Object message)
String getDispatch()
setDispatchPath()
void setDispatch(String dispatch)
boolean isDispatch()
boolean isDispatchPath()
void setDispatchPath(boolean dispatchPath)
dispatchPath
- The new dispatch advice
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |