Package org.graylog2.lookup.db
Class DBLookupTableService
java.lang.Object
org.graylog2.database.PaginatedDbService<E>
org.graylog2.database.entities.ScopedDbService<LookupTableDto>
org.graylog2.lookup.db.DBLookupTableService
-
Field Summary
FieldsFields inherited from class org.graylog2.database.entities.ScopedDbService
entityScopeServiceFields inherited from class org.graylog2.database.PaginatedDbService
db -
Constructor Summary
ConstructorsConstructorDescriptionDBLookupTableService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, EntityScopeService entityScopeService, ClusterEventBus clusterEventBus) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAndPostEvent(String idOrName) voiddeleteAndPostEventImmutable(String idOrName) findAll()findByCacheIds(Collection<String> cacheIds) findByDataAdapterIds(Collection<String> dataAdapterIds) findPaginated(org.mongojack.DBQuery.Query query, org.mongojack.DBSort.SortBuilder sort, int page, int perPage) voidforEach(Consumer<? super LookupTableDto> action) Get thePaginatedDbServicefor the given ID.voidpostBulkUpdate(Collection<LookupTableDto> tables) saveAndPostEvent(LookupTableDto table) Methods inherited from class org.graylog2.database.entities.ScopedDbService
delete, ensureDeletability, ensureMutability, ensureValidScope, forceDelete, isDeletable, isMutable, saveMethods inherited from class org.graylog2.database.PaginatedDbService
asImmutableList, findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, findPaginatedWithQueryFilterAndSortWithGrandTotal, getMultiFieldSortBuilder, getPage, getSortBuilder, streamAll, streamByIds, streamQuery, streamQueryWithSort
-
Field Details
-
COLLECTION_NAME
- See Also:
-
-
Constructor Details
-
DBLookupTableService
@Inject public DBLookupTableService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, EntityScopeService entityScopeService, ClusterEventBus clusterEventBus)
-
-
Method Details
-
get
Description copied from class:PaginatedDbServiceGet thePaginatedDbServicefor the given ID.- Overrides:
getin classPaginatedDbService<LookupTableDto>- Parameters:
idOrName- the ID of the object- Returns:
- an Optional containing the found object or an empty Optional if no object can be found for the given ID
-
saveAndPostEvent
-
postBulkUpdate
-
findAll
-
findPaginated
public PaginatedList<LookupTableDto> findPaginated(org.mongojack.DBQuery.Query query, org.mongojack.DBSort.SortBuilder sort, int page, int perPage) -
findByCacheIds
-
findByDataAdapterIds
-
deleteAndPostEvent
-
deleteAndPostEventImmutable
-
forEach
-