T - Persistence Entity implementation to validatepublic abstract class BroadleafEntityValidator<T> extends Object
Entity.addValidationError(String, String) and
Entity.addValidationError(String, String) can be used to create an error that is displayed to the user before
an add or update occurs. Entity.isValidationFailure() can be used to see if the core validation found any
issues like required fields being blank to decide if any additional validation should be executed.| Constructor and Description |
|---|
BroadleafEntityValidator() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
validate(Entity submittedEntity,
T instance,
Map<String,FieldMetadata> propertiesMetadata,
RecordHelper recordHelper,
boolean validateUnsubmittedProperties)
Validation that should be done on the specified entity after core validation is completed.
|
public abstract void validate(Entity submittedEntity, @Nonnull T instance, Map<String,FieldMetadata> propertiesMetadata, RecordHelper recordHelper, boolean validateUnsubmittedProperties)
Copyright © 2023. All rights reserved.