|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.spray.loader.task.Action org.norther.tammi.spray.loader.task.Submit org.norther.tammi.spray.template.step.FlowStepAction org.norther.tammi.spray.template.step.NextStepAction org.norther.tammi.spray.template.step.FormStepAction
public class FormStepAction
A flow step action updating form variables of steps.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.norther.tammi.spray.loader.task.Task |
---|
Task.Control |
Field Summary |
---|
Fields inherited from class org.norther.tammi.spray.loader.task.Submit |
---|
EXECUTE_METHOD, SUBMIT_PREFIX |
Constructor Summary | |
---|---|
FormStepAction()
Constructs a new flow step action. |
Method Summary | |
---|---|
void |
clearParameters(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Clears the parameters. |
void |
loadPropertyFile(File file,
String encoding,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context,
Configuration config)
Loads the specified property file to the given configuration. |
void |
loadUploadedFile(File file,
String encoding,
Locale locale,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context,
Configuration config)
Loads the specified property file to the given configuration applying the specified locale. |
Task.Control |
submit(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Updates the form. |
void |
submitCancelStep(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Cancels the step. |
void |
submitFinishStep(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Finishes the step. |
void |
submitInsertForm(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Inserts incomplete data to the form. |
void |
submitNextStep(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Goes to the next step. |
void |
submitPreviousStep(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Goes to the previous step. |
void |
submitRenewForm(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Renews the form. |
void |
submitResetForm(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Resets the form. |
void |
submitReuseForm(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Reuses the form. |
void |
submitUpdateForm(ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Updates the form and finishes the step. |
VariableValidity |
update(boolean transition,
Collection<Variable> updates,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Updates attributes of form variables of the current flow step, if the step is not a read-only step and the principal has write permissions, and makes the step ready for forthcoming actions. |
VariableValidity |
update(boolean transition,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Updates attributes of form variables of the current flow step, if the step is not a read-only step and the principal has write permissions, and makes the step ready for forthcoming actions. |
VariableValidity |
update(Set<String> filter,
boolean transition,
boolean readonly,
Collection<Variable> updates,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Updates filtered attributes of form variables of the current flow step depending on the read-only option and makes the step ready for forthcoming actions. |
VariableValidity |
update(Set<String> filter,
boolean transition,
Collection<Variable> updates,
ServletRequest request,
ServletResponse response,
FilterChain chain,
StepFlowContext context)
Updates filtered attributes of form variables of the current flow step, if the step is not a read-only step and the principal has write permissions, and makes the step ready for forthcoming actions. |
Methods inherited from class org.norther.tammi.spray.template.step.NextStepAction |
---|
isNextStepEnabled, setNextStepEnabled, submitBackStep |
Methods inherited from class org.norther.tammi.spray.template.step.FlowStepAction |
---|
checkPermission, checkPermission, checkPermission, construct, execute, execute, finish, forward, getPermissibleRoles, getSignature, include, initialize, initialize, prepare, submit, submitOpenHelp |
Methods inherited from class org.norther.tammi.spray.loader.task.Submit |
---|
getAction, getAction, invoke |
Methods inherited from class org.norther.tammi.spray.loader.task.Action |
---|
find, find, getFilter, getMBeanServer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormStepAction()
Method Detail |
---|
public void clearParameters(ServletRequest request, ServletResponse response, FilterChain chain, StepFlowContext context)
request
- the request.response
- the response.chain
- the filter chain.context
- the flow context.public Task.Control submit(ServletRequest request, ServletResponse response, FilterChain chain, StepFlowContext context) throws Exception
submit
in class FlowStepAction
request
- the request.response
- the response.chain
- the filter chain.context
- the flow context.
Exception
- on errors.public void submitInsertForm(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 submitUpdateForm(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 submitResetForm(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 submitReuseForm(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 submitRenewForm(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 submitNextStep(ServletRequest request, ServletResponse response, FilterChain chain, StepFlowContext context) throws Exception
submitNextStep
in class NextStepAction
request
- the request.response
- the response.chain
- the filter chain.context
- the flow context.
Exception
- on errors.public void submitPreviousStep(ServletRequest request, ServletResponse response, FilterChain chain, StepFlowContext context) throws Exception
submitPreviousStep
in class NextStepAction
request
- the request.response
- the response.chain
- the filter chain.context
- the flow context.
Exception
- on errors.public void submitFinishStep(ServletRequest request, ServletResponse response, FilterChain chain, StepFlowContext context) throws Exception
submitFinishStep
in class NextStepAction
request
- the request.response
- the response.chain
- the filter chain.context
- the flow context.
Exception
- on errors.public void submitCancelStep(ServletRequest request, ServletResponse response, FilterChain chain, StepFlowContext context) throws Exception
submitCancelStep
in class NextStepAction
request
- the request.response
- the response.chain
- the filter chain.context
- the flow context.
Exception
- on errors.public VariableValidity update(boolean transition, ServletRequest request, ServletResponse response, FilterChain chain, StepFlowContext context) throws Exception
transition
- true if a transition is requested.request
- the request.response
- the response.chain
- the filter chain.context
- the flow context.
Exception
- on errors.public VariableValidity update(boolean transition, Collection<Variable> updates, ServletRequest request, ServletResponse response, FilterChain chain, StepFlowContext context) throws Exception
transition
- true if a transition is requested.updates
- an optional collection for updated variables.request
- the request.response
- the response.chain
- the filter chain.context
- the flow context.
Exception
- on errors.public VariableValidity update(Set<String> filter, boolean transition, Collection<Variable> updates, ServletRequest request, ServletResponse response, FilterChain chain, StepFlowContext context) throws Exception
filter
- an optional parameter filter.transition
- true if a transition is requested.updates
- an optional collection for updated variables.request
- the request.response
- the response.chain
- the filter chain.context
- the flow context.
Exception
- on errors.public VariableValidity update(Set<String> filter, boolean transition, boolean readonly, Collection<Variable> updates, ServletRequest request, ServletResponse response, FilterChain chain, StepFlowContext context) throws Exception
filter
- an optional parameter filter.transition
- true if a transition is requested.readonly
- true for a read-only step, false otherwise.updates
- an optional collection for updated variables.request
- the request.response
- the response.chain
- the filter chain.context
- the flow context.
Exception
- on errors.public void loadPropertyFile(File file, String encoding, ServletRequest request, ServletResponse response, FilterChain chain, StepFlowContext context, Configuration config) throws Exception
file
- the property file.encoding
- the encoding.request
- the request.response
- the response.chain
- the filter chain.context
- the flow context.config
- the parsed configuration.
Exception
- on errors.public void loadUploadedFile(File file, String encoding, Locale locale, ServletRequest request, ServletResponse response, FilterChain chain, StepFlowContext context, Configuration config) throws Exception
file
- the property file.encoding
- the encoding.locale
- the locale.request
- the request.response
- the response.chain
- the filter chain.context
- the flow context.config
- the parsed configuration.
Exception
- on errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |