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
protected  WorkflowAttributePropertyResolutionService workflowAttributePropertyResolutionService
          Deprecated.  
 
Fields inherited from class org.kuali.rice.krad.service.impl.DictionaryValidationServiceImpl
businessObjectService, dataDictionaryService, documentDictionaryService, persistenceService, persistenceStructureService, VALIDATE_METHOD
 
Constructor Summary
DictionaryValidationServiceImpl()
          Deprecated.  
 
Method Summary
protected  WorkflowAttributePropertyResolutionService getWorkflowAttributePropertyResolutionService()
          Deprecated. gets the locally saved instance of @{link WorkflowAttributePropertyResolutionService}
 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 validateDocument(Document document)
          Deprecated. since 2.1.2
 void validateDocumentAndUpdatableReferencesRecursively(Document document, int maxDepth, boolean validateRequired, boolean chompLastLetterSFromCollectionName)
          Deprecated. since 2.1
 void validateDocumentRecursively(Document document, int depth)
          Deprecated. since 2.0
 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, isBusinessObjectValid, isBusinessObjectValid, newIdentitySet, processCollectionConstraints, processElementConstraints, setBusinessObjectService, setCollectionConstraintProcessors, setConstraintProviders, setDataDictionaryService, setDocumentDictionaryService, setElementConstraintProcessors, setPersistenceService, setPersistenceStructureService, validate, validate, validate, validate, validateAgainstNextState, validateAgainstState, validateAttribute, validateAttribute, validateBusinessObjectsFromDescriptors, validateBusinessObjectsRecursively, validateDefaultExistenceChecks, validateDefaultExistenceChecksForNewCollectionItem, validateDefaultExistenceChecksForNewCollectionItem, validateDefaultExistenceChecksForTransDoc, validateDocumentAndUpdatableReferencesRecursively, validateDocumentAttribute, validateObject, validateReferenceExists, validateReferenceExists, validateReferenceExistsAndIsActive, validateReferenceExistsAndIsActive, validateReferenceIsActive, validateReferenceIsActive, validateUpdatabableReferencesRecursively
 
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, validateAgainstNextState, validateAgainstState, validateDefaultExistenceChecks, validateDefaultExistenceChecksForNewCollectionItem, validateDefaultExistenceChecksForNewCollectionItem, validateDefaultExistenceChecksForTransDoc, validateDocumentAndUpdatableReferencesRecursively, validateDocumentAttribute, validateReferenceExists, validateReferenceExists, validateReferenceExistsAndIsActive, validateReferenceExistsAndIsActive, validateReferenceIsActive, validateReferenceIsActive
 

Field Detail

workflowAttributePropertyResolutionService

protected WorkflowAttributePropertyResolutionService workflowAttributePropertyResolutionService
Deprecated. 
Constructor Detail

DictionaryValidationServiceImpl

public DictionaryValidationServiceImpl()
Deprecated. 
Method Detail

validateDocumentAndUpdatableReferencesRecursively

@Deprecated
public void validateDocumentAndUpdatableReferencesRecursively(Document document,
                                                                         int maxDepth,
                                                                         boolean validateRequired,
                                                                         boolean chompLastLetterSFromCollectionName)
Deprecated. since 2.1

Description copied from interface: DictionaryValidationService
Validates the contents of a document and recursively validates any of its updatable references

Specified by:
validateDocumentAndUpdatableReferencesRecursively in interface DictionaryValidationService
Overrides:
validateDocumentAndUpdatableReferencesRecursively in class DictionaryValidationServiceImpl
Parameters:
document - the document
maxDepth - the maximum numbers of levels to recurse
validateRequired - whether to validate whether a field is required and is currently blank
chompLastLetterSFromCollectionName - if true, the error path for any collections encountered will have the last "s" removed from the collection name if it ends with the letter "s". If false, this method acts like DictionaryValidationService.validateDocumentAndUpdatableReferencesRecursively(Document, int, boolean)
See Also:
DictionaryValidationService.validateDocumentAndUpdatableReferencesRecursively(org.kuali.rice.krad.document.Document, int, boolean, boolean)

validateDocumentRecursively

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

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:
DictionaryValidationService.validateDocumentRecursively(org.kuali.rice.krad.document.Document, int)

validateDocument

@Deprecated
public void validateDocument(Document document)
Deprecated. since 2.1.2

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

Specified by:
validateDocument in interface DictionaryValidationService
Overrides:
validateDocument in class DictionaryValidationServiceImpl
Parameters:
document - - document to validate
See Also:
DictionaryValidationService.validateDocument(org.kuali.rice.krad.document.Document)

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

getWorkflowAttributePropertyResolutionService

protected WorkflowAttributePropertyResolutionService getWorkflowAttributePropertyResolutionService()
Deprecated. 
gets the locally saved instance of @{link WorkflowAttributePropertyResolutionService}

If the instance in this class has not been initialized, retrieve it using KNSServiceLocator.getWorkflowAttributePropertyResolutionService() and save locally

Returns:
the locally saved instance of WorkflowAttributePropertyResolutionService


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