org.kuali.rice.krad.service
Interface ViewValidationService

All Known Implementing Classes:
ViewValidationServiceImpl

public interface ViewValidationService

Validation service for KRAD views

Author:
Kuali Rice Team (rice.collab@kuali.org)

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.
 

Method Detail

validateView

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.

Parameters:
model -
Returns:
DictionaryValidationResult that contains any errors/messages if any, messages will have already been added to the MessageMap

validateView

DictionaryValidationResult validateView(View view,
                                        ViewModel model)
Additional validation method when you want to explicitly define the View being validated. Note that the view must have the correct binding information on its InputFields already generated by its lifecycle for this method to be used correctly.

Parameters:
view -
model -
Returns:
DictionaryValidationResult that contains any errors/messages if any,, messages will have already been added to the MessageMap


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.