Package org.broadleafcommerce.openadmin.server.service.persistence.validation
package org.broadleafcommerce.openadmin.server.service.persistence.validation
-
ClassDescriptionA basic entity persistence validation hook into validation provided by instances of
AdornedTargetAutoPopulateExtensionHandlerChecks to make sure that the end date being updated is after the start dateValidates that values are actually of their required types before trying to populate it.Implementation of theEntityValidatorServicethat runs entities through JSR-303 validations.A Spring bean extending this class will automatically be called when validation is done on the entity specified by the generic type.Checks to make sure that the provided cron expression is validValidates all of the populated properties for entitiesThis implementation validates eachPropertyfrom the givenEntityaccording to theValidationConfigurations associated with it.Ensures that field values submitted in the admin are less than or equal to the length specified in the metadataMarker interface for any validator that contains field names as part of its configuration.Analagous toPropertyValidatorexcept this does not attempt to use anyValidationConfigurationfrom anAdminPresentationannotation.DTO representing a boolean whether or not it passed validation and String error message.Checks for equality between this field and a configured 'otherField'Validator that checks if a max value field is actually greater than or equal to a min value field.This is injected into theBasicPersistenceModuleand invoked prior to any attempts to actually populate values from theEntityDTO representation into the Hibernate entity using theFieldPersistenceProviderparadigm.Empty DTO for now that just denotes that this validation error is from a propertyInterface for performing validation on a property.Validates a field against a configured 'regularExpression' itemMakes a field required if the value of another field matches another value.Ensures that every property that is required fromBasicFieldMetadata.getRequired()has a non-empty value being set.Validates that a rule can be parsed out successfully.Checks for uniqueness of this field's value among other entities of this typeValidates a field as being a valid URI to ensure compatibility with Broadleaf handlers including PageHandler, ProductHandler, and CategoryHandlers.Provides a default validate method that uses the validation configuration map to pull out the error key and pre-populate thePropertyValidationResultbased onConfigurationItem.ERROR_MESSAGE.