org.kuali.student.datadictionary
Class RiceDataDictionaryValidatorImpl

java.lang.Object
  extended by org.kuali.student.datadictionary.RiceDataDictionaryValidatorImpl
All Implemented Interfaces:
DataDictionaryValidatorInfc

public class RiceDataDictionaryValidatorImpl
extends Object
implements DataDictionaryValidatorInfc

This is an implementation that gets the dictionary directly using KS methods but then calls the rice validation method that takes in the dictionary entry to be used. *** THIS IS THE ONLY WAY I COULD GET THE INTEGRATION TO WORK *** I could not figure out how to get the validation to work by simply calling the validate(info, doOptionalProcessing) method so instead I had to read the dictionary myself and pass the dictionary in on the call using the validate(info,entryName, dictEntry, doOptionalProcessing) method instead

Author:
nwright

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.kuali.student.datadictionary.DataDictionaryValidatorInfc
DataDictionaryValidatorInfc.ValidationType
 
Field Summary
private static org.apache.log4j.Logger LOG
           
private  RiceDataDictionaryServiceInfc riceDataDictionaryService
           
private  org.kuali.rice.kns.service.DictionaryValidationService riceDictionaryValidationService
           
 
Constructor Summary
RiceDataDictionaryValidatorImpl()
           
 
Method Summary
 RiceDataDictionaryServiceInfc getRiceDataDictionaryService()
           
 org.kuali.rice.kns.service.DictionaryValidationService getRiceDictionaryValidationService()
           
 void setRiceDataDictionaryService(RiceDataDictionaryServiceInfc riceDataDictionaryService)
           
 void setRiceDictionaryValidationService(org.kuali.rice.kns.service.DictionaryValidationService riceDictionaryValidationService)
           
 List<ValidationResultInfo> validate(DataDictionaryValidatorInfc.ValidationType validationType, Object info, ContextInfo context)
          Generic validation interface used to implement the individual validateXXXX (xxxxx) methods This is not supposed to remotable because it's object is an Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static org.apache.log4j.Logger LOG

riceDataDictionaryService

private RiceDataDictionaryServiceInfc riceDataDictionaryService

riceDictionaryValidationService

private org.kuali.rice.kns.service.DictionaryValidationService riceDictionaryValidationService
Constructor Detail

RiceDataDictionaryValidatorImpl

public RiceDataDictionaryValidatorImpl()
Method Detail

getRiceDataDictionaryService

public RiceDataDictionaryServiceInfc getRiceDataDictionaryService()

setRiceDataDictionaryService

public void setRiceDataDictionaryService(RiceDataDictionaryServiceInfc riceDataDictionaryService)

getRiceDictionaryValidationService

public org.kuali.rice.kns.service.DictionaryValidationService getRiceDictionaryValidationService()

setRiceDictionaryValidationService

public void setRiceDictionaryValidationService(org.kuali.rice.kns.service.DictionaryValidationService riceDictionaryValidationService)

validate

public List<ValidationResultInfo> validate(DataDictionaryValidatorInfc.ValidationType validationType,
                                           Object info,
                                           ContextInfo context)
                                    throws OperationFailedException,
                                           MissingParameterException,
                                           InvalidParameterException,
                                           PermissionDeniedException
Description copied from interface: DataDictionaryValidatorInfc
Generic validation interface used to implement the individual validateXXXX (xxxxx) methods This is not supposed to remotable because it's object is an Object.

Specified by:
validate in interface DataDictionaryValidatorInfc
info - object to be validated
context - of user and locale information
Returns:
list of validation results
Throws:
OperationFailedException
MissingParameterException
InvalidParameterException
PermissionDeniedException


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.