Class SimpleValidationResults
java.lang.Object
com.atlassian.confluence.api.model.validation.SimpleValidationResults
Methods to assist in the creation of SimpleValidationResult Errors
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationResult
conflictResult
(String message, Object... args) A conflict result usually occurs when trying to create something that already existsstatic ValidationResult
forbiddenResult
(String message, Object... args) static ValidationResult
invalidResult
(String message, Object... args) static ValidationResult
notAuthenticatedResult
(String message, Object... args) static ValidationResult
notFoundResult
(String message, Object... args) static ValidationResult
notImplementedResult
(String message, Object... args) To be used where some functionality hasn't been implemented.static ValidationResult
paymentRequiredResult
(String message, Object... args)
-
Method Details
-
notFoundResult
- Parameters:
message
- Information about what wasn't found- Returns:
- A 'Not Found' ValidationResult
-
conflictResult
A conflict result usually occurs when trying to create something that already exists- Parameters:
message
- Information about the conflict- Returns:
- A 'Conflict' ValidationResult
-
notImplementedResult
To be used where some functionality hasn't been implemented.- Parameters:
message
- Information about what hasn't been implemented- Returns:
- A 'Not implemented' ValidationResult
-
forbiddenResult
- Parameters:
message
- Information about the forbidden result- Returns:
- An unauthorised 'forbidden' ValidationResult.
-
invalidResult
- Parameters:
message
- Information about the bad request result- Returns:
- An authorised invalid (Bad request) ValidationResult.
-
paymentRequiredResult
- Parameters:
message
- Information about the forbidden result- Returns:
- An authorised 'payment required' ValidationResult.
-
notAuthenticatedResult
- Parameters:
message
- Information about the unauthorised result- Returns:
- An unauthorised 'Unauthorised' ValidationResult.
-