Interface BulkValidator<T>
- All Known Implementing Classes:
BulkJiraPermissionValidator
public interface BulkValidator<T>
Performs validation of a list of
BulkValidationParameters of a certain type.-
Method Summary
Modifier and TypeMethodDescriptiongetType()voidvalidate(TenantActor tenantActor, RemoteConnectUser user, com.codebarrel.automation.api.config.RuleConfigBean rule, List<BulkValidationParameter<T>> parameters, ErrorCollection errors) Performs bulk validation of the given parameters.
-
Method Details
-
getType
BulkValidatorType getType()- Returns:
- the type of parameters this validator can validate.
-
validate
void validate(TenantActor tenantActor, RemoteConnectUser user, com.codebarrel.automation.api.config.RuleConfigBean rule, List<BulkValidationParameter<T>> parameters, ErrorCollection errors) Performs bulk validation of the given parameters.- Parameters:
tenantActor- The actor user of the ruleuser- The user publishing the rule in the UIrule- The rule being validatedparameters- The parameters to validateerrors- Any errors should be appended to this collection- Throws:
IllegalArgumentException- if parameters of a different type thangetType()are provided
-