@Path(value="/dashboards") public class DashboardsResource extends RestResource
userService
Constructor and Description |
---|
DashboardsResource(DashboardService dashboardService,
ActivityWriter activityWriter,
ClusterEventBus clusterEventBus,
com.google.common.eventbus.EventBus serverEventBus) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(CreateDashboardRequest cr) |
void |
delete(String dashboardId) |
Map<String,Object> |
get(String dashboardId) |
DashboardList |
list() |
void |
setPositions(String dashboardId,
@Valid WidgetPositionsRequest uwpr) |
void |
update(String dashboardId,
UpdateDashboardRequest cr) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
@Inject public DashboardsResource(DashboardService dashboardService, ActivityWriter activityWriter, ClusterEventBus clusterEventBus, com.google.common.eventbus.EventBus serverEventBus)
@POST @Timed @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(CreateDashboardRequest cr) throws ValidationException
ValidationException
@GET @Timed @Produces(value="application/json") public DashboardList list()
@GET @Timed @Path(value="/{dashboardId}") @Produces(value="application/json") public Map<String,Object> get(@PathParam(value="dashboardId") String dashboardId) throws NotFoundException
NotFoundException
@DELETE @Timed @Produces(value="application/json") @Path(value="/{dashboardId}") public void delete(@PathParam(value="dashboardId") String dashboardId) throws NotFoundException, ValidationException
NotFoundException
ValidationException
@PUT @Timed @Produces(value="application/json") @Path(value="/{dashboardId}") public void update(@PathParam(value="dashboardId") String dashboardId, UpdateDashboardRequest cr) throws ValidationException, NotFoundException
ValidationException
NotFoundException
@PUT @Timed @Produces(value="application/json") @Path(value="/{dashboardId}/positions") public void setPositions(@PathParam(value="dashboardId") String dashboardId, @Valid @Valid WidgetPositionsRequest uwpr) throws NotFoundException, ValidationException
NotFoundException
ValidationException
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.