Class MailServerValidator
java.lang.Object
com.atlassian.crowd.manager.mail.validator.MailServerValidator
- All Implemented Interfaces:
Validator<MailConfiguration>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMailServerValidator
(I18nHelper i18nHelper, EmailAddressValidator emailValidator, MailTransportContext mailTransportContext, com.atlassian.event.api.EventPublisher eventPublisher, ClientConfigStorageServiceSupplier clientConfigStorageServiceSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ValidationRule<MailConfiguration>>
validate
(MailConfiguration entity) Will validate the given entity and returnList
generated during validation
-
Field Details
-
ID
- See Also:
-
FROM
- See Also:
-
NOTIFICATION_EMAIL
- See Also:
-
HOST
- See Also:
-
PORT
- See Also:
-
TIMEOUT
- See Also:
-
JNDI_LOCATION
- See Also:
-
CONNECTION
- See Also:
-
USERNAME
- See Also:
-
PASSWORD
- See Also:
-
OAUTH2_CONFIGURATION_ID
- See Also:
-
-
Constructor Details
-
MailServerValidator
public MailServerValidator(I18nHelper i18nHelper, EmailAddressValidator emailValidator, MailTransportContext mailTransportContext, com.atlassian.event.api.EventPublisher eventPublisher, ClientConfigStorageServiceSupplier clientConfigStorageServiceSupplier)
-
-
Method Details
-
validate
Description copied from interface:Validator
Will validate the given entity and returnList
generated during validation- Specified by:
validate
in interfaceValidator<MailConfiguration>
- Parameters:
entity
- Entity to be validated- Returns:
- a
List
containing the errors or empty list if no error were generated
-
initializeRules
-