@Component(value="ncsRestService") @Path(value="NCS") @Transactional public class NCSRestService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NCSRestService.ComponentList |
| Constructor and Description |
|---|
NCSRestService() |
| Modifier and Type | Method and Description |
|---|---|
NCSComponent |
addComponent(boolean deleteOrphans,
String type,
String foreignSource,
String foreignId,
NCSComponent subComponent)
getNodes
|
javax.ws.rs.core.Response |
addComponents(boolean deleteOrphans,
NCSComponent component) |
void |
afterPropertiesSet() |
javax.ws.rs.core.Response |
deleteComponent(boolean deleteOrphans,
String type,
String foreignSource,
String foreignId) |
NCSComponent |
getComponent(String type,
String foreignSource,
String foreignId)
getNodes
|
NCSRestService.ComponentList |
getComponentsByAttributes() |
protected void |
readLock() |
protected void |
readUnlock() |
protected void |
writeLock() |
protected void |
writeUnlock() |
public void afterPropertiesSet()
throws RuntimeException
RuntimeException@GET
@Produces(value={"application/xml","application/json"})
@Path(value="{type}/{foreignSource}:{foreignId}")
public NCSComponent getComponent(@PathParam(value="type")
String type,
@PathParam(value="foreignSource")
String foreignSource,
@PathParam(value="foreignId")
String foreignId)
getNodes
OnmsNodeList object.@GET @Path(value="attributes") public NCSRestService.ComponentList getComponentsByAttributes()
@POST
@Consumes(value="application/xml")
public javax.ws.rs.core.Response addComponents(@QueryParam(value="deleteOrphans")
boolean deleteOrphans,
NCSComponent component)
@POST
@Produces(value={"application/xml","application/json"})
@Path(value="{type}/{foreignSource}:{foreignId}")
public NCSComponent addComponent(@QueryParam(value="deleteOrphans")
boolean deleteOrphans,
@PathParam(value="type")
String type,
@PathParam(value="foreignSource")
String foreignSource,
@PathParam(value="foreignId")
String foreignId,
NCSComponent subComponent)
getNodes
OnmsNodeList object.@DELETE
@Path(value="{type}/{foreignSource}:{foreignId}")
public javax.ws.rs.core.Response deleteComponent(@QueryParam(value="deleteOrphans")
boolean deleteOrphans,
@PathParam(value="type")
String type,
@PathParam(value="foreignSource")
String foreignSource,
@PathParam(value="foreignId")
String foreignId)
protected void readLock()
protected void readUnlock()
protected void writeLock()
protected void writeUnlock()
Copyright © 2015. All rights reserved.