|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.core.pool.RecyclableSupport org.norther.tammi.core.pool.PoolableSupport org.norther.tammi.spray.engine.tool.GlobalTool org.norther.tammi.spray.engine.tool.ContextTool org.norther.tammi.spray.template.tool.FlowTool
public class FlowTool
A request context tool for controlling flows.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.norther.tammi.spray.template.flow.StepFlowContext |
---|
StepFlowContext.ActionPhase |
Field Summary |
---|
Fields inherited from interface org.norther.tammi.spray.template.flow.StepFlowContext |
---|
CURRENT_FLOW_INDICATOR |
Constructor Summary | |
---|---|
FlowTool()
Constructs a new flow tool. |
Method Summary | |
---|---|
FlowStep |
activateSelection()
Activates the selection. |
Set<Object> |
attributeKeySet()
Returns a set of context attribute keys. |
void |
cancelSelection()
Cancels the the current selection. |
boolean |
chainErrors()
Chains step flow and filter chain errors to the filter chain. |
boolean |
checkPermission(FlowStep flow,
int index,
String actions)
Checks access permission for the indexed step in the specified flow. |
boolean |
checkPermission(int index,
String actions)
Checks access permission for the indexed step in the current flow. |
boolean |
checkPermission(String actions)
Checks access permission for the current step. |
void |
clearAttributes()
Clears all context attributes. |
void |
clearErrors()
Clears throwables from the error stack. |
void |
clearSelection()
Clears the current selection. |
boolean |
clearState(FlowStep step,
Object state)
Clears the state of the specified step. |
boolean |
clearState(Object state)
Clears the state of the current step. |
boolean |
containsAttribute(Object key)
Checks a context attribute. |
boolean |
containsErrors()
Checks whether the erro stack contains errors. |
boolean |
containsValidity(String validity)
Returns true if the specified form validity is present in the current step. |
void |
defaultSelection()
Clears and resets the selection to the default one. |
void |
dispose()
Disposes the object by setting its disposed flag. |
boolean |
equalsValidity(String validity)
Returns true if the specified form validity equals validities of the current step. |
boolean |
exists(String name)
Checks whether the specified step or flow exists. |
void |
finishSelection(ServletRequest request,
ServletResponse response,
FilterChain chain)
Finishes a new selection. |
StepFlowContext.ActionPhase |
getActionPhase()
Gets the action phase. |
Object |
getAttribute(Object key)
Gets a context attribute. |
Object |
getAttribute(Object key,
Object defaultValue)
Gets a context attribute with a default value. |
Object |
getAttribute(String name,
String key,
Object defaultValue)
Gets a mapped attribute. |
protected StepFlowContext |
getCurrentContext()
Gets the current step flow context. |
String |
getDefaultFlowName()
Gets the default flow name. |
String |
getDefaultLabel()
Gets the default label. |
List<Throwable> |
getErrors()
Gets a list of all throwables in the error stack. |
FlowStep |
getFlow()
Gets the current flow. |
FlowFilter |
getFlowFilter()
Gets the flow filter of this context if available. |
String |
getFlowLabel()
Gets the label of the current flow. |
String |
getFlowLabel(String name)
Gets the label of the named flow. |
String |
getFlowName(String path)
Gets the flow part of the flow step path. |
List<FlowStep> |
getFlows()
Gets the current flow path as a list. |
protected FormFilter |
getFormFilter()
Gets the form filter from the filter stack. |
int[] |
getFormIndex(ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the form index of the specified request. |
String |
getFormName(ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the form name of the specified request. |
List<KeyValue<String,Variable>> |
getFormVariables(FlowStep step,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets a list of flow step form variables of the specified request. |
int |
getNextIndex()
Gets the index of the next step or 0 if not available. |
int |
getPreviousIndex()
Gets the index of the previous step or 0 if not available. |
Object |
getProperty(FlowStep step,
Object property,
boolean... local)
Gets the property of the specified step. |
Object |
getProperty(Object property,
boolean... local)
Gets the property of the current step. |
String |
getQualifiedName()
Gets the qualified name of the current step. |
String |
getQualifiedName(String name)
Gets the qualified name of the named step of the current flow. |
String |
getQualifiedName(String[] names)
Gets the qualified name of the named steps of the current flow. |
long |
getReservationTime()
Gets the last reservation time. |
protected ResourceFilter |
getResourceFilter()
Gets the resource filter from the filter stack. |
FlowStep |
getRoot()
Gets the root flow. |
protected SecuredFilter |
getSecuredFilter()
Gets the secured filter from the filter stack. |
String |
getSelectedAttribute()
Gets the name of the selected attribute with an optional form prefix. |
String |
getSelectedFlowName()
Gets the selected flow name. |
String |
getSelectedParameter(int index)
Gets the selected parameter. |
int |
getSelectedParameterCount()
Gets the number of selected parameters. |
int |
getSelectedStepIndex()
Gets the index of the selected step. |
String |
getSelectedStepPath()
Gets the selected step path. |
String |
getSelectedTemplatePath()
Gets the selected template path. |
Variable |
getSelectedVariable()
Gets the selected variable. |
FlowStep |
getStep()
Gets the current step. |
FlowStep |
getStep(int offset)
Gets the step relative to the current one or null if not available. |
int |
getStepIndex(int offset)
Gets the index of the step relative to the current one or 0 if not available. |
int |
getStepIndex(String path)
Gets the index part of the flow step path. |
String |
getStepLabel()
Gets the label of the current step. |
String |
getStepPath(String name,
int index)
Gets the path to the indexed step of the named flow. |
String |
getTemplate()
Gets the template of the current step. |
String |
getTemplate(int ind)
Gets the indexed template of the current step. |
TemplateContext |
getTemplateContext(ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the template context of the specified request. |
List<String> |
getTemplates()
Gets the templates of the current step. |
Object |
getTransition(FlowStep step,
Object state,
boolean... local)
Gets the transition of the specified step. |
Object |
getTransition(Object state,
boolean... local)
Gets the transition of the current step. |
String[] |
getValidities()
Gets the validities of the variables of the current step. |
String |
getValidity(int index)
Gets the validity of the indexed variable of the current step. |
Variable |
getVariable()
Gets the variable of the current step. |
Variable |
getVariable(int ind)
Gets the indexed variable of the current step. |
List<Variable> |
getVariables()
Gets the variables of the current step. |
boolean |
isCurrentIndex(int index)
Checks whether the indexed step is the current one. |
boolean |
isFlowEnabled(FlowStep flow)
Checks whether the specified flow is enabled. |
boolean |
isFormValidated()
Checks whether the form variables of the current step are validated. |
boolean |
isInterrupted()
Checks whether interrupted. |
boolean |
isLocalized()
Checks whether the current step is localized. |
boolean |
isNewSelection()
Checks whether a new selection is set. |
boolean |
isObsolete()
Checks whether this tool is obsolete. |
boolean |
isOnlyWrite()
Checks the only-write state of the current step. |
boolean |
isReadOnly()
Checks the read-only state of the current step. |
boolean |
isReserved()
Checks whether this context is reserved by some other thread than the current one. |
boolean |
isRestrictedRoutes()
Checks whether step routes are restricted by a route matrix. |
boolean |
isRoot()
Checks whether the current step is the root. |
boolean |
isSecure()
Checks whether the current step requires a secured connection. |
boolean |
isSecure(FlowStep step)
Checks whether the specified step requires a secured connection. |
boolean |
isState(FlowStep step,
Object state,
boolean... local)
Checks the state of the specified step. |
boolean |
isState(Object state,
boolean... local)
Checks the state of the current step. |
boolean |
isStepEnabled(FlowStep step,
FlowStep flow,
int index)
Checks whether the route from the specified step to the indexed one in the specified flow is enabled. |
boolean |
isStepEnabled(FlowStep flow,
int index)
Checks whether the route from the current step to the indexed one in the specified flow is enabled. |
boolean |
isValid()
Checks whether this context is valid. |
boolean |
isValidated()
Checks whether the current step has validated variables. |
boolean |
isWriteEven()
Checks the write-even state of the current step. |
boolean |
joinErrors()
Joins filter chain and step flow errors to the step flow. |
Throwable |
popError()
Pops a throwable from the error stack. |
FlowStep |
prepareSelection(ServletRequest request,
ServletResponse response,
FilterChain chain)
Prepares a new selection. |
void |
pushError(Throwable error)
Pushes a throwable to the error stack without throwing one. |
void |
release()
Releases this context after state changes. |
void |
removeAttribute(Object key)
Removes a context attribute. |
boolean |
removeAttribute(Object key,
Object value)
Removes a context attribute with the specidied value. |
Object |
removeProperty(FlowStep step,
Object property)
Removes the property of the specified step. |
Object |
removeProperty(Object property)
Removes the property of the current step. |
Object |
removeTransition(FlowStep step,
Object state)
Removes the transition of the specified step. |
Object |
removeTransition(Object state)
Removes the transition of the current step. |
void |
renewFormVariables(FlowStep step,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Renews flow step form variables of the specified request by creating a new instance of each variable. |
void |
reserve(long t)
Reserves this context for state changes at the specified time unless stale or interrupted. |
void |
resetFormVariables(FlowStep step,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Resets flow step form variables of the specified request by setting the form validities back to initial. |
void |
resetSelection()
Clears and resets the selection to the previous one. |
void |
resetValidities(String validity)
Resets the validity of all variables of the current step unless rejected. |
String |
resolve(String key)
Resolves a string resource from the flow specific bundle. |
void |
reuseFormVariables(FlowStep step,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Reuses flow step form variables of the specified request by resetting them and nullifying variable identities. |
void |
setAttribute(Object key,
Object value)
Sets a context attribute. |
Object |
setAttributeIfAbsent(Object key,
Object value)
Sets a context attribute if not already set. |
void |
setProperty(FlowStep step,
Object property,
Object value)
Sets the property of the specified step. |
void |
setProperty(Object property,
Object value)
Sets the property of the current step. |
void |
setSelectedAttribute(String name)
Sets the name of the selected attribute with an optional form prefix. |
void |
setSelectedFlowName(String name)
Sets the selected flow name. |
void |
setSelectedParameter(int index,
String value)
Sets the selected parameter. |
void |
setSelectedStepIndex(int step)
Sets the index of the selected step. |
void |
setSelectedStepPath(String name)
Sets the selected step path. |
void |
setSelectedTemplatePath(String template)
Sets the selected template path. |
void |
setSelectedVariable(Variable variable)
Sets the selected variable. |
void |
setState(FlowStep step,
Object state,
boolean flag)
Sets the state of the specified step. |
void |
setState(Object state,
boolean flag)
Sets the state of the current step. |
void |
setStepEnabled(FlowStep step,
FlowStep flow,
int index,
boolean flag)
Sets whether the route from the specified step to the indexed one is in the specified flow enabled. |
void |
setStepEnabled(FlowStep flow,
int index,
boolean flag)
Sets whether the route from the current step to the indexed one in the specified flow is enabled. |
void |
setTemplate(String path)
Sets the template of the current step. |
void |
setTransition(FlowStep step,
Object state,
Object value)
Sets the transition of the specified step. |
void |
setTransition(Object state,
Object value)
Sets the transition of the current step. |
void |
setValidity(int index,
String validity)
Sets the validity of the indexed variable of the current step. |
void |
setVariable(Variable var)
Sets the variable of the current step. |
int |
stepCount()
Returns the number of steps in the current flow. |
int |
templateCount()
Returns the number templates of the current step. |
int |
variableCount()
Returns the number variables of the current step. |
Methods inherited from class org.norther.tammi.spray.engine.tool.ContextTool |
---|
getFilter, getFilterChain, getFilterKey, getPrincipal, getRequest, getResponse, isFilterChanged |
Methods inherited from class org.norther.tammi.spray.engine.tool.GlobalTool |
---|
clone, getContext, getContextToolFilter, getMBeanServer, isBound, nop, toString, valueBound, valueUnbound |
Methods inherited from class org.norther.tammi.core.pool.PoolableSupport |
---|
disposed, recycled |
Methods inherited from class org.norther.tammi.core.pool.RecyclableSupport |
---|
isDisposed, recycle |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.norther.tammi.core.pool.Recyclable |
---|
isDisposed, recycle |
Constructor Detail |
---|
public FlowTool()
Method Detail |
---|
public void dispose()
RecyclableSupport
dispose
in interface Recyclable
dispose
in class ContextTool
public void reserve(long t)
StepFlowContext
reserve
in interface StepFlowContext
t
- the reservation time in msecs.public void release()
StepFlowContext
release
in interface StepFlowContext
public boolean isReserved()
StepFlowContext
isReserved
in interface StepFlowContext
public boolean isInterrupted()
Interruptable
isInterrupted
in interface Interruptable
public long getReservationTime()
StepFlowContext
getReservationTime
in interface StepFlowContext
public boolean isValid()
StepFlowContext
isValid
in interface StepFlowContext
public boolean isRoot()
StepFlowContext
isRoot
in interface StepFlowContext
public FlowStep getRoot()
StepFlowContext
getRoot
in interface StepFlowContext
public FlowStep getFlow()
StepFlowContext
getFlow
in interface StepFlowContext
public FlowStep getStep()
StepFlowContext
getStep
in interface StepFlowContext
public boolean isRestrictedRoutes()
StepFlowContext
isRestrictedRoutes
in interface StepFlowContext
public boolean isFlowEnabled(FlowStep flow)
StepFlowContext
isFlowEnabled
in interface StepFlowContext
flow
- the target flow.
public boolean isStepEnabled(FlowStep step, FlowStep flow, int index)
StepFlowContext
isStepEnabled
in interface StepFlowContext
step
- the source step.flow
- the target flow.index
- the index of the target step.
public void setStepEnabled(FlowStep step, FlowStep flow, int index, boolean flag)
StepFlowContext
setStepEnabled
in interface StepFlowContext
step
- the source step.flow
- the target flow.index
- the index of the target step.flag
- true if enabled, false otherwise.public StepFlowContext.ActionPhase getActionPhase()
StepFlowContext
getActionPhase
in interface StepFlowContext
public Object getAttribute(Object key)
StepFlowContext
getAttribute
in interface StepFlowContext
key
- the attribute key.
public Object getAttribute(Object key, Object defaultValue)
StepFlowContext
getAttribute
in interface StepFlowContext
key
- the attribute key.defaultValue
- the default value.
public void setAttribute(Object key, Object value)
StepFlowContext
setAttribute
in interface StepFlowContext
key
- the attribute key.value
- the attribute value.public Object setAttributeIfAbsent(Object key, Object value)
StepFlowContext
setAttributeIfAbsent
in interface StepFlowContext
key
- the attribute key.value
- the attribute value.
public boolean containsAttribute(Object key)
StepFlowContext
containsAttribute
in interface StepFlowContext
key
- the attribute key.
public void removeAttribute(Object key)
StepFlowContext
removeAttribute
in interface StepFlowContext
key
- the attribute key.public boolean removeAttribute(Object key, Object value)
StepFlowContext
removeAttribute
in interface StepFlowContext
key
- the attribute key.value
- the attribute value.
public void clearAttributes()
StepFlowContext
clearAttributes
in interface StepFlowContext
public Set<Object> attributeKeySet()
StepFlowContext
attributeKeySet
in interface StepFlowContext
public String getSelectedStepPath()
StepFlowContext
getSelectedStepPath
in interface StepFlowContext
public void setSelectedStepPath(String name)
StepFlowContext
setSelectedStepPath
in interface StepFlowContext
name
- the path of the selected step.public String getSelectedFlowName()
StepFlowContext
getSelectedFlowName
in interface StepFlowContext
public void setSelectedFlowName(String name)
StepFlowContext
Note that the selected step index is set to the beginning of the flow.
setSelectedFlowName
in interface StepFlowContext
name
- the name of the selected flow.public int getSelectedStepIndex()
StepFlowContext
getSelectedStepIndex
in interface StepFlowContext
public void setSelectedStepIndex(int step)
StepFlowContext
setSelectedStepIndex
in interface StepFlowContext
step
- the index of the selected step.public String getSelectedParameter(int index)
StepFlowContext
getSelectedParameter
in interface StepFlowContext
index
- the parameter index.
public void setSelectedParameter(int index, String value)
StepFlowContext
setSelectedParameter
in interface StepFlowContext
index
- the parameter index.value
- the selected parameter.public int getSelectedParameterCount()
StepFlowContext
getSelectedParameterCount
in interface StepFlowContext
public String getSelectedTemplatePath()
StepFlowContext
getSelectedTemplatePath
in interface StepFlowContext
public void setSelectedTemplatePath(String template)
StepFlowContext
Note that only one template can be passed through the selection, more complicated cases must be handled with other methods.
setSelectedTemplatePath
in interface StepFlowContext
template
- the selected template path.public Variable getSelectedVariable()
StepFlowContext
getSelectedVariable
in interface StepFlowContext
public void setSelectedVariable(Variable variable)
StepFlowContext
Note that only one variable can be passed through the selection, more complicated cases must be handled with other methods.
setSelectedVariable
in interface StepFlowContext
variable
- the selected variable.public String getSelectedAttribute()
StepFlowContext
getSelectedAttribute
in interface StepFlowContext
public void setSelectedAttribute(String name)
StepFlowContext
setSelectedAttribute
in interface StepFlowContext
name
- the name of the selected attribute.public boolean isNewSelection()
StepFlowContext
isNewSelection
in interface StepFlowContext
public void cancelSelection()
StepFlowContext
cancelSelection
in interface StepFlowContext
public void clearSelection()
StepFlowContext
clearSelection
in interface StepFlowContext
public void resetSelection()
StepFlowContext
resetSelection
in interface StepFlowContext
public void defaultSelection()
StepFlowContext
defaultSelection
in interface StepFlowContext
public List<Throwable> getErrors()
StepFlowContext
getErrors
in interface StepFlowContext
public void pushError(Throwable error)
StepFlowContext
pushError
in interface StepFlowContext
error
- the throwable.public Throwable popError()
StepFlowContext
popError
in interface StepFlowContext
public boolean containsErrors()
StepFlowContext
containsErrors
in interface StepFlowContext
public void clearErrors()
StepFlowContext
clearErrors
in interface StepFlowContext
public FlowStep prepareSelection(ServletRequest request, ServletResponse response, FilterChain chain)
StepFlowContext
prepareSelection
in interface StepFlowContext
request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public void finishSelection(ServletRequest request, ServletResponse response, FilterChain chain)
StepFlowContext
finishSelection
in interface StepFlowContext
request
- the servlet request.response
- the servlet response.chain
- the filter chain.public TemplateContext getTemplateContext(ServletRequest request, ServletResponse response, FilterChain chain) throws TemplateException
StepFlowContext
getTemplateContext
in interface StepFlowContext
request
- the servlet request.response
- the servlet response.chain
- the filter chain.
TemplateException
- on errors.public String getFormName(ServletRequest request, ServletResponse response, FilterChain chain)
StepFlowContext
getFormName
in interface StepFlowContext
request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public int[] getFormIndex(ServletRequest request, ServletResponse response, FilterChain chain)
StepFlowContext
getFormIndex
in interface StepFlowContext
request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public List<KeyValue<String,Variable>> getFormVariables(FlowStep step, ServletRequest request, ServletResponse response, FilterChain chain)
StepFlowContext
getFormVariables
in interface StepFlowContext
step
- the flow step.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
public void resetFormVariables(FlowStep step, ServletRequest request, ServletResponse response, FilterChain chain)
StepFlowContext
resetFormVariables
in interface StepFlowContext
step
- the flow step.request
- the servlet request.response
- the servlet response.chain
- the filter chain.public void reuseFormVariables(FlowStep step, ServletRequest request, ServletResponse response, FilterChain chain) throws ConstructionException
StepFlowContext
reuseFormVariables
in interface StepFlowContext
step
- the flow step.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
ConstructionException
- on errors.public void renewFormVariables(FlowStep step, ServletRequest request, ServletResponse response, FilterChain chain) throws ConstructionException
StepFlowContext
renewFormVariables
in interface StepFlowContext
step
- the flow step.request
- the servlet request.response
- the servlet response.chain
- the filter chain.
ConstructionException
- if construction fails.public FlowFilter getFlowFilter()
StepFlowContext
getFlowFilter
in interface StepFlowContext
public boolean isObsolete()
public String getDefaultFlowName()
public String getFlowName(String path)
path
- the flow step path.
public int getStepIndex(String path)
path
- the flow step path.
NumberFormatException
- for an invalid indexed path.public String getStepPath(String name, int index)
name
- the flow step name.index
- the step index.
public List<FlowStep> getFlows()
public String getQualifiedName()
public String getQualifiedName(String name)
name
- the step name.
public String getQualifiedName(String[] names)
names
- the step names.
public boolean isState(Object state, boolean... local)
state
- the state.local
- true to break inheritance.
public void setState(Object state, boolean flag)
state
- the state.flag
- true or false.public boolean clearState(Object state)
state
- the state.
public Object getProperty(Object property, boolean... local)
property
- the property.local
- true to break inheritance.
public void setProperty(Object property, Object value)
property
- the property.value
- the value.public Object removeProperty(Object property)
property
- the property.
public Object getTransition(Object state, boolean... local)
state
- the state.local
- true to break inheritance.
public void setTransition(Object state, Object value)
state
- the state.value
- the transition.public Object removeTransition(Object state)
state
- the state.
public boolean isState(FlowStep step, Object state, boolean... local)
step
- the step.state
- the state.local
- true to break inheritance.
public void setState(FlowStep step, Object state, boolean flag)
step
- the step.state
- the state.flag
- true or false.public boolean clearState(FlowStep step, Object state)
step
- the step.state
- the state.
public Object getProperty(FlowStep step, Object property, boolean... local)
step
- the step.property
- the property.local
- true to break inheritance.
public void setProperty(FlowStep step, Object property, Object value)
step
- the step.property
- the property.value
- the value.public Object removeProperty(FlowStep step, Object property)
step
- the step.property
- the property.
public Object getTransition(FlowStep step, Object state, boolean... local)
step
- the step.state
- the state.local
- true to break inheritance.
public void setTransition(FlowStep step, Object state, Object value)
step
- the step.state
- the state.value
- the value.public Object removeTransition(FlowStep step, Object state)
step
- the step.state
- the state.
public boolean isSecure()
public boolean isSecure(FlowStep step)
step
- the step.
public boolean exists(String name)
name
- the name of the flow or step.
public String getDefaultLabel()
public String getFlowLabel()
public String getStepLabel()
public String getFlowLabel(String name)
name
- the name of the flow.
public int stepCount()
public boolean isCurrentIndex(int index)
index
- the index of the step.
public int getPreviousIndex()
public int getNextIndex()
public int getStepIndex(int offset)
offset
- the index offset.
public FlowStep getStep(int offset)
offset
- the index offset.
public boolean isStepEnabled(FlowStep flow, int index)
flow
- the target flow.index
- the index of the target step.
public void setStepEnabled(FlowStep flow, int index, boolean flag)
flow
- the target flow.index
- the index of the target step.flag
- true if enabled, false otherwise.public boolean isReadOnly()
public boolean isOnlyWrite()
public boolean isWriteEven()
public String getTemplate()
public void setTemplate(String path)
path
- the template of the current step.public String getTemplate(int ind)
ind
- the index of the template.
public List<String> getTemplates()
public int templateCount()
public Variable getVariable()
public void setVariable(Variable var)
var
- the variable of the current step.public Variable getVariable(int ind)
ind
- the index of the variable.
public List<Variable> getVariables()
public int variableCount()
public boolean checkPermission(String actions)
actions
- the actions to access.
public boolean checkPermission(int index, String actions)
index
- the step index.actions
- the actions to access.
public boolean checkPermission(FlowStep flow, int index, String actions)
flow
- the flow.index
- the step index.actions
- the actions to access.
public boolean isValidated()
public String getValidity(int index)
index
- the index.
public void setValidity(int index, String validity)
index
- the index.validity
- the form validitypublic String[] getValidities()
public void resetValidities(String validity)
validity
- the form validitypublic boolean containsValidity(String validity)
validity
- the form validity
public boolean equalsValidity(String validity)
validity
- the form validity
public boolean isFormValidated()
public Object getAttribute(String name, String key, Object defaultValue)
name
- the attribute name.key
- the mapped key.defaultValue
- the default value.
public boolean isLocalized()
public String resolve(String key)
key
- the key of the resource.
public FlowStep activateSelection()
public boolean chainErrors()
public boolean joinErrors()
protected StepFlowContext getCurrentContext()
protected FormFilter getFormFilter()
protected ResourceFilter getResourceFilter()
protected SecuredFilter getSecuredFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |