public class MailServerValidator extends Object implements Validator<MailConfiguration>
Modifier and Type | Field and Description |
---|---|
static String |
FROM |
static String |
HOST |
static String |
JNDI_LOCATION |
static String |
NOTIFICATION_EMAIL |
static String |
PORT |
static String |
TIMEOUT |
Constructor and Description |
---|
MailServerValidator(I18nHelper i18nHelper) |
Modifier and Type | Method and Description |
---|---|
protected List<ValidationRule<MailConfiguration>> |
initializeRules() |
List<ValidationError> |
validate(MailConfiguration entity)
Will validate the given entity and return
List generated during validation |
public static final String FROM
public static final String NOTIFICATION_EMAIL
public static final String HOST
public static final String PORT
public static final String TIMEOUT
public static final String JNDI_LOCATION
public MailServerValidator(I18nHelper i18nHelper)
public List<ValidationError> validate(MailConfiguration entity)
Validator
List
generated during validationvalidate
in interface Validator<MailConfiguration>
entity
- Entity to be validatedList
containing the errors or empty list if no error were generatedprotected List<ValidationRule<MailConfiguration>> initializeRules()
Copyright © 2020 Atlassian. All rights reserved.