|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.spray.loader.task.Action
org.norther.tammi.spray.loader.task.ActionEvent
org.norther.tammi.spray.template.step.FlowStepAction
public class FlowStepAction
Extends ActionEvent by providing a step flow context as the context parameter. The pre-action executes a prepare method and the post-action executes a finish method. The submit-action executes a submitted action, if available, and a done method.
Note that the default implementation does nothing and can be applied as a nop action when required.
| Field Summary |
|---|
| Fields inherited from interface org.norther.tammi.spray.template.flow.StepFlowConstants |
|---|
ADAPTABLE_STATE, DISPOSABLE_STATE, EXPLICIT_STATE, FINISHED_STATE, HELP_PIPE_PROPERTY, QUALIFIED_STATE, READ_ONLY_STATE, REPOSITORY_PROPERTY, SELECTABLE_STATE |
| Constructor Summary | |
|---|---|
FlowStepAction()
Constructs a new flow step action. |
|
| Method Summary | |
|---|---|
protected boolean |
checkPermission(FlowStep step,
int mask,
FilterChain chain,
StepFlowContext context)
Checks access permission for the specified step. |
protected boolean |
checkPermission(int mask,
FilterChain chain,
StepFlowContext context)
Checks access permission for the current step. |
void |
done(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Implements the default done method. |
void |
execute(ServletRequest request,
ServletResponse response,
FilterChain chain,
Object context)
Executes the submitted event. |
void |
execute(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Executes the submitted event. |
void |
finish(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Implements the default finish method. |
void |
forward(String path,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Implements the default forward method. |
protected String[] |
getPermissibleRoles(int mask,
StepFlowContext context)
Gets an array of role names permissible for the current flow. |
protected Class[] |
getSignature()
Gets the signature. |
void |
include(String path,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Implements the default include method. |
void |
initialize(ServletRequest request,
ServletResponse response,
FilterChain chain,
Object context)
Initializes customized functionality after construction but before the first execution. |
void |
initialize(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Implements the default initialize method. |
void |
prepare(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Implements the default prepare method. |
protected void |
pushError(Throwable error,
FilterChain chain)
Pushes an execution error to the error stack. |
void |
submit(ServletRequest request,
ServletResponse response,
FilterChain chain,
Object context)
Implements the default submit method if the specific one is not implemented. |
void |
submit(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Implements the default submit method. |
void |
submitOpenHelp(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Submits a redirection to step help. |
| Methods inherited from class org.norther.tammi.spray.loader.task.ActionEvent |
|---|
getAction, getAction, getAction, invoke |
| Methods inherited from class org.norther.tammi.spray.loader.task.Action |
|---|
find, getFilter, getMBeanServer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowStepAction()
| Method Detail |
|---|
public void initialize(ServletRequest request,
ServletResponse response,
FilterChain chain,
Object context)
Task
initialize in interface Taskinitialize in class ActionEventrequest - the request.response - the response.chain - the filter chain.context - a task specific context.
public void execute(ServletRequest request,
ServletResponse response,
FilterChain chain,
Object context)
throws Exception
ActionEvent
execute in interface Taskexecute in class ActionEventrequest - the request.response - the response.chain - the filter chain.context - the context.
Exception - on errors.
public void submit(ServletRequest request,
ServletResponse response,
FilterChain chain,
Object context)
throws Exception
ActionEvent
submit in class ActionEventrequest - the request.response - the response.chain - the filter chain.context - the template context.
Exception - on errors.
public void execute(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
public void initialize(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
request - the request.response - the response.chain - the filter chain.context - the flow context.
public void prepare(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
public void finish(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
public void submit(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
public void done(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
public void forward(String path,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
path - the forward path.request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
public void include(String path,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
path - the include path.request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
public void submitOpenHelp(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
throws Exception
request - the request.response - the response.chain - the filter chain.context - the flow context.
Exception - on errors.
protected String[] getPermissibleRoles(int mask,
StepFlowContext context)
throws Exception
mask - the action mask.context - the flow context.
Exception - on errors.
protected boolean checkPermission(int mask,
FilterChain chain,
StepFlowContext context)
mask - the action mask.chain - the filter chain.context - the flow context.
protected boolean checkPermission(FlowStep step,
int mask,
FilterChain chain,
StepFlowContext context)
step - the flow step.mask - the action mask.chain - the filter chain.context - the flow context.
protected void pushError(Throwable error,
FilterChain chain)
error - the error.chain - the filter chain.protected Class[] getSignature()
getSignature in class ActionEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||