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​(java.lang.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.
      • updateNode

        public javax.ws.rs.core.Response updateNode​(java.lang.String nodeCriteria,
                                                    MultivaluedMapImpl params)

        updateNode

        Parameters:
        nodeCriteria - a String object.
        params - a MultivaluedMapImpl object.
        Returns:
        a Response object.
      • deleteNode

        public javax.ws.rs.core.Response deleteNode​(java.lang.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.
      • 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)