org.kuali.rice.kns.service.impl
Class DictionaryValidationServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.DictionaryValidationServiceImpl
      extended by org.kuali.rice.kns.service.impl.DictionaryValidationServiceImpl
All Implemented Interfaces:
DictionaryValidationService

Deprecated.

@Deprecated
public class DictionaryValidationServiceImpl
extends DictionaryValidationServiceImpl
implements DictionaryValidationService

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

Field Summary
 
Fields inherited from class org.kuali.rice.krad.service.impl.DictionaryValidationServiceImpl
businessObjectService, dataDictionaryService, documentDictionaryService, persistenceService, persistenceStructureService, VALIDATE_METHOD, workflowAttributePropertyResolutionService
 
Constructor Summary
DictionaryValidationServiceImpl()
          Deprecated.  
 
Method Summary
 void validateAttributeFormat(String objectClassName, String attributeName, String attributeInValue, String errorKey)
          Deprecated. since 1.1
 void validateAttributeFormat(String objectClassName, String attributeName, String attributeInValue, String attributeDataType, String errorKey)
          Deprecated. since 1.1
 void validateAttributeRequired(String objectClassName, String attributeName, Object attributeValue, Boolean forMaintenance, String errorKey)
          Deprecated. 
 void validateBusinessObject(BusinessObject businessObject)
          Deprecated. 
 void validateBusinessObject(BusinessObject businessObject, boolean validateRequired)
          Deprecated. 
 void validateBusinessObjectOnMaintenanceDocument(BusinessObject businessObject, String docTypeName)
          Deprecated. since 1.1
protected  void validateBusinessObjectOnMaintenanceDocumentHelper(BusinessObject businessObject, List<? extends MaintainableItemDefinition> itemDefinitions, String errorPrefix)
          Deprecated.  
 void validateDocumentRecursively(Document document, int depth)
          Deprecated. 
 void validatePrimitiveFromDescriptor(String entryName, Object object, PropertyDescriptor propertyDescriptor, String errorPrefix, boolean validateRequired)
          Deprecated. 
protected  void validatePrimitivesFromDescriptors(String entryName, Object object, PropertyDescriptor[] propertyDescriptors, String errorPrefix, boolean validateRequired)
          Deprecated. 
 
Methods inherited from class org.kuali.rice.krad.service.impl.DictionaryValidationServiceImpl
getCollectionConstraintProcessors, getConstraintProviders, getDataDictionaryService, getDocumentDictionaryService, getElementConstraintProcessors, getWorkflowAttributePropertyResolutionService, isBusinessObjectValid, isBusinessObjectValid, setBusinessObjectService, setCollectionConstraintProcessors, setConstraintProviders, setDataDictionaryService, setDocumentDictionaryService, setElementConstraintProcessors, setPersistenceService, setPersistenceStructureService, validate, validate, validate, validate, validate, validate, validate, validate, validate, validate, validateBusinessObjectsFromDescriptors, validateBusinessObjectsRecursively, validateDefaultExistenceChecks, validateDefaultExistenceChecksForNewCollectionItem, validateDefaultExistenceChecksForNewCollectionItem, validateDefaultExistenceChecksForTransDoc, validateDocument, validateDocumentAndUpdatableReferencesRecursively, validateDocumentAndUpdatableReferencesRecursively, validateDocumentAttribute, validateReferenceExists, validateReferenceExists, validateReferenceExistsAndIsActive, validateReferenceExistsAndIsActive, validateReferenceIsActive, validateReferenceIsActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.service.DictionaryValidationService
validateBusinessObjectsRecursively
 
Methods inherited from interface org.kuali.rice.krad.service.DictionaryValidationService
isBusinessObjectValid, isBusinessObjectValid, validate, validate, validate, validate, validate, validate, validate, validate, validate, validate, validateDefaultExistenceChecks, validateDefaultExistenceChecksForNewCollectionItem, validateDefaultExistenceChecksForNewCollectionItem, validateDefaultExistenceChecksForTransDoc, validateDocument, validateDocumentAndUpdatableReferencesRecursively, validateDocumentAndUpdatableReferencesRecursively, validateDocumentAttribute, validateReferenceExists, validateReferenceExists, validateReferenceExistsAndIsActive, validateReferenceExistsAndIsActive, validateReferenceIsActive, validateReferenceIsActive
 

Constructor Detail

DictionaryValidationServiceImpl

public DictionaryValidationServiceImpl()
Deprecated. 
Method Detail

validateDocumentRecursively

@Deprecated
public void validateDocumentRecursively(Document document,
                                                   int depth)
Deprecated. 

Description copied from interface: DictionaryValidationService
Validates the contents of a document (i.e. attributes within a document) against the data dictionary. Recursively checks business objects of the document.

