@Component(value="hardwareInventoryResource") @Path(value="hardwareInventory") @Transactional public class HardwareInventoryResource extends OnmsRestService
OnmsRestService.ComparisonOperationDEFAULT_LIMIT| Constructor and Description |
|---|
HardwareInventoryResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addOrReplaceChild(javax.ws.rs.core.UriInfo uriInfo,
String nodeCriteria,
Integer parentEntPhysicalIndex,
OnmsHwEntity child)
Adds or replaces a child entity.
|
javax.ws.rs.core.Response |
deleteHwEntity(javax.ws.rs.core.UriInfo uriInfo,
String nodeCriteria,
Integer entPhysicalIndex)
Delete hardware entity.
|
OnmsHwEntity |
getHardwareInventory(String nodeCriteria)
Gets the hardware inventory.
|
OnmsHwEntity |
getHwEntityByIndex(String nodeCriteria,
Integer entPhysicalIndex)
Gets the hardware entity by index.
|
javax.ws.rs.core.Response |
setHardwareInventory(javax.ws.rs.core.UriInfo uriInfo,
String nodeCriteria,
OnmsHwEntity entity)
Sets the hardware inventory (root object)
|
javax.ws.rs.core.Response |
updateHwEntity(javax.ws.rs.core.UriInfo uriInfo,
String nodeCriteria,
Integer entPhysicalIndex,
MultivaluedMapImpl params)
Update hardware entity.
|
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock@GET
@Produces(value={"application/xml","application/json"})
public OnmsHwEntity getHardwareInventory(@PathParam(value="nodeCriteria")
String nodeCriteria)
nodeCriteria - the node criteria@GET
@Path(value="{entPhysicalIndex}")
@Produces(value={"application/xml","application/json"})
public OnmsHwEntity getHwEntityByIndex(@PathParam(value="nodeCriteria")
String nodeCriteria,
@PathParam(value="entPhysicalIndex")
Integer entPhysicalIndex)
nodeCriteria - the node criteriaentPhysicalIndex - the entity physical index@POST
@Consumes(value={"application/xml","application/json"})
public javax.ws.rs.core.Response setHardwareInventory(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="nodeCriteria")
String nodeCriteria,
OnmsHwEntity entity)
nodeCriteria - the node criteriaentity - the root entity object@POST
@Path(value="{parentEntPhysicalIndex}")
@Consumes(value={"application/xml","application/json"})
public javax.ws.rs.core.Response addOrReplaceChild(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="nodeCriteria")
String nodeCriteria,
@PathParam(value="parentEntPhysicalIndex")
Integer parentEntPhysicalIndex,
OnmsHwEntity child)
nodeCriteria - the node criteriaparentEntPhysicalIndex - the parent entity physical indexchild - the child@PUT
@Path(value="{entPhysicalIndex}")
@Consumes(value="application/x-www-form-urlencoded")
public javax.ws.rs.core.Response updateHwEntity(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="nodeCriteria")
String nodeCriteria,
@PathParam(value="entPhysicalIndex")
Integer entPhysicalIndex,
MultivaluedMapImpl params)
nodeCriteria - the node criteriaentPhysicalIndex - the entity physical indexparams - the parameters@DELETE
@Path(value="{entPhysicalIndex}")
public javax.ws.rs.core.Response deleteHwEntity(@Context
javax.ws.rs.core.UriInfo uriInfo,
@PathParam(value="nodeCriteria")
String nodeCriteria,
@PathParam(value="entPhysicalIndex")
Integer entPhysicalIndex)
nodeCriteria - the node criteriaentPhysicalIndex - the entity physical indexCopyright © 2015. All rights reserved.