@ExperimentalApi public class RestValidationResult extends Object implements ValidationResult
ValidationResult.| Constructor and Description |
|---|
RestValidationResult(ValidationResult that) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<ValidationError> |
getErrors()
Returns an iterable of the errors (if any) stored in this result.
|
boolean |
isAllowedInReadOnlyMode()
Checks for allowedInReadOnlyMode status.
|
boolean |
isAuthorized()
Checks for authorization status.
|
boolean |
isValid()
Checks for validity.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconvertToServiceException, isNotSuccessful, isSuccessful, throwIfInvalid, throwIfInvalid, throwIfNotSuccessful, throwIfNotSuccessful, throwIfNotValidpublic RestValidationResult(ValidationResult that)
public boolean isAuthorized()
ValidationResultvalidity check.isAuthorized in interface ValidationResulttrue if the current user is permitted to perform the execution that the validation is for, false otherwise.ValidationResult.isValid(),
ValidationResult.isSuccessful()public boolean isAllowedInReadOnlyMode()
ValidationResultvalidity check.isAllowedInReadOnlyMode in interface ValidationResulttrue if the current user is allowed to perform the execution in read-only mode that the validation is for, false otherwise.ValidationResult.isValid(),
ValidationResult.isSuccessful()public boolean isValid()
ValidationResultauthorization check.
By contract implementations MUST return false if there are errors in this ValidationResult.
Default implementation is usually enough.
isValid in interface ValidationResulttrue if there are no errors in this result, false otherwise.ValidationResult.getErrors(),
ValidationResult.isAuthorized(),
ValidationResult.isSuccessful()public Iterable<ValidationError> getErrors()
ValidationResultValidationResult.isValid() returning false.
Default implementation of ValidationResult.isValid() is safe for null values.
Be cautious about returning null if not using the default implementation for ValidationResult.isValid().
getErrors in interface ValidationResultValidationResult.isValid(),
ValidationErrorCopyright © 2003–2021 Atlassian. All rights reserved.