|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.service.impl.ViewValidationServiceImpl
public class ViewValidationServiceImpl
Implementation of Validation service for views, uses the same validation mechanisms as DictionaryValidationService but uses a different AttributeValueReader to get the correct information from InputFields - which include any AttributeDefinition defined attributes, if defined and not overriden
ViewValidationService
Field Summary | |
---|---|
protected DictionaryValidationService |
dictionaryValidationService
|
Constructor Summary | |
---|---|
ViewValidationServiceImpl()
|
Method Summary | |
---|---|
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(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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DictionaryValidationService dictionaryValidationService
Constructor Detail |
---|
public ViewValidationServiceImpl()
Method Detail |
---|
public DictionaryValidationResult validateView(ViewModel model)
ViewValidationService
validateView
in interface ViewValidationService
model
- the model which contains the values (and View) to validated
ViewValidationService.validateView(org.kuali.rice.krad.uif.view.ViewModel)
public DictionaryValidationResult validateView(View view, ViewModel model)
ViewValidationService
validateView
in interface ViewValidationService
view
- the View to be validatedmodel
- the model which contains the values to validated
ViewValidationService.validateView(View, ViewModel)
public void validateViewSimulation(View view, ViewModel model)
ViewValidationService
validateViewSimulation
in interface ViewValidationService
view
- the View to be validatedmodel
- the model which contains the values to validatedViewValidationService.validateViewSimulation(View, ViewModel)
public void validateViewSimulation(View view, ViewModel model, String untilState)
ViewValidationService
validateViewSimulation
in interface ViewValidationService
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 stateViewValidationService.validateViewSimulation(View, ViewModel, String)
public DictionaryValidationResult validateView(View view, ViewModel model, String forcedValidationState)
ViewValidationService
validateView
in interface ViewValidationService
view
- the View to be validatedmodel
- the model which contains the values to validatedforcedValidationState
- the state being validated against
ViewValidationService.validateView(View, ViewModel, String)
public DictionaryValidationResult validateViewAgainstNextState(View view, ViewModel model)
ViewValidationService
validateViewAgainstNextState
in interface ViewValidationService
view
- the View to be validatedmodel
- the model which contains the values to validated
ViewValidationService.validateViewAgainstNextState(View, ViewModel)
public DictionaryValidationService getDictionaryValidationService()
public void setDictionaryValidationService(DictionaryValidationService dictionaryValidationService)
dictionaryValidationService
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |