com.atlassian.confluence.core.service
Interface ServiceCommandValidator

All Known Implementing Classes:
DefaultServiceCommandValidator

public interface ServiceCommandValidator


Method Summary
 void addFieldValidationError(FieldValidationError fieldError)
          Add a new field validation error.
 void addFieldValidationError(java.lang.String fieldName, java.lang.String messageKey)
          Add a new validation error.
 void addFieldValidationError(java.lang.String fieldName, java.lang.String messageKey, java.lang.Object... messageArguments)
          Add a new validation error.
 void addValidationError(java.lang.String messageKey, java.lang.Object... messageArguments)
          Add a new validation error.
 java.util.Collection<ValidationError> getValidationErrors()
          Get all validation errors.
 

Method Detail

addFieldValidationError

void addFieldValidationError(java.lang.String fieldName,
                             java.lang.String messageKey)
Add a new validation error.

Parameters:
fieldName - the field that is not valid
messageKey - the i18n key for the validation error message

addValidationError

void addValidationError(java.lang.String messageKey,
                        java.lang.Object... messageArguments)
Add a new validation error.

Parameters:
messageKey - the i18n key for the validation error message
messageArguments - the arguments to be merged into the error message

addFieldValidationError

void addFieldValidationError(java.lang.String fieldName,
                             java.lang.String messageKey,
                             java.lang.Object... messageArguments)
Add a new validation error.

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.

addFieldValidationError

void addFieldValidationError(FieldValidationError fieldError)
Add a new field validation error.

Parameters:
fieldError - the error to add

getValidationErrors

java.util.Collection<ValidationError> getValidationErrors()
Get all validation errors.

Returns:
validation errors.


Copyright © 2003-2014 Atlassian. All Rights Reserved.