Package org.opennms.web.rest.v1
Class GraphRestService
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.GraphRestService
-
@Component("graphRestService") public class GraphRestService extends OnmsRestServiceRead-only API for retrieving graph definitions and determining the list of supported graphs on a particular resource.- Author:
- jwhite
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGraphRestService.GraphResourceDTOstatic classGraphRestService.ResourceVisitor-
Nested classes/interfaces inherited from class org.opennms.web.rest.v1.OnmsRestService
OnmsRestService.ComparisonOperation
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v1.OnmsRestService
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description GraphRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrefabGraphgetGraphByName(String graphName)GraphNameCollectiongetGraphNames()GraphNameCollectiongetGraphNamesForResource(String resourceId)GraphRestService.GraphResourceDTOgetGraphResourcesForNode(String nodeCriteria, int depth)-
Methods inherited from class org.opennms.web.rest.v1.OnmsRestService
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getGraphNames
@Transactional(readOnly=true) public GraphNameCollection getGraphNames()
-
getGraphByName
@Transactional(readOnly=true) public PrefabGraph getGraphByName(String graphName)
-
getGraphNamesForResource
@Transactional(readOnly=true) public GraphNameCollection getGraphNamesForResource(String resourceId)
-
getGraphResourcesForNode
@Transactional(readOnly=true) public GraphRestService.GraphResourceDTO getGraphResourcesForNode(String nodeCriteria, int depth)
-
-