@Component(value="resourceRestService") @Path(value="resources") public class ResourceRestService extends OnmsRestService
OnmsRestService.ComparisonOperation
DEFAULT_LIMIT
Constructor and Description |
---|
ResourceRestService() |
Modifier and Type | Method and Description |
---|---|
void |
deleteResourceById(String resourceId) |
ResourceDTO |
getResourceById(String resourceId,
int depth) |
ResourceDTO |
getResourceForNode(String nodeCriteria,
int depth) |
ResourceDTOCollection |
getResources(int depth) |
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlock
@GET @Produces(value={"application/xml","application/json","application/atom+xml"}) @Transactional(readOnly=true) public ResourceDTOCollection getResources(@DefaultValue(value="1") @QueryParam(value="depth") int depth)
@GET @Path(value="{resourceId}") @Produces(value={"application/xml","application/json","application/atom+xml"}) @Transactional(readOnly=true) public ResourceDTO getResourceById(@PathParam(value="resourceId") String resourceId, @DefaultValue(value="-1") @QueryParam(value="depth") int depth)
@DELETE @Path(value="{resourceId}") @Transactional(readOnly=false) public void deleteResourceById(@PathParam(value="resourceId") String resourceId)
@GET @Path(value="fornode/{nodeCriteria}") @Produces(value={"application/xml","application/json","application/atom+xml"}) @Transactional(readOnly=true) public ResourceDTO getResourceForNode(@PathParam(value="nodeCriteria") String nodeCriteria, @DefaultValue(value="-1") @QueryParam(value="depth") int depth)
Copyright © 2015. All rights reserved.