public class DBAuthServiceBackendService extends PaginatedDbService<AuthServiceBackendDTO>
db| Modifier | Constructor and Description |
|---|---|
protected |
DBAuthServiceBackendService(MongoConnection mongoConnection,
MongoJackObjectMapperProvider mapper,
Map<String,AuthServiceBackend.Factory<? extends AuthServiceBackend>> backendFactories,
com.google.common.eventbus.EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
long |
countBackends() |
int |
delete(String id)
Deletes the
DTO for the given ID from the database. |
PaginatedList<AuthServiceBackendDTO> |
findPaginated(PaginationParameters params,
Predicate<AuthServiceBackendDTO> filter) |
AuthServiceBackendDTO |
save(AuthServiceBackendDTO newBackend)
Stores the given
DTO in the database. |
asImmutableList, findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, get, getSortBuilder, streamAll, streamByIds, streamQuery, streamQueryWithSort@Inject protected DBAuthServiceBackendService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, Map<String,AuthServiceBackend.Factory<? extends AuthServiceBackend>> backendFactories, com.google.common.eventbus.EventBus eventBus)
public AuthServiceBackendDTO save(AuthServiceBackendDTO newBackend)
PaginatedDbServiceDTO in the database.save in class PaginatedDbService<AuthServiceBackendDTO>newBackend - the DTO to saveDTOpublic int delete(String id)
PaginatedDbServiceDTO for the given ID from the database.delete in class PaginatedDbService<AuthServiceBackendDTO>id - ID of the DTO to deletepublic long countBackends()
public PaginatedList<AuthServiceBackendDTO> findPaginated(PaginationParameters params, Predicate<AuthServiceBackendDTO> filter)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.