@Path(value="/system/lookup") @Produces(value="application/json") @Consumes(value="application/json") public class LookupTableResource extends RestResource
| Modifier and Type | Class and Description |
|---|---|
static class |
LookupTableResource.CachesPage |
static class |
LookupTableResource.DataAdapterPage |
static class |
LookupTableResource.LookupTablePage |
configuration, userService| Constructor and Description |
|---|
LookupTableResource(DBLookupTableService dbTableService,
DBDataAdapterService dbDataAdapterService,
DBCacheService dbCacheService,
Map<String,LookupCache.Factory> cacheTypes,
Map<String,LookupDataAdapter.Factory> dataAdapterTypes,
Map<String,LookupDataAdapter.Factory2> dataAdapterTypes2,
LookupTableService lookupTableService,
LookupDataAdapterValidationContext lookupDataAdapterValidationContext) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public LookupTableResource(DBLookupTableService dbTableService, DBDataAdapterService dbDataAdapterService, DBCacheService dbCacheService, Map<String,LookupCache.Factory> cacheTypes, Map<String,LookupDataAdapter.Factory> dataAdapterTypes, Map<String,LookupDataAdapter.Factory2> dataAdapterTypes2, LookupTableService lookupTableService, LookupDataAdapterValidationContext lookupDataAdapterValidationContext)
@GET
@Path(value="tables/{name}/query")
public LookupResult performLookup(@PathParam(value="name") @NotEmpty
@NotEmpty String name,
@QueryParam(value="key") @NotEmpty
@NotEmpty String key)
@POST
@Path(value="tables/{idOrName}/purge")
public void performPurge(@PathParam(value="idOrName") @NotEmpty
@NotEmpty String idOrName,
@QueryParam(value="key")
String key)
ClusterLookupTableResource.performPurge(String, String)
instead!@GET @Path(value="tables") public LookupTableResource.LookupTablePage tables(@QueryParam(value="page") @DefaultValue(value="1") int page, @QueryParam(value="per_page") @DefaultValue(value="50") int perPage, @DefaultValue(value="title") @QueryParam(value="sort") String sort, @DefaultValue(value="desc") @QueryParam(value="order") String order, @QueryParam(value="query") String query, @QueryParam(value="resolve") @DefaultValue(value="false") boolean resolveObjects)
@GET
@Path(value="tables/{idOrName}")
public LookupTableResource.LookupTablePage get(@PathParam(value="idOrName") @NotEmpty
@NotEmpty String idOrName,
@QueryParam(value="resolve") @DefaultValue(value="false")
boolean resolveObjects)
@POST @Path(value="tables") public LookupTableApi createTable(LookupTableApi lookupTable)
@PUT
@Path(value="tables/{idOrName}")
public LookupTableApi updateTable(@PathParam(value="idOrName") @NotEmpty
@NotEmpty String idOrName,
@Valid
@Valid LookupTableApi toUpdate)
@DELETE
@Path(value="tables/{idOrName}")
public LookupTableApi removeTable(@PathParam(value="idOrName") @NotEmpty
@NotEmpty String idOrName)
@POST @Path(value="tables/validate") public ValidationResult validateTable(@Valid @Valid LookupTableApi toValidate)
@GET @Path(value="adapters") public LookupTableResource.DataAdapterPage adapters(@QueryParam(value="page") @DefaultValue(value="1") int page, @QueryParam(value="per_page") @DefaultValue(value="50") int perPage, @DefaultValue(value="title") @QueryParam(value="sort") String sort, @DefaultValue(value="desc") @QueryParam(value="order") String order, @QueryParam(value="query") String query)
@GET @Path(value="types/adapters") public Map<String,LookupDataAdapter.Descriptor> availableAdapterTypes()
@POST @Path(value="errorstates") public ErrorStates errorStates(@Valid @Valid ErrorStatesRequest request)
@GET
@Path(value="adapters/{idOrName}")
public DataAdapterApi getAdapter(@PathParam(value="idOrName") @NotEmpty
@NotEmpty String idOrName)
@GET
@Path(value="adapters/{name}/query")
public LookupResult performAdapterLookup(@PathParam(value="name") @NotEmpty
@NotEmpty String name,
@QueryParam(value="key") @NotEmpty
@NotEmpty String key)
@POST @Path(value="adapters") public DataAdapterApi createAdapter(@Valid @Valid DataAdapterApi newAdapter)
@DELETE
@Path(value="adapters/{idOrName}")
public DataAdapterApi deleteAdapter(@PathParam(value="idOrName") @NotEmpty
@NotEmpty String idOrName)
@PUT
@Path(value="adapters/{idOrName}")
public DataAdapterApi updateAdapter(@PathParam(value="idOrName") @NotEmpty
@NotEmpty String idOrName,
@Valid
@Valid DataAdapterApi toUpdate)
@POST @Path(value="adapters/validate") public ValidationResult validateAdapter(@Valid @Valid DataAdapterApi toValidate)
@GET @Path(value="caches") public LookupTableResource.CachesPage caches(@QueryParam(value="page") @DefaultValue(value="1") int page, @QueryParam(value="per_page") @DefaultValue(value="50") int perPage, @DefaultValue(value="title") @QueryParam(value="sort") String sort, @DefaultValue(value="desc") @QueryParam(value="order") String order, @QueryParam(value="query") String query)
@GET @Path(value="types/caches") public Map<String,LookupCache.Descriptor> availableCacheTypes()
@GET
@Path(value="caches/{idOrName}")
public CacheApi getCache(@PathParam(value="idOrName") @NotEmpty
@NotEmpty String idOrName)
@DELETE
@Path(value="caches/{idOrName}")
public CacheApi deleteCache(@PathParam(value="idOrName") @NotEmpty
@NotEmpty String idOrName)
@PUT
@Path(value="caches/{idOrName}")
public CacheApi updateCache(@PathParam(value="idOrName") @NotEmpty
@NotEmpty String idOrName,
CacheApi toUpdate)
@POST @Path(value="caches/validate") public ValidationResult validateCache(@Valid @Valid CacheApi toValidate)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.