Package org.graylog2.bootstrap.preflight
Class NullNotificationService
java.lang.Object
org.graylog2.bootstrap.preflight.NullNotificationService
- All Implemented Interfaces:
NotificationService,PersistedService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()build()buildNow()<T extends Persisted>
intdestroy(T model) <T extends Persisted>
intdestroyAll(Class<T> modelClass) intintdestroyAllByTypeAndKey(Notification.Type type, String key) booleanfixed(Notification notification) booleanfixed(Notification.Type type) booleanfixed(Notification.Type type, String key) booleanfixed(Notification.Type type, Node node) getByTypeAndKey(Notification.Type type, String key) booleanisFirst(Notification.Type type) booleanpublishIfFirst(Notification notification) save(T model) saveWithoutValidation(T model) <T extends Persisted>
Map<String,List<ValidationResult>> validate(T model) <T extends Persisted>
Map<String,List<ValidationResult>>
-
Constructor Details
-
NullNotificationService
public NullNotificationService()
-
-
Method Details
-
build
- Specified by:
buildin interfaceNotificationService
-
buildNow
- Specified by:
buildNowin interfaceNotificationService
-
fixed
- Specified by:
fixedin interfaceNotificationService
-
fixed
- Specified by:
fixedin interfaceNotificationService
-
fixed
- Specified by:
fixedin interfaceNotificationService
-
isFirst
- Specified by:
isFirstin interfaceNotificationService
-
all
- Specified by:
allin interfaceNotificationService
-
getByTypeAndKey
- Specified by:
getByTypeAndKeyin interfaceNotificationService
-
publishIfFirst
- Specified by:
publishIfFirstin interfaceNotificationService
-
fixed
- Specified by:
fixedin interfaceNotificationService
-
destroyAllByType
- Specified by:
destroyAllByTypein interfaceNotificationService
-
destroyAllByTypeAndKey
- Specified by:
destroyAllByTypeAndKeyin interfaceNotificationService
-
destroy
- Specified by:
destroyin interfacePersistedService
-
destroyAll
- Specified by:
destroyAllin interfacePersistedService
-
save
- Specified by:
savein interfacePersistedService- Throws:
ValidationException
-
saveWithoutValidation
- Specified by:
saveWithoutValidationin interfacePersistedService
-
validate
public <T extends Persisted> Map<String,List<ValidationResult>> validate(T model, Map<String, Object> fields) - Specified by:
validatein interfacePersistedService
-
validate
- Specified by:
validatein interfacePersistedService
-
validate
public Map<String,List<ValidationResult>> validate(Map<String, Validator> validators, Map<String, Object> fields) - Specified by:
validatein interfacePersistedService
-