Class EntityListPreferencesResource
java.lang.Object
org.graylog2.rest.resources.entities.preferences.EntityListPreferencesResource
@RequiresAuthentication
@Path("/entitylists/preferences")
public class EntityListPreferencesResource
extends Object
-
Constructor Summary
ConstructorDescriptionEntityListPreferencesResource
(EntityListPreferencesService entityListPreferencesService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
create
(EntityListPreferences entityListPreferences, @NotEmpty String entityListId, UserContext userContext) get
(@NotEmpty String entityListId, UserContext userContext)
-
Constructor Details
-
EntityListPreferencesResource
@Inject public EntityListPreferencesResource(EntityListPreferencesService entityListPreferencesService)
-
-
Method Details
-
create
@POST @Path("/{entity_list_id}") @Timed @Consumes("application/json") public javax.ws.rs.core.Response create(EntityListPreferences entityListPreferences, @PathParam("entity_list_id") @NotEmpty @NotEmpty String entityListId, @Context UserContext userContext) throws ValidationException - Throws:
ValidationException
-
get
@GET @Path("/{entity_list_id}") @Timed @Produces("application/json") public EntityListPreferences get(@PathParam("entity_list_id") @NotEmpty @NotEmpty String entityListId, @Context UserContext userContext) throws NotFoundException - Throws:
NotFoundException
-