org.broadleafcommerce.openadmin.server.service.persistence.validation
Class EntityValidatorServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.service.persistence.validation.EntityValidatorServiceImpl
All Implemented Interfaces:
EntityValidatorService
Direct Known Subclasses:
BeanValidationEntityValidatorServiceImpl

@Service(value="blEntityValidatorService")
public class EntityValidatorServiceImpl
extends Object
implements EntityValidatorService

This implementation validates each Property from the given Entity according to the ValidationConfigurations associated with it.

Author:
Phillip Verheyden
See Also:
EntityValidatorService}, ValidationConfiguration}

Constructor Summary
EntityValidatorServiceImpl()
           
 
Method Summary
 void validate(Entity entity, Serializable instance, Map<String,FieldMetadata> mergedProperties)
          Validate the given entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityValidatorServiceImpl

public EntityValidatorServiceImpl()
Method Detail

validate

public void validate(Entity entity,
                     Serializable instance,
                     Map<String,FieldMetadata> mergedProperties)
              throws InstantiationException,
                     IllegalAccessException,
                     ClassNotFoundException
Description copied from interface: EntityValidatorService
Validate the given entity. Implementers should set Entity.setValidationFailure(boolean) appropriately.

Specified by:
validate in interface EntityValidatorService
Parameters:
entity - DTO representation of instance
instance - actual domain representation of entity
mergedProperties - all of the merged properties including metadata
Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException


Copyright © 2013. All Rights Reserved.