@Path(value="/search/saved") public class SavedSearchesResource extends SearchResource
searchesobjectMapper, userService| Constructor and Description |
|---|
SavedSearchesResource(Searches searches,
SavedSearchService savedSearchService,
ClusterConfigService clusterConfigService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(CreateSavedSearchRequest cr) |
void |
delete(String searchId) |
Map<String,Object> |
get(String searchId) |
Map<String,Object> |
list() |
Map<String,Object> |
update(String searchId,
CreateSavedSearchRequest cr) |
buildChunkedOutput, buildFieldStatsResult, buildHistogramResult, buildSearchResponse, buildSorting, buildTermsResult, buildTermsStatsResult, checkSearchPermission, createRequestExceptionForParseFailure, createScrollChunkProducer, fieldHistogram, fieldStats, indexRangeListToValueList, parseFields, parseOptionalFields, restrictTimeRange, resultMessageListtoValueList, validateIntervalcheckAnyPermission, checkPermission, checkPermission, getCurrentUser, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public SavedSearchesResource(Searches searches, SavedSearchService savedSearchService, ClusterConfigService clusterConfigService)
@POST @Timed @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(CreateSavedSearchRequest cr) throws ValidationException
ValidationException@PUT
@Path(value="/{searchId}")
@Timed
@Consumes(value="application/json")
@Produces(value="application/json")
public Map<String,Object> update(@PathParam(value="searchId")
String searchId,
CreateSavedSearchRequest cr)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@GET
@Path(value="/{searchId}")
@Timed
public Map<String,Object> get(@PathParam(value="searchId")
String searchId)
throws NotFoundException
NotFoundException@DELETE
@Path(value="/{searchId}")
@Timed
public void delete(@PathParam(value="searchId")
String searchId)
throws NotFoundException
NotFoundExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.