Class SimpleValidationResults
- java.lang.Object
-
- com.atlassian.confluence.api.model.validation.SimpleValidationResults
-
public class SimpleValidationResults extends Object
Methods to assist in the creation of SimpleValidationResult Errors
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValidationResultconflictResult(String message, Object... args)A conflict result usually occurs when trying to create something that already existsstatic ValidationResultforbiddenResult(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.
-
-
-
Method Detail
-
notFoundResult
public static ValidationResult notFoundResult(String message, Object... args)
- Parameters:
message- Information about what wasn't found- Returns:
- A 'Not Found' ValidationResult
-
conflictResult
public static ValidationResult conflictResult(String message, Object... args)
A conflict result usually occurs when trying to create something that already exists- Parameters:
message- Information about the conflict- Returns:
- A 'Conflict' ValidationResult
-
notImplementedResult
public static ValidationResult notImplementedResult(String message, Object... args)
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
public static ValidationResult forbiddenResult(String message, Object... args)
- Parameters:
message- Information about the forbidden result- Returns:
- An unauthorised 'forbidden' ValidationResult.
-
-