public class DBLookupTableService extends Object
| Constructor and Description |
|---|
DBLookupTableService(MongoConnection mongoConnection,
MongoJackObjectMapperProvider mapper,
ClusterEventBus clusterEventBus) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String idOrName) |
Collection<LookupTableDto> |
findAll() |
Collection<LookupTableDto> |
findByCacheIds(Collection<String> cacheIds) |
Collection<LookupTableDto> |
findByDataAdapterIds(Collection<String> dataAdapterIds) |
Collection<LookupTableDto> |
findByNames(Collection<String> names) |
PaginatedList<LookupTableDto> |
findPaginated(org.mongojack.DBQuery.Query query,
org.mongojack.DBSort.SortBuilder sort,
int page,
int perPage) |
void |
forEach(Consumer<? super LookupTableDto> action) |
Optional<LookupTableDto> |
get(String idOrName) |
LookupTableDto |
save(LookupTableDto table) |
@Inject public DBLookupTableService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, ClusterEventBus clusterEventBus)
public Optional<LookupTableDto> get(String idOrName)
public LookupTableDto save(LookupTableDto table)
public Collection<LookupTableDto> findAll()
public Collection<LookupTableDto> findByNames(Collection<String> names)
public PaginatedList<LookupTableDto> findPaginated(org.mongojack.DBQuery.Query query, org.mongojack.DBSort.SortBuilder sort, int page, int perPage)
public Collection<LookupTableDto> findByCacheIds(Collection<String> cacheIds)
public Collection<LookupTableDto> findByDataAdapterIds(Collection<String> dataAdapterIds)
public void delete(String idOrName)
public void forEach(Consumer<? super LookupTableDto> action)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.