public class ViewValidationServiceImpl extends Object implements ViewValidationService
ViewValidationService
Modifier and Type | Field and Description |
---|---|
protected DictionaryValidationService |
dictionaryValidationService |
Constructor and Description |
---|
ViewValidationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
DictionaryValidationService |
getDictionaryValidationService()
Gets the DictionaryValidationService to use for View validation
|
void |
setDictionaryValidationService(DictionaryValidationService dictionaryValidationService)
Set the DictionaryValidationService
|
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.
|
protected DictionaryValidationService dictionaryValidationService
public ViewValidationServiceImpl()
public DictionaryValidationResult validateView(ViewModel model)
ViewValidationService
validateView
in interface ViewValidationService
model
- the model which contains the values (and View) to validatedViewValidationService.validateView(org.kuali.rice.krad.uif.view.ViewModel)
public void validateViewSimulation(ViewModel model)
ViewValidationService
validateViewSimulation
in interface ViewValidationService
model
- the model which contains the values to validatedViewValidationService.validateViewSimulation(ViewModel)
public void validateViewSimulation(ViewModel model, String untilState)
ViewValidationService
validateViewSimulation
in interface ViewValidationService
model
- the model which contains the values to validateduntilState
- state to perform simulation to, if not set performs simulation up to the last stateViewValidationService.validateViewSimulation(ViewModel, String)
public DictionaryValidationResult validateView(ViewModel model, String forcedValidationState)
ViewValidationService
validateView
in interface ViewValidationService
model
- the model which contains the values to validatedforcedValidationState
- the state being validated againstViewValidationService.validateView(ViewModel, String)
public DictionaryValidationResult validateViewAgainstNextState(ViewModel model)
ViewValidationService
validateViewAgainstNextState
in interface ViewValidationService
model
- the model which contains the values to validatedViewValidationService.validateViewAgainstNextState(ViewModel)
public DictionaryValidationService getDictionaryValidationService()
public void setDictionaryValidationService(DictionaryValidationService dictionaryValidationService)
dictionaryValidationService
- Copyright © 2005–2016 The Kuali Foundation. All rights reserved.