@Component(value="ncsRestService") @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 static javax.ws.rs.WebApplicationException |
getException(javax.ws.rs.core.Response.Status status,
String msg,
Object... params) |
protected void |
readLock() |
protected void |
readUnlock() |
protected void |
writeLock() |
protected void |
writeUnlock() |
public void afterPropertiesSet() throws RuntimeException
RuntimeException
public NCSComponent getComponent(String type, String foreignSource, String foreignId)
getNodes
OnmsNodeList
object.public NCSRestService.ComponentList getComponentsByAttributes()
public javax.ws.rs.core.Response addComponents(boolean deleteOrphans, NCSComponent component)
public NCSComponent addComponent(boolean deleteOrphans, String type, String foreignSource, String foreignId, NCSComponent subComponent)
getNodes
OnmsNodeList
object.public javax.ws.rs.core.Response deleteComponent(boolean deleteOrphans, String type, String foreignSource, String foreignId)
protected void readLock()
protected void readUnlock()
protected void writeLock()
protected void writeUnlock()
Copyright © 2019. All rights reserved.