Parameters:
document - - document to validate
depth - - Specify how deep the recrusion should go (0 based). If a negative number is supplied, it's infinite.
See Also:
org.kuali.rice.krad.service.DictionaryValidationService#validateDocumentRecursively

validateBusinessObject

@Deprecated
public void validateBusinessObject(BusinessObject businessObject)
Deprecated. 

Description copied from interface: DictionaryValidationService
Validates the business object primitive attributes against the data dictionary. Adds errors to the map as they are encountered.

Specified by:
validateBusinessObject in interface DictionaryValidationService
Overrides:
validateBusinessObject in class DictionaryValidationServiceImpl
Parameters:
businessObject - - business object to validate
See Also:
DictionaryValidationService.validateBusinessObject(org.kuali.rice.krad.bo.BusinessObject)

validateBusinessObject

@Deprecated
public void validateBusinessObject(BusinessObject businessObject,
                                              boolean validateRequired)
Deprecated. 

Description copied from interface: DictionaryValidationService
Validates the business object primitive attributes against the data dictionary. Adds errors to the map as they are encountered.

Specified by:
validateBusinessObject in interface DictionaryValidationService
Overrides:
validateBusinessObject in class DictionaryValidationServiceImpl
Parameters:
businessObject - - business object to validate
validateRequired - - whether to execute required field checks
See Also:
DictionaryValidationService.validateBusinessObject(org.kuali.rice.krad.bo.BusinessObject, boolean)

validateBusinessObjectOnMaintenanceDocument

@Deprecated
public void validateBusinessObjectOnMaintenanceDocument(BusinessObject businessObject,
                                                                   String docTypeName)
Deprecated. since 1.1


validateBusinessObjectOnMaintenanceDocumentHelper

protected void validateBusinessObjectOnMaintenanceDocumentHelper(BusinessObject businessObject,
                                                                 List<? extends MaintainableItemDefinition> itemDefinitions,
                                                                 String errorPrefix)
Deprecated. 

validatePrimitivesFromDescriptors

@Deprecated
protected void validatePrimitivesFromDescriptors(String entryName,
                                                            Object object,
                                                            PropertyDescriptor[] propertyDescriptors,
                                                            String errorPrefix,
                                                            boolean validateRequired)
Deprecated. 

iterates through property descriptors looking for primitives types, calls validate format and required check

Parameters:
entryName -
object -
propertyDescriptors -
errorPrefix -

validatePrimitiveFromDescriptor

@Deprecated
public void validatePrimitiveFromDescriptor(String entryName,
                                                       Object object,
                                                       PropertyDescriptor propertyDescriptor,
                                                       String errorPrefix,
                                                       boolean validateRequired)
Deprecated. 

calls validate format and required check for the given propertyDescriptor

Specified by:
validatePrimitiveFromDescriptor in interface DictionaryValidationService
Overrides:
validatePrimitiveFromDescriptor in class DictionaryValidationServiceImpl
Parameters:
entryName -
object -
propertyDescriptor -
errorPrefix -

validateAttributeFormat

@Deprecated
public void validateAttributeFormat(String objectClassName,
                                               String attributeName,
                                               String attributeInValue,
                                               String errorKey)
Deprecated. since 1.1

Description copied from interface: DictionaryValidationService
Validates an attribute of a given class for proper min, max length, syntax, and required.

Parameters:
objectClassName - - name of the dd entry
attributeName - - name of attribute in the bo class
attributeInValue - - current value to validate
errorKey - - key to place the errors under
See Also:
objectClassName is the docTypeName

validateAttributeFormat

@Deprecated
public void validateAttributeFormat(String objectClassName,
                                               String attributeName,
                                               String attributeInValue,
                                               String attributeDataType,
                                               String errorKey)
Deprecated. since 1.1

The attributeDataType parameter should be one of the data types specified by the SearchableAttribute interface; will default to DATA_TYPE_STRING if a data type other than the ones from SearchableAttribute is specified.

Parameters:
objectClassName - - name of the dd entry
attributeName - - name of attribute in the bo class
attributeInValue - - current value to validate
attributeDataType - - data type that this attribute should be treated as for validation purposes
errorKey - - key to place the errors under

validateAttributeRequired

@Deprecated
public void validateAttributeRequired(String objectClassName,
                                                 String attributeName,
                                                 Object attributeValue,
                                                 Boolean forMaintenance,
                                                 String errorKey)
Deprecated. 

Description copied from interface: DictionaryValidationService
Validates an attribute of a given class for required check.

Parameters:
objectClassName - - name of the dd entry
attributeName - - name of attribute in the bo class
attributeValue - - current value to validate
errorKey - - key to place to errors under


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