| Package | Description |
|---|---|
| org.graylog2.database | |
| org.graylog2.database.validators | |
| org.graylog2.plugin.database | |
| org.graylog2.plugin.database.validators | |
| org.graylog2.plugin.rest |
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<ValidationResult>> |
PersistedServiceImpl.validate(Map<String,Validator> validators,
Map<String,Object> fields) |
<T extends Persisted> |
PersistedServiceImpl.validate(T model) |
<T extends Persisted> |
PersistedServiceImpl.validate(T model,
Map<String,Object> fields) |
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
DateValidator.validate(Object value)
Validates: Object is not null, of type org.joda.time.DateTime and
the String representation is in UTC.
|
ValidationResult |
ObjectIdValidator.validate(Object value)
Validates: Object is not
null and of type ObjectId. |
ValidationResult |
OptionalStringValidator.validate(Object value) |
ValidationResult |
LimitedOptionalStringValidator.validate(Object value) |
ValidationResult |
LimitedStringValidator.validate(Object value)
Validates: applies the validation from
FilledStringValidator and also check that value's length
is between the minimum and maximum length passed to the constructor. |
ValidationResult |
IntegerValidator.validate(Object value)
Validates: Object is not null and of type Integer.
|
ValidationResult |
FilledStringValidator.validate(Object value)
Validates: Object is not null, of type String and not empty.
|
ValidationResult |
MapValidator.validate(Object value) |
ValidationResult |
ListValidator.validate(Object value) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<ValidationResult>> |
ValidationException.getErrors() |
Map<String,List<ValidationResult>> |
PersistedService.validate(Map<String,Validator> validators,
Map<String,Object> fields) |
<T extends Persisted> |
PersistedService.validate(T model) |
<T extends Persisted> |
PersistedService.validate(T model,
Map<String,Object> fields) |
| Constructor and Description |
|---|
ValidationException(Map<String,List<ValidationResult>> errors) |
| Modifier and Type | Class and Description |
|---|---|
static class |
ValidationResult.ValidationFailed |
static class |
ValidationResult.ValidationPassed |
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
Validator.validate(Object value) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<ValidationResult>> |
ValidationApiError.getValidationErrors() |
| Constructor and Description |
|---|
ValidationApiError(String message,
Map<String,List<ValidationResult>> validationErrors) |
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.