java.lang.Object
io.vertigo.easyforms.runner.pack.constraint.ConstraintEmailWhiteList
- All Implemented Interfaces:
io.vertigo.datamodel.smarttype.definitions.Constraint<Integer,String>
public final class ConstraintEmailWhiteList
extends Object
implements io.vertigo.datamodel.smarttype.definitions.Constraint<Integer,String>
Check if the mail domain is in whitelist. Domain check is of type "ends with".
- Author:
- npiedeloup, skerdudou
-
Constructor Summary
Constructors
-
Method Summary
boolean
io.vertigo.core.locale.LocaleMessageText
io.vertigo.datamodel.smarttype.definitions.Property<Integer>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ConstraintEmailWhiteList
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
- Specified by:
getPropertyValue in interface io.vertigo.datamodel.smarttype.definitions.Constraint<Integer,String>