|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewValidationService
Validation service for KRAD views. The ViewValidationService uses the DictionaryValidationService to validate the fields of the View by using the constraints that were set at either the InputField or AttributeDefinition level for that field. If errors/warnings are found they are added to the messageMap and when the view is returned these messages are displayed.
Method Summary | |
---|---|
DictionaryValidationResult |
validateView(ViewModel model)
This is the main validation method that should be used when validating Views Validates the view based on the model passed in, this will correctly use previousView by default as it automatically contains the generated data the validation requires. |
DictionaryValidationResult |
validateView(View view,
ViewModel model)
Additional validation method when you want to explicitly define the View being validated. |
DictionaryValidationResult |
validateView(View view,
ViewModel model,
String forcedValidationState)
Validate the view against the specific validationState instead of the default (current state). |
DictionaryValidationResult |
validateViewAgainstNextState(View view,
ViewModel model)
Validate the view against the next state based on the order of the states in the views StateMapping. |
void |
validateViewSimulation(View view,
ViewModel model)
Simulate view validation - this will run all validations against all states from the current state to the last state in the list of states in the view's stateMapping. |
void |
validateViewSimulation(View view,
ViewModel model,
String untilState)
Simulate view validation - this will run all validations against all states from the current state to the untilState specified in the list of states in the view's stateMapping. |
Method Detail |
---|
DictionaryValidationResult validateView(ViewModel model)
model
- the model which contains the values (and View) to validated
DictionaryValidationResult validateView(View view, ViewModel model)
view
- the View to be validatedmodel
- the model which contains the values to validated
DictionaryValidationResult validateView(View view, ViewModel model, String forcedValidationState)
view
- the View to be validatedmodel
- the model which contains the values to validatedforcedValidationState
- the state being validated against
DictionaryValidationResult validateViewAgainstNextState(View view, ViewModel model)
view
- the View to be validatedmodel
- the model which contains the values to validated
void validateViewSimulation(View view, ViewModel model)
view
- the View to be validatedmodel
- the model which contains the values to validatedvoid validateViewSimulation(View view, ViewModel model, String untilState)
view
- the View to be validatedmodel
- the model which contains the values to validateduntilState
- state to perform simulation to, if not set performs simulation up to the last state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |