Annotation Interface ValidationConfiguration


@Retention(RUNTIME) @Target(FIELD) public @interface ValidationConfiguration
Author:
jfischer
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The fully qualified classname of the org.broadleafcommerce.openadmin.server.service.persistence.validation.PropertyValidator instance to use for validation
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional configuration items that can be used to setup the validator
  • Element Details

    • validationImplementation

      String validationImplementation

      The fully qualified classname of the org.broadleafcommerce.openadmin.server.service.persistence.validation.PropertyValidator instance to use for validation

      If you need to do dependency injection, this can also correspond to a bean ID that implements the org.broadleafcommerce.openadmin.server.service.persistence.validation.PropertyValidator interface.

      Returns:
      the validator implementation. This implementation should be an instance of org.broadleafcommerce.openadmin.server.service.persistence.validation.PropertyValidator and could be either a bean name or fully-qualified class name
    • configurationItems

      ConfigurationItem[] configurationItems

      Optional configuration items that can be used to setup the validator

      . Most validators should have at least a single configuration item with ConfigurationItem.ERROR_MESSAGE.
      Returns:
      validator configuration attributes
      Default:
      {}