@PublicSpi
public interface WhenHandlerValidator
This is an SPI interface that must be implemented by rule component module developers to perform validation for their module. This validator will be invoked before a rule containing the rule component is saved or retrieved. The rule will not be saved if this validator (or any other validator for modules in the rule) return a failed result.
Modifier and Type | Interface and Description |
---|---|
static interface |
WhenHandlerValidator.WhenHandlerValidationParam
Contains params to be used by the WhenHandlerValidator to validate the when handler
|
Modifier and Type | Method and Description |
---|---|
ValidationResult |
validate(WhenHandlerValidator.WhenHandlerValidationParam whenHandlerValidationParam)
Perform validation on the provided
whenHandlerValidationParam |
ValidationResult validate(@Nonnull WhenHandlerValidator.WhenHandlerValidationParam whenHandlerValidationParam)
whenHandlerValidationParam
When performing validation, any calls made to JIRA-based services must be made with the provided
userToValidateWith
.
The outcome of the validation is recorded in a
ValidationResult
. Any error
messages included in this result should be internationalized using the provided errorMessageLocale
.
Copyright © 2019 Atlassian. All rights reserved.