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.
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.
Executes the usecase. During this method error and info messages are
filled in. If getErrorMessages() returns an empty array, the operation
succeeded. Otherwise, the operation failed.
throws: UsecaseException - if an error occured that causes an unstablesystem.
Returns the info messages from the previous operation. Info messages do
not prevent the operation from being executed.
A list of UsecaseMessage objects.
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. An object.
Returns the webapp URL which should be redirected to after the usecase is
completed.
Parameters: success - If the usecase was completed successfully. A web application URL.
Determine if the usecase has error messages.
Provides a way of checking for errors without actually retrieving them.
true if the usecase resulted in error messages.
Determine if the usecase has info messages.
Provides a way of checking for info messages without actually retrieving them.
true if the usecase resulted in info messages being generated.
Sets a parameter from the form. This method is called for parts in
multipart requests.
Parameters: name - The parameter name. Parameters: value - The parameter value.
If you invoke this method, the usecase won't use its own isolated session,
but the passed test session. The session will not be committed when the usecase
is invoked, so you can check it for modifications without modifying the repository.
Parameters: session - The test session.