public class DBNotificationService extends PaginatedDbService<NotificationDto>
db| Constructor and Description |
|---|
DBNotificationService(MongoConnection mongoConnection,
MongoJackObjectMapperProvider mapper,
EntityOwnershipService entityOwnerShipService) |
| Modifier and Type | Method and Description |
|---|---|
int |
delete(String id)
Deletes the
DTO for the given ID from the database. |
NotificationDto |
saveWithOwnership(NotificationDto notificationDto,
User user) |
PaginatedList<NotificationDto> |
searchPaginated(SearchQuery query,
Predicate<NotificationDto> filter,
String sortByField,
int page,
int perPage) |
asImmutableList, findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, get, getSortBuilder, save, streamAll, streamByIds, streamQuery, streamQueryWithSort@Inject public DBNotificationService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, EntityOwnershipService entityOwnerShipService)
public PaginatedList<NotificationDto> searchPaginated(SearchQuery query, Predicate<NotificationDto> filter, String sortByField, int page, int perPage)
public NotificationDto saveWithOwnership(NotificationDto notificationDto, User user)
public int delete(String id)
PaginatedDbServiceDTO for the given ID from the database.delete in class PaginatedDbService<NotificationDto>id - ID of the DTO to deleteCopyright © 2012–2021 Graylog, Inc.. All rights reserved.