Package org.opennms.web.rest.v1
Class NodeRestService
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.NodeRestService
-
@Component("nodeRestService") @Transactional public class NodeRestService extends OnmsRestService
Basic Web Service using REST for OnmsNode entity- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- Alejandro Galue
-
-
Nested Class Summary
-
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 NodeRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
addCategoryToNode(javax.ws.rs.core.UriInfo uriInfo, String nodeCriteria, String categoryName)
javax.ws.rs.core.Response
addCategoryToNode(javax.ws.rs.core.UriInfo uriInfo, String nodeCriteria, OnmsCategory category)
javax.ws.rs.core.Response
addNode(javax.ws.rs.core.UriInfo uriInfo, OnmsNode node)
addNodejavax.ws.rs.core.Response
deleteNode(String nodeCriteria)
deleteNodeAssetRecordResource
getAssetRecordResource(javax.ws.rs.container.ResourceContext context)
getAssetRecordResourceOnmsCategoryCollection
getCategoriesForNode(String nodeCriteria)
OnmsCategory
getCategoryForNode(String nodeCriteria, String categoryName)
HardwareInventoryResource
getHardwareInventoryResource(javax.ws.rs.container.ResourceContext context)
getHardwareInventoryResourceOnmsIpInterfaceResource
getIpInterfaceResource(javax.ws.rs.container.ResourceContext context)
getIpInterfaceResourceOnmsNode
getNode(String nodeCriteria)
getNodeOnmsNodeList
getNodes(javax.ws.rs.core.UriInfo uriInfo)
getNodesOnmsSnmpInterfaceResource
getSnmpInterfaceResource(javax.ws.rs.container.ResourceContext context)
getSnmpInterfaceResourcejavax.ws.rs.core.Response
removeCategoryFromNode(String nodeCriteria, String categoryName)
javax.ws.rs.core.Response
updateCategoryForNode(String nodeCriteria, String categoryName, MultivaluedMapImpl params)
javax.ws.rs.core.Response
updateNode(String nodeCriteria, MultivaluedMapImpl params)
updateNode-
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
-
getNodes
public OnmsNodeList getNodes(@Context javax.ws.rs.core.UriInfo uriInfo)
getNodes
- Returns:
- a
OnmsNodeList
object.
-
addNode
public javax.ws.rs.core.Response addNode(@Context javax.ws.rs.core.UriInfo uriInfo, OnmsNode node)
addNode
- Parameters:
node
- aOnmsNode
object.- Returns:
- a
Response
object.
-
updateNode
public javax.ws.rs.core.Response updateNode(String nodeCriteria, MultivaluedMapImpl params)
updateNode
- Parameters:
nodeCriteria
- aString
object.params
- aMultivaluedMapImpl
object.- Returns:
- a
Response
object.
-
deleteNode
public javax.ws.rs.core.Response deleteNode(String nodeCriteria)
deleteNode
- Parameters:
nodeCriteria
- aString
object.- Returns:
- a
Response
object.
-
getIpInterfaceResource
public OnmsIpInterfaceResource getIpInterfaceResource(@Context javax.ws.rs.container.ResourceContext context)
getIpInterfaceResource
- Returns:
- a
org.opennms.web.rest.OnmsIpInterfaceResource
object.
-
getSnmpInterfaceResource
public OnmsSnmpInterfaceResource getSnmpInterfaceResource(@Context javax.ws.rs.container.ResourceContext context)
getSnmpInterfaceResource
- Returns:
- a
org.opennms.web.rest.OnmsSnmpInterfaceResource
object.
-
getAssetRecordResource
public AssetRecordResource getAssetRecordResource(@Context javax.ws.rs.container.ResourceContext context)
getAssetRecordResource
- Returns:
- a
org.opennms.web.rest.AssetRecordResource
object.
-
getHardwareInventoryResource
public HardwareInventoryResource getHardwareInventoryResource(@Context javax.ws.rs.container.ResourceContext context)
getHardwareInventoryResource
- Returns:
- a
org.opennms.web.rest.HardwareInventoryResource
object.
-
getCategoriesForNode
public OnmsCategoryCollection getCategoriesForNode(String nodeCriteria)
-
getCategoryForNode
public OnmsCategory getCategoryForNode(String nodeCriteria, String categoryName)
-
addCategoryToNode
public javax.ws.rs.core.Response addCategoryToNode(@Context javax.ws.rs.core.UriInfo uriInfo, String nodeCriteria, OnmsCategory category)
-
addCategoryToNode
public javax.ws.rs.core.Response addCategoryToNode(@Context javax.ws.rs.core.UriInfo uriInfo, String nodeCriteria, String categoryName)
-
updateCategoryForNode
public javax.ws.rs.core.Response updateCategoryForNode(String nodeCriteria, String categoryName, MultivaluedMapImpl params)
-
-