Class SimpleValidationResult.Builder
java.lang.Object
com.atlassian.confluence.api.model.validation.SimpleValidationResult.Builder
- Enclosing class:
- SimpleValidationResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddError
(ValidationError error) addErrors
(List<ValidationError> errors) addFieldError
(String fieldName, String key, Object... args) addMessage
(Message message) allowedInReadOnlyMode
(boolean value) authorized
(boolean value) build()
boolean
withExceptionSupplier
(BiFunction<String, ValidationResult, ? extends ServiceException> exceptionSupplier)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorized
-
allowedInReadOnlyMode
-
addFieldError
-
addMessage
- Since:
- 5.7
-
addError
-
addError
-
addErrors
- Since:
- 5.7
-
withExceptionSupplier
public SimpleValidationResult.Builder withExceptionSupplier(BiFunction<String, ValidationResult, ? extends ServiceException> exceptionSupplier) - Since:
- 7.0.1
- See Also:
-
build
-
hasErrors
public boolean hasErrors()
-