Package org.opennms.web.rest.v1
Class ResourceRestService
- java.lang.Object
-
- org.opennms.web.rest.v1.OnmsRestService
-
- org.opennms.web.rest.v1.ResourceRestService
-
@Component("resourceRestService") public class ResourceRestService extends OnmsRestService
Read-only API for retrieving resources.- Author:
- jwhite
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.web.rest.v1.OnmsRestService
OnmsRestService.ComparisonOperation
-
-
Field Summary
-
Fields inherited from class org.opennms.web.rest.v1.OnmsRestService
DEFAULT_LIMIT
-
-
Constructor Summary
Constructors Constructor Description ResourceRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteResourceById(java.lang.String resourceId)
ResourceDTO
getResourceById(java.lang.String resourceId, int depth)
ResourceDTO
getResourceForNode(java.lang.String nodeCriteria, int depth)
ResourceDTOCollection
getResources(int depth)
javax.ws.rs.core.Response
saveResourcesWithId(java.lang.String[] resources)
-
Methods inherited from class org.opennms.web.rest.v1.OnmsRestService
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
-
-
-
-
Method Detail
-
getResources
@Transactional(readOnly=true) public ResourceDTOCollection getResources(int depth)
-
getResourceById
@Transactional(readOnly=true) public ResourceDTO getResourceById(java.lang.String resourceId, int depth)
-
deleteResourceById
@Transactional(readOnly=false) public void deleteResourceById(java.lang.String resourceId)
-
getResourceForNode
@Transactional(readOnly=true) public ResourceDTO getResourceForNode(java.lang.String nodeCriteria, int depth)
-
saveResourcesWithId
public javax.ws.rs.core.Response saveResourcesWithId(java.lang.String[] resources)
-
-