Class DefaultServiceCommandValidator
java.lang.Object
com.atlassian.confluence.core.service.DefaultServiceCommandValidator
- All Implemented Interfaces:
- ServiceCommandValidator
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddFieldValidationError(FieldValidationError fieldError) Add a new field validation error.final voidaddFieldValidationError(String fieldName, String messageKey) Add a new validation error.final voidaddFieldValidationError(String fieldName, String messageKey, Object... messageArguments) Add a new validation error.final voidaddValidationError(String messageKey, Object... messageArguments) Add a new validation error.Get all validation errors.
- 
Constructor Details- 
DefaultServiceCommandValidatorpublic DefaultServiceCommandValidator()
 
- 
- 
Method Details- 
addFieldValidationErrorAdd 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
 
- 
addValidationErrorAdd 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.
 
- 
addFieldValidationErrorDescription copied from interface:ServiceCommandValidatorAdd a new field validation error.- Specified by:
- addFieldValidationErrorin interface- ServiceCommandValidator
- Parameters:
- fieldError- the error to add
 
- 
getValidationErrorsDescription copied from interface:ServiceCommandValidatorGet all validation errors.- Specified by:
- getValidationErrorsin interface- ServiceCommandValidator
- Returns:
- validation errors.
 
 
-