Method Summary |
|
void | advance() Advances the usecase to the next step. |
void | cancel() Cancels the usecase. |
void | checkExecutionConditions() Checks the conditions right before the operation is executed. |
void | checkPostconditions() Checks the conditions after the usecase was executed. |
void | checkPreconditions() Checks the conditions before a form is displayed. |
void | execute() Executes the usecase. |
List | getErrorMessages() Returns the error messages from the previous operation. |
List | getInfoMessages() Returns the info messages from the previous operation. |
String | getName() |
Object | getParameter(String name) Returns the current value of a parameter.
Parameters: name - The parameter name. |
Object | getParameter(String name, Object defaultValue) Returns the current value of a parameter.
Parameters: name - The parameter name. Parameters: defaultValue - The default value to return if the parameter is not set. |
String | getParameterAsString(String name) Returns the current value of a parameter as a string.
Parameters: name - The parameter name. |
String[] | getParameterNames() |
Part | getPart(String name) Returns the current value of a part parameter as a string.
Parameters: name - The part parameter name. |
Session | getSession() |
String | getSourceURL() |
String | getTargetURL(boolean success) Returns the webapp URL which should be redirected to after the usecase is
completed.
Parameters: success - If the usecase was completed successfully. |
UsecaseView | getView() |
public boolean | hasErrors() Determine if the usecase has error messages. |
public boolean | hasInfoMessages() Determine if the usecase has info messages. |
boolean | isOptimistic() |
void | lockInvolvedObjects() Locks all objects that are involved in the transaction. |
void | setName(String name) |
void | setParameter(String name, Object value) Sets a parameter from the form. |
void | setPart(String name, Part value) Sets a parameter from the form. |
void | setSourceURL(String url) |
void | setTestSession(Session session) If you invoke this method, the usecase won't use its own isolated session,
but the passed test session. |
void | setView(UsecaseView view) |