|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.core.service.DefaultServiceCommandValidator
public class DefaultServiceCommandValidator
Constructor Summary | |
---|---|
DefaultServiceCommandValidator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultServiceCommandValidator()
Method Detail |
---|
public final void addFieldValidationError(java.lang.String fieldName, java.lang.String messageKey)
addFieldValidationError
in interface ServiceCommandValidator
fieldName
- the field that is not validmessageKey
- the i18n key for the validation error messagepublic final void addValidationError(java.lang.String messageKey, java.lang.Object... messageArguments)
addValidationError
in interface ServiceCommandValidator
messageKey
- the i18n key for the validation error messagemessageArguments
- the arguments to be merged into the error messagepublic final void addFieldValidationError(java.lang.String fieldName, java.lang.String messageKey, java.lang.Object... messageArguments)
addFieldValidationError
in interface ServiceCommandValidator
fieldName
- the field that is not validmessageKey
- the i18n key for the validation error messagemessageArguments
- the arguments to be merged into the error message.public java.util.Collection<ValidationError> getValidationErrors()
ServiceCommandValidator
getValidationErrors
in interface ServiceCommandValidator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |