Class SimpleValidationResult.Builder
- java.lang.Object
-
- com.atlassian.confluence.api.model.validation.SimpleValidationResult.Builder
-
- Enclosing class:
- SimpleValidationResult
public static class SimpleValidationResult.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SimpleValidationResult.Builder
addError(ValidationError error)
SimpleValidationResult.Builder
addError(String key, Object... args)
SimpleValidationResult.Builder
addErrors(List<ValidationError> errors)
SimpleValidationResult.Builder
addExceptionSupplier(com.atlassian.fugue.Function2<String,ValidationResult,? extends ServiceException> exceptionSupplier)
Deprecated.since 7.0.1.SimpleValidationResult.Builder
addFieldError(String fieldName, String key, Object... args)
SimpleValidationResult.Builder
addMessage(Message message)
SimpleValidationResult.Builder
allowedInReadOnlyMode(boolean value)
SimpleValidationResult.Builder
authorized(boolean value)
ValidationResult
build()
boolean
hasErrors()
SimpleValidationResult.Builder
withExceptionSupplier(BiFunction<String,ValidationResult,? extends ServiceException> exceptionSupplier)
-
-
-
Method Detail
-
authorized
public SimpleValidationResult.Builder authorized(boolean value)
-
allowedInReadOnlyMode
public SimpleValidationResult.Builder allowedInReadOnlyMode(boolean value)
-
addFieldError
public SimpleValidationResult.Builder addFieldError(String fieldName, String key, Object... args)
-
addMessage
public SimpleValidationResult.Builder addMessage(Message message)
- Since:
- 5.7
-
addError
public SimpleValidationResult.Builder addError(String key, Object... args)
-
addError
public SimpleValidationResult.Builder addError(ValidationError error)
-
addErrors
public SimpleValidationResult.Builder addErrors(List<ValidationError> errors)
- Since:
- 5.7
-
addExceptionSupplier
@Deprecated public SimpleValidationResult.Builder addExceptionSupplier(com.atlassian.fugue.Function2<String,ValidationResult,? extends ServiceException> exceptionSupplier)
Deprecated.since 7.0.1. UsewithExceptionSupplier(BiFunction)
- Since:
- 5.8
- See Also:
ServiceExceptionSupplier
-
withExceptionSupplier
public SimpleValidationResult.Builder withExceptionSupplier(BiFunction<String,ValidationResult,? extends ServiceException> exceptionSupplier)
- Since:
- 7.0.1
- See Also:
ServiceExceptionSupplier
-
build
public ValidationResult build()
-
hasErrors
public boolean hasErrors()
-
-