public class SavedSearchServiceImpl extends PersistedServiceImpl implements SavedSearchService
mongoConnection
Constructor and Description |
---|
SavedSearchServiceImpl(MongoConnection mongoConnection) |
Modifier and Type | Method and Description |
---|---|
List<SavedSearch> |
all() |
SavedSearch |
create(String title,
Map<String,Object> query,
String creatorUserId,
org.joda.time.DateTime createdAt) |
SavedSearch |
load(String id) |
void |
update(SavedSearch search,
String title,
Map<String,Object> query) |
collection, collection, count, count, cursorToList, destroy, destroy, destroyAll, destroyAll, destroyAll, embed, findOne, findOne, findOne, findOne, get, get, get, query, query, query, query, query, removeEmbedded, removeEmbedded, save, saveWithoutValidation, totalCount, totalCount, validate, validate, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validate
@Inject public SavedSearchServiceImpl(MongoConnection mongoConnection)
public List<SavedSearch> all()
all
in interface SavedSearchService
public SavedSearch load(String id) throws NotFoundException
load
in interface SavedSearchService
NotFoundException
public SavedSearch create(String title, Map<String,Object> query, String creatorUserId, org.joda.time.DateTime createdAt)
create
in interface SavedSearchService
public void update(SavedSearch search, String title, Map<String,Object> query) throws ValidationException
update
in interface SavedSearchService
ValidationException
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.