Class DefaultServiceCommandValidator
- java.lang.Object
- 
- com.atlassian.confluence.core.service.DefaultServiceCommandValidator
 
- 
- All Implemented Interfaces:
- ServiceCommandValidator
 
 public class DefaultServiceCommandValidator extends Object implements ServiceCommandValidator 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultServiceCommandValidator()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFieldValidationError(FieldValidationError fieldError)Add a new field validation error.voidaddFieldValidationError(String fieldName, String messageKey)Add a new validation error.voidaddFieldValidationError(String fieldName, String messageKey, Object... messageArguments)Add a new validation error.voidaddValidationError(String messageKey, Object... messageArguments)Add a new validation error.Collection<ValidationError>getValidationErrors()Get all validation errors.
 
- 
- 
- 
Method Detail- 
addFieldValidationErrorpublic final void addFieldValidationError(String fieldName, String messageKey) Add a new validation error. This method must only be called during validation.- Specified by:
- addFieldValidationErrorin interface- ServiceCommandValidator
- Parameters:
- fieldName- the field that is not valid
- messageKey- the i18n key for the validation error message
 
 - 
addValidationErrorpublic final void addValidationError(String messageKey, Object... messageArguments) Add a new validation error. This method must only be called during validation.- Specified by:
- addValidationErrorin interface- ServiceCommandValidator
- Parameters:
- messageKey- the i18n key for the validation error message
- messageArguments- the arguments to be merged into the error message
 
 - 
addFieldValidationErrorpublic final void addFieldValidationError(String fieldName, String messageKey, Object... messageArguments) Add a new validation error. This method must only be called during validation.- Specified by:
- addFieldValidationErrorin interface- ServiceCommandValidator
- Parameters:
- fieldName- the field that is not valid
- messageKey- the i18n key for the validation error message
- messageArguments- the arguments to be merged into the error message.
 
 - 
addFieldValidationErrorpublic void addFieldValidationError(FieldValidationError fieldError) Description copied from interface:ServiceCommandValidatorAdd a new field validation error.- Specified by:
- addFieldValidationErrorin interface- ServiceCommandValidator
- Parameters:
- fieldError- the error to add
 
 - 
getValidationErrorspublic Collection<ValidationError> getValidationErrors() Description copied from interface:ServiceCommandValidatorGet all validation errors.- Specified by:
- getValidationErrorsin interface- ServiceCommandValidator
- Returns:
- validation errors.
 
 
- 
 
-