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(ViewModel model,
String forcedValidationState)
Validate the view against the specific validationState instead of the default (current state).
|
DictionaryValidationResult |
validateViewAgainstNextState(ViewModel model)
Validate the view against the next state based on the order of the states in the views StateMapping.
|
void |
validateViewSimulation(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(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(ViewModel model, String forcedValidationState)
model
- the model which contains the values to validatedforcedValidationState
- the state being validated againstDictionaryValidationResult validateViewAgainstNextState(ViewModel model)
model
- the model which contains the values to validatedvoid validateViewSimulation(ViewModel model)
model
- the model which contains the values to validatedvoid validateViewSimulation(ViewModel model, String untilState)
model
- the model which contains the values to validateduntilState
- state to perform simulation to, if not set performs simulation up to the last stateCopyright © 2005–2014 The Kuali Foundation. All rights reserved.