@Component(value="graphRestService") @Path(value="graphs") public class GraphRestService extends OnmsRestService
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphRestService.GraphResourceDTO |
static class |
GraphRestService.ResourceVisitor |
OnmsRestService.ComparisonOperationDEFAULT_LIMIT| Constructor and Description |
|---|
GraphRestService() |
| Modifier and Type | Method and Description |
|---|---|
PrefabGraph |
getGraphByName(String graphName) |
GraphNameCollection |
getGraphNames() |
GraphNameCollection |
getGraphNamesForResource(String resourceId) |
GraphRestService.GraphResourceDTO |
getGraphResourcesForNode(String nodeCriteria,
int depth) |
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock@GET
@Produces(value={"application/xml","application/json","application/atom+xml"})
@Transactional(readOnly=true)
public GraphNameCollection getGraphNames()
@GET
@Path(value="{graphName}")
@Produces(value={"application/xml","application/json","application/atom+xml"})
@Transactional(readOnly=true)
public PrefabGraph getGraphByName(@PathParam(value="graphName")
String graphName)
@GET
@Path(value="for/{resourceId}")
@Produces(value={"application/xml","application/json","application/atom+xml"})
@Transactional(readOnly=true)
public GraphNameCollection getGraphNamesForResource(@PathParam(value="resourceId")
String resourceId)
@GET
@Path(value="fornode/{nodeCriteria}")
@Produces(value={"application/xml","application/json","application/atom+xml"})
@Transactional(readOnly=true)
public GraphRestService.GraphResourceDTO getGraphResourcesForNode(@PathParam(value="nodeCriteria")
String nodeCriteria,
@DefaultValue(value="-1") @QueryParam(value="depth")
int depth)
Copyright © 2015. All rights reserved.