@Path(value="/search/decorators") @Produces(value="application/json") @Consumes(value="application/json") public class DecoratorResource extends RestResource
configuration, userService| Constructor and Description |
|---|
DecoratorResource(DecoratorService decoratorService,
Map<String,SearchResponseDecorator.Factory> searchResponseDecorators) |
| Modifier and Type | Method and Description |
|---|---|
Decorator |
create(@Valid @NotNull DecoratorImpl decorator) |
void |
delete(String decoratorId) |
List<Decorator> |
get() |
Map<String,ConfigurableTypeInfo> |
getAvailable() |
Decorator |
update(String decoratorId,
@Valid @NotNull DecoratorImpl decorator) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public DecoratorResource(DecoratorService decoratorService, Map<String,SearchResponseDecorator.Factory> searchResponseDecorators)
@GET @Timed @Path(value="/available") public Map<String,ConfigurableTypeInfo> getAvailable()
@POST @Timed public Decorator create(@Valid @NotNull @Valid @NotNull DecoratorImpl decorator)
@DELETE
@Path(value="/{decoratorId}")
@Timed
public void delete(@PathParam(value="decoratorId")
String decoratorId)
throws NotFoundException
NotFoundException@PUT
@Path(value="/{decoratorId}")
@Timed
public Decorator update(@PathParam(value="decoratorId")
String decoratorId,
@Valid @NotNull
@Valid @NotNull DecoratorImpl decorator)
throws NotFoundException
NotFoundExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.