org.broadleafcommerce.openadmin.server.service.persistence.validation
Class EntityValidatorServiceImpl
java.lang.Object
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}
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityValidatorServiceImpl
public EntityValidatorServiceImpl()
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 instanceinstance - actual domain representation of entitymergedProperties - all of the merged properties including metadata
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
Copyright © 2013. All Rights Reserved.