public static class SimpleValidationResult.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SimpleValidationResult.Builder |
addError(String key,
Object... args) |
SimpleValidationResult.Builder |
addError(ValidationError error) |
SimpleValidationResult.Builder |
addErrors(List<ValidationError> errors) |
SimpleValidationResult.Builder |
addExceptionSupplier(com.google.common.base.Function<String,? extends ServiceException> exceptionSupplier)
Deprecated.
Since 5.8. Use
addExceptionSupplier(com.atlassian.fugue.Function2) instead. |
SimpleValidationResult.Builder |
addExceptionSupplier(com.atlassian.fugue.Function2<String,ValidationResult,? extends ServiceException> exceptionSupplier) |
SimpleValidationResult.Builder |
addFieldError(String fieldName,
String key,
Object... args) |
SimpleValidationResult.Builder |
addMessage(Message message) |
SimpleValidationResult.Builder |
authorized(boolean value) |
ValidationResult |
build() |
boolean |
hasErrors() |
public SimpleValidationResult.Builder authorized(boolean value)
public SimpleValidationResult.Builder addFieldError(String fieldName, String key, Object... args)
public SimpleValidationResult.Builder addMessage(Message message)
public SimpleValidationResult.Builder addError(String key, Object... args)
public SimpleValidationResult.Builder addError(ValidationError error)
public SimpleValidationResult.Builder addErrors(List<ValidationError> errors)
@Deprecated public SimpleValidationResult.Builder addExceptionSupplier(com.google.common.base.Function<String,? extends ServiceException> exceptionSupplier)
addExceptionSupplier(com.atlassian.fugue.Function2)
instead.public SimpleValidationResult.Builder addExceptionSupplier(com.atlassian.fugue.Function2<String,ValidationResult,? extends ServiceException> exceptionSupplier)
ServiceExceptionSupplier
public ValidationResult build()
public boolean hasErrors()
Copyright © 2003–2015 Atlassian. All rights reserved.