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, java.lang.String nodeCriteria, java.lang.String categoryName)
javax.ws.rs.core.Response
addCategoryToNode(javax.ws.rs.core.UriInfo uriInfo, java.lang.String nodeCriteria, OnmsCategory category)
javax.ws.rs.core.Response
addNode(javax.ws.rs.core.UriInfo uriInfo, OnmsNode node)
addNodejavax.ws.rs.core.Response
deleteNode(java.lang.String nodeCriteria)
deleteNodeAssetRecordResource
getAssetRecordResource(javax.ws.rs.container.ResourceContext context)
getAssetRecordResourceOnmsCategoryCollection
getCategoriesForNode(java.lang.String nodeCriteria)
OnmsCategory
getCategoryForNode(java.lang.String nodeCriteria, java.lang.String categoryName)
HardwareInventoryResource
getHardwareInventoryResource(javax.ws.rs.container.ResourceContext context)
getHardwareInventoryResourceOnmsIpInterfaceResource
getIpInterfaceResource(javax.ws.rs.container.ResourceContext context)
getIpInterfaceResourceOnmsNode
getNode(java.lang.String nodeCriteria)
getNodeOnmsNodeList
getNodes(javax.ws.rs.core.UriInfo uriInfo)
getNodesOnmsSnmpInterfaceResource
getSnmpInterfaceResource(javax.ws.rs.container.ResourceContext context)
getSnmpInterfaceResourcejavax.ws.rs.core.Response
removeCategoryFromNode(java.lang.String nodeCriteria, java.lang.String categoryName)
javax.ws.rs.core.Response
updateCategoryForNode(java.lang.String nodeCriteria, java.lang.String categoryName, MultivaluedMapImpl params)
javax.ws.rs.core.Response
updateNode(java.lang.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.
-
getNode
public OnmsNode getNode(java.lang.String nodeCriteria)
getNode
- Parameters:
nodeCriteria
- aString
object.- Returns:
- a
OnmsNode
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(java.lang.String nodeCriteria, MultivaluedMapImpl params)
updateNode
- Parameters:
nodeCriteria
- aString
object.params
- aMultivaluedMapImpl
object.- Returns:
- a
Response
object.
-
deleteNode
public javax.ws.rs.core.Response deleteNode(java.lang.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(java.lang.String nodeCriteria)
-
getCategoryForNode
public OnmsCategory getCategoryForNode(java.lang.String nodeCriteria, java.lang.String categoryName)
-
addCategoryToNode
public javax.ws.rs.core.Response addCategoryToNode(@Context javax.ws.rs.core.UriInfo uriInfo, java.lang.String nodeCriteria, OnmsCategory category)
-
addCategoryToNode
public javax.ws.rs.core.Response addCategoryToNode(@Context javax.ws.rs.core.UriInfo uriInfo, java.lang.String nodeCriteria, java.lang.String categoryName)
-
updateCategoryForNode
public javax.ws.rs.core.Response updateCategoryForNode(java.lang.String nodeCriteria, java.lang.String categoryName, MultivaluedMapImpl params)
-
removeCategoryFromNode
public javax.ws.rs.core.Response removeCategoryFromNode(java.lang.String nodeCriteria, java.lang.String categoryName)
-
-