|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.rest.api.model.validation.RestValidationResult
@ExperimentalApi public class RestValidationResult
REST-friendly version of a ValidationResult
.
Constructor Summary | |
---|---|
RestValidationResult(ValidationResult that)
|
Method Summary | |
---|---|
java.lang.Iterable<ValidationError> |
getErrors()
|
boolean |
isAuthorized()
|
boolean |
isValid()
|
ServiceException |
throwIfInvalid(java.lang.String msg)
converts this validation result into an Exception and throws it |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RestValidationResult(ValidationResult that)
Method Detail |
---|
public boolean isAuthorized()
isAuthorized
in interface ValidationResult
public boolean isValid()
isValid
in interface ValidationResult
public java.lang.Iterable<ValidationError> getErrors()
getErrors
in interface ValidationResult
public ServiceException throwIfInvalid(java.lang.String msg) throws ServiceException
ValidationResult
throwIfInvalid
in interface ValidationResult
ServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |