Class ConstraintEmailBlackList

java.lang.Object
io.vertigo.easyforms.runner.pack.constraint.ConstraintEmailBlackList
All Implemented Interfaces:
io.vertigo.datamodel.smarttype.definitions.Constraint<Integer,String>

public final class ConstraintEmailBlackList extends Object implements io.vertigo.datamodel.smarttype.definitions.Constraint<Integer,String>
Check if the mail domain is not in a blacklist. Add 'DISPOSABLE' to arg list to add a built-in list of disposable email.
Author:
npiedeloup, skerdudou
  • Field Details

  • Constructor Details

    • ConstraintEmailBlackList

      public ConstraintEmailBlackList(String args, Optional<String> overrideMessageOpt, Optional<String> overrideResourceMessageOpt)
      Constructor.
      Parameters:
      args - the minimum value
  • Method Details

    • checkConstraint

      public boolean checkConstraint(String email)
      Specified by:
      checkConstraint in interface io.vertigo.datamodel.smarttype.definitions.Constraint<Integer,String>
    • getErrorMessage

      public io.vertigo.core.locale.LocaleMessageText getErrorMessage()
      Specified by:
      getErrorMessage in interface io.vertigo.datamodel.smarttype.definitions.Constraint<Integer,String>
    • getProperty

      public io.vertigo.datamodel.smarttype.definitions.Property<Integer> getProperty()
      Specified by:
      getProperty in interface io.vertigo.datamodel.smarttype.definitions.Constraint<Integer,String>
    • getPropertyValue

      public Integer getPropertyValue()
      Specified by:
      getPropertyValue in interface io.vertigo.datamodel.smarttype.definitions.Constraint<Integer,String>