Package org.graylog2.plugin.database
Interface PersistedService
- All Known Subinterfaces:
AccessTokenService
,IndexFailureService
,InputService
,MongoDBSessionService
,NodeService
,NotificationService
,StreamRuleService
,StreamService
,SystemMessageService
,UserManagementService
,UserService
- All Known Implementing Classes:
AccessTokenServiceImpl
,IndexFailureServiceImpl
,InputServiceImpl
,MongoDBSessionServiceImpl
,NodeServiceImpl
,NotificationServiceImpl
,PersistedServiceImpl
,StreamRuleServiceImpl
,StreamServiceImpl
,SystemMessageServiceImpl
,SystemSetting
,UserManagementServiceImpl
,UserServiceImpl
public interface PersistedService
-
Method Summary
Modifier and TypeMethodDescription<T extends Persisted>
intdestroy
(T model) <T extends Persisted>
intdestroyAll
(Class<T> modelClass) save
(T model) saveWithoutValidation
(T model) <T extends Persisted>
Map<String,List<ValidationResult>> validate
(T model) <T extends Persisted>
Map<String,List<ValidationResult>>
-
Method Details
-
destroy
-
destroyAll
-
save
- Throws:
ValidationException
-
saveWithoutValidation
-
validate
-
validate
-
validate
-