public interface ServiceCommandValidator
Modifier and Type | Method and Description |
---|---|
void |
addFieldValidationError(FieldValidationError fieldError)
Add a new field validation error.
|
void |
addFieldValidationError(String fieldName,
String messageKey)
Add a new validation error.
|
void |
addFieldValidationError(String fieldName,
String messageKey,
Object... messageArguments)
Add a new validation error.
|
void |
addValidationError(String messageKey,
Object... messageArguments)
Add a new validation error.
|
Collection<ValidationError> |
getValidationErrors()
Get all validation errors.
|
void addFieldValidationError(String fieldName, String messageKey)
fieldName
- the field that is not validmessageKey
- the i18n key for the validation error messagevoid addValidationError(String messageKey, Object... messageArguments)
messageKey
- the i18n key for the validation error messagemessageArguments
- the arguments to be merged into the error messagevoid addFieldValidationError(String fieldName, String messageKey, Object... messageArguments)
fieldName
- the field that is not validmessageKey
- the i18n key for the validation error messagemessageArguments
- the arguments to be merged into the error message.void addFieldValidationError(FieldValidationError fieldError)
fieldError
- the error to addCollection<ValidationError> getValidationErrors()
Copyright © 2003–2021 Atlassian. All rights reserved.