Package org.graylog2.lookup.db
Class DBDataAdapterService
java.lang.Object
org.graylog2.database.PaginatedDbService<E>
org.graylog2.database.entities.ScopedDbService<DataAdapterDto>
org.graylog2.lookup.db.DBDataAdapterService
-
Field Summary
FieldsFields inherited from class org.graylog2.database.entities.ScopedDbService
entityScopeServiceFields inherited from class org.graylog2.database.PaginatedDbService
db -
Constructor Summary
ConstructorsConstructorDescriptionDBDataAdapterService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, EntityScopeService entityScopeService, ClusterEventBus clusterEventBus) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAndPostEvent(String idOrName) voiddeleteAndPostEventImmutable(String idOrName) findAll()findPaginated(org.mongojack.DBQuery.Query query, org.mongojack.DBSort.SortBuilder sort, int page, int perPage) Get thePaginatedDbServicefor the given ID.voidpostBulkUpdate(Set<String> updatedAdapterIds) saveAndPostEvent(DataAdapterDto 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
-
DBDataAdapterService
@Inject public DBDataAdapterService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, EntityScopeService entityScopeService, ClusterEventBus clusterEventBus)
-
-
Method Details
-
get
Description copied from class:PaginatedDbServiceGet thePaginatedDbServicefor the given ID.- Overrides:
getin classPaginatedDbService<DataAdapterDto>- 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
-
findPaginated
public PaginatedList<DataAdapterDto> findPaginated(org.mongojack.DBQuery.Query query, org.mongojack.DBSort.SortBuilder sort, int page, int perPage) -
deleteAndPostEvent
-
deleteAndPostEventImmutable
-
findByIds
-
findAll
-