Class RequestAction
java.lang.Object
com.aquima.interactions.portal.model.session.RequestAction
Object containing information about the type of action that was trigged by the event.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RequestAction
A leave action will not update any fields and will not perform any validation.static final RequestAction
A refresh action will update the submitted fields, but only validate the fields that have actually changed in value.static final RequestAction
A submit action will update the submitted fields, and validate all fields on the page, regardless of whether the fields changed value or not.static final RequestAction
A void action will not update any fields and will not perform any validation. -
Method Summary
Modifier and TypeMethodDescriptionasDraft()
This method constructs a draft request action based on the current action.boolean
boolean
This method returns a boolean indicating if the page should be committed, even if the flow returns to the same page.protected RequestAction
forElement
(IElement element) int
This method will return the action mask of this request action type.protected IElement
protected String[]
getName()
This method returns the name of the request action.This method returns the ValidationAction which specifies the validation settings.int
hashCode()
protected boolean
protected void
setForceCommit
(boolean pageCommitNeeded) boolean
This method returns a boolean indicating if no values should be validated.toString()
boolean
This method returns a boolean indicating if the values that are submitted should be committed.boolean
This method returns a boolean indicating if all values should be validated, or only the updated values.
-
Field Details
-
LEAVE
A leave action will not update any fields and will not perform any validation. -
VOID
A void action will not update any fields and will not perform any validation. This action will however trigger services. -
REFRESH
A refresh action will update the submitted fields, but only validate the fields that have actually changed in value. -
SUBMIT
A submit action will update the submitted fields, and validate all fields on the page, regardless of whether the fields changed value or not.
-
-
Method Details
-
forElement
-
getElement
-
getEvents
-
isButtonAction
protected boolean isButtonAction() -
asDraft
This method constructs a draft request action based on the current action.- Returns:
- The request action as draft.
-
getValidationAction
This method returns the ValidationAction which specifies the validation settings.- Returns:
- ValidationAction object indicating whether validation should be done for all fields, only updated fields or nothing at all.
-
getActionId
public int getActionId()This method will return the action mask of this request action type.
Note: The action type might be a combination of several type masks.- Returns:
- the action mask of this request action type.
-
getName
This method returns the name of the request action.- Returns:
- the name of the request action.
-
updateValues
public boolean updateValues()This method returns a boolean indicating if the values that are submitted should be committed.- Returns:
- boolean indicating if the values that are submitted should be committed.
-
validateAllValues
public boolean validateAllValues()This method returns a boolean indicating if all values should be validated, or only the updated values.- Returns:
- boolean indicating if all values should be validated, or only the updated values.
-
skipValidation
public boolean skipValidation()This method returns a boolean indicating if no values should be validated.- Returns:
- boolean indicating if no values should be validated.
-
forcePageCommit
public boolean forcePageCommit()This method returns a boolean indicating if the page should be committed, even if the flow returns to the same page. This boolean is only relevant for submit requests, and can be enabled by adding a '_commit' action to a button.- Returns:
- a boolean indicating if the page should be committed, even if the flow returns to the same page.
-
setForceCommit
protected void setForceCommit(boolean pageCommitNeeded) -
equals
-
hashCode
public int hashCode() -
toString
-