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 ValidationResultconflictResult(String message, Object... args) A conflict result usually occurs when trying to create something that already existsstatic ValidationResultforbiddenResult(String message, Object... args) static ValidationResultinvalidResult(String message, Object... args) static ValidationResultnotAuthenticatedResult(String message, Object... args) static ValidationResultnotFoundResult(String message, Object... args) static ValidationResultnotImplementedResult(String message, Object... args) To be used where some functionality hasn't been implemented.static ValidationResultpaymentRequiredResult(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.
-