Class 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
    • Constructor Detail

      • NodeRestService

        public NodeRestService()
    • Method Detail

      • getNodes

        public OnmsNodeList getNodes​(@Context
                                     javax.ws.rs.core.UriInfo uriInfo)

        getNodes

        Returns:
        a OnmsNodeList object.
      • getNode

        public OnmsNode getNode​(String nodeCriteria)

        getNode

        Parameters:
        nodeCriteria - a String 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 - a OnmsNode object.
        Returns:
        a Response object.
      • deleteNode

        public javax.ws.rs.core.Response deleteNode​(String nodeCriteria)

        deleteNode

        Parameters:
        nodeCriteria - a String 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.
      • 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)
      • removeCategoryFromNode

        public javax.ws.rs.core.Response removeCategoryFromNode​(String nodeCriteria,
                                                                String categoryName)