public interface ViewValidationService
Modifier and Type | Method and Description |
---|---|
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.
|
DictionaryValidationResult validateView(ViewModel model)
model
- the model which contains the values (and View) to validatedDictionaryValidationResult validateView(View view, ViewModel model)
view
- the View to be validatedmodel
- the model which contains the values to validatedDictionaryValidationResult 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 againstDictionaryValidationResult validateViewAgainstNextState(View view, ViewModel model)
view
- the View to be validatedmodel
- the model which contains the values to validatedvoid 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 stateCopyright © 2005–2016 The Kuali Foundation. All rights reserved.