Class DecoratorResource
java.lang.Object
org.graylog2.shared.rest.resources.RestResource
org.graylog2.rest.resources.search.DecoratorResource
@Path("/search/decorators")
@Produces("application/json")
@Consumes("application/json")
public class DecoratorResource
extends RestResource
-
Field Summary
Fields inherited from class org.graylog2.shared.rest.resources.RestResource
configuration, userService
-
Constructor Summary
ConstructorDescriptionDecoratorResource
(DecoratorService decoratorService, Map<String, SearchResponseDecorator.Factory> searchResponseDecorators) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(@Valid @NotNull DecoratorImpl decorator) void
get()
update
(String decoratorId, @Valid @NotNull DecoratorImpl decorator) Methods inherited from class org.graylog2.shared.rest.resources.RestResource
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
-
Constructor Details
-
DecoratorResource
@Inject public DecoratorResource(DecoratorService decoratorService, Map<String, SearchResponseDecorator.Factory> searchResponseDecorators)
-
-
Method Details
-
get
-
getAvailable
-
create
-
delete
@DELETE @Path("/{decoratorId}") @Timed public void delete(@PathParam("decoratorId") String decoratorId) throws NotFoundException - Throws:
NotFoundException
-
update
@PUT @Path("/{decoratorId}") @Timed public Decorator update(@PathParam("decoratorId") String decoratorId, @Valid @NotNull @Valid @NotNull DecoratorImpl decorator) throws NotFoundException - Throws:
NotFoundException
-