public class FlowResult extends Object
| Constructor and Description |
|---|
FlowResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String newError)
Add a new single error to the error list.
|
String |
getCharacters()
Return the notice characters
|
boolean |
getContinue()
Determine if the user should progress to the
next step in the flow.
|
List<String> |
getErrors()
Return the current list of errors.
|
String |
getErrorString()
Return the list of errors in string form, i.e.
|
String |
getHeader()
Return the notice header
|
String |
getMessage()
return the notice message
|
String |
getOutcome()
Get the notice outcome in string form, either success
or failure.
|
Object |
getParameter(String name)
Find the attached parameter with the given name.
|
void |
setCharacters(String characters)
Set the notice characters
|
void |
setContinue(boolean continuep)
Set the continuation parameter determining if the
user should progress to the next step in the flow.
|
void |
setErrors(List<String> errors)
Set the results errors, note this will remove any previous errors.
|
void |
setHeader(Message header)
Set the notice header.
|
void |
setMessage(Message message)
Set the notice message
This must be an i18n dictionary key
|
void |
setOutcome(boolean success)
Set the notice outcome to either success or failure.
|
void |
setParameter(String name,
Object value)
Attach a new parameter to this result object with the specified
name & value.
|
public void setContinue(boolean continuep)
public boolean getContinue()
public void setOutcome(boolean success)
success - True for success, false for failure.public String getOutcome()
public void setHeader(Message header)
public String getHeader()
public void setMessage(Message message)
public String getMessage()
public void setCharacters(String characters)
public String getCharacters()
public void setErrors(List<String> errors)
errors - New error list.public void addError(String newError)
newError - New error.public String getErrorString()
public void setParameter(String name, Object value)
name - The parameter's namevalue - The parameter's value.Copyright © 2016 DuraSpace. All Rights Reserved.