Class IndexFieldTypeProfileService
java.lang.Object
org.graylog2.database.PaginatedDbService<IndexFieldTypeProfile>
org.graylog2.indexer.indexset.profile.IndexFieldTypeProfileService
-
Field Summary
Fields inherited from class org.graylog2.database.PaginatedDbService
db -
Constructor Summary
ConstructorsConstructorDescriptionIndexFieldTypeProfileService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, MongoCollections mongoCollections, IndexFieldTypeProfileUsagesService indexFieldTypeProfileUsagesService, IndexSetService indexSetService) -
Method Summary
Modifier and TypeMethodDescriptionintDeletes thePaginatedDbServicefor the given ID from the database.Get thePaginatedDbServicefor the given ID.getAll()Deprecated.getPaginated(String query, List<String> filters, int page, int perPage, String sortField, String order) getWithUsages(String profileId) save(IndexFieldTypeProfile indexFieldTypeProfile) Stores the givenPaginatedDbServicein the database.booleanupdate(String profileId, IndexFieldTypeProfile updatedProfile) Methods inherited from class org.graylog2.database.PaginatedDbService
asImmutableList, findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, findPaginatedWithQueryFilterAndSortWithGrandTotal, getMultiFieldSortBuilder, getPage, getSortBuilder, streamAll, streamByIds, streamQuery, streamQueryWithSort
-
Constructor Details
-
IndexFieldTypeProfileService
@Inject public IndexFieldTypeProfileService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, MongoCollections mongoCollections, IndexFieldTypeProfileUsagesService indexFieldTypeProfileUsagesService, IndexSetService indexSetService)
-
-
Method Details
-
get
Description copied from class:PaginatedDbServiceGet thePaginatedDbServicefor the given ID.- Overrides:
getin classPaginatedDbService<IndexFieldTypeProfile>- Parameters:
profileId- 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
-
getWithUsages
-
save
Description copied from class:PaginatedDbServiceStores the givenPaginatedDbServicein the database.- Overrides:
savein classPaginatedDbService<IndexFieldTypeProfile>- Parameters:
indexFieldTypeProfile- thePaginatedDbServiceto save- Returns:
- the newly saved
PaginatedDbService
-
delete
Description copied from class:PaginatedDbServiceDeletes thePaginatedDbServicefor the given ID from the database.- Overrides:
deletein classPaginatedDbService<IndexFieldTypeProfile>- Parameters:
id- ID of thePaginatedDbServiceto delete- Returns:
- the number of deleted documents
-
update
-
getPaginated
public PageListResponse<IndexFieldTypeProfileWithUsages> getPaginated(String query, List<String> filters, int page, int perPage, String sortField, String order) -
getAll
Deprecated.
-