@Controller @RequestMapping(value="/invocations") public class InvocationsController extends RestController
| Constructor and Description |
|---|
InvocationsController() |
| Modifier and Type | Method and Description |
|---|---|
com.sitewhere.spi.device.event.IDeviceCommandInvocation |
getDeviceCommandInvocation(String id,
javax.servlet.http.HttpServletRequest servletRequest)
Get a command invocation by unique id.
|
com.sitewhere.rest.model.device.event.view.DeviceCommandInvocationSummary |
getDeviceCommandInvocationSummary(String id,
javax.servlet.http.HttpServletRequest servletRequest)
Get a summarized version of the given device command invocation.
|
com.sitewhere.spi.search.ISearchResults<com.sitewhere.spi.device.event.IDeviceCommandResponse> |
listCommandInvocationResponses(String id,
javax.servlet.http.HttpServletRequest servletRequest)
List all responses for a command invocation.
|
getTenant, getTenantAuthToken, handleAccessDenied, handleMissingContent, handleRuntimeException, handleSuccessfulAdd, handleSystemException@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
@Secured(value="ROLE_REST")
public com.sitewhere.spi.device.event.IDeviceCommandInvocation getDeviceCommandInvocation(@PathVariable
String id,
javax.servlet.http.HttpServletRequest servletRequest)
throws com.sitewhere.spi.SiteWhereException
criteria - com.sitewhere.spi.SiteWhereException@RequestMapping(value="/{id}/summary",
method=GET)
@ResponseBody
@Secured(value="ROLE_REST")
public com.sitewhere.rest.model.device.event.view.DeviceCommandInvocationSummary getDeviceCommandInvocationSummary(@PathVariable
String id,
javax.servlet.http.HttpServletRequest servletRequest)
throws com.sitewhere.spi.SiteWhereException
criteria - com.sitewhere.spi.SiteWhereException@RequestMapping(value="/{id}/responses",
method=GET)
@ResponseBody
@Secured(value="ROLE_REST")
public com.sitewhere.spi.search.ISearchResults<com.sitewhere.spi.device.event.IDeviceCommandResponse> listCommandInvocationResponses(@PathVariable
String id,
javax.servlet.http.HttpServletRequest servletRequest)
throws com.sitewhere.spi.SiteWhereException
assignmentToken - com.sitewhere.spi.SiteWhereExceptionCopyright © 2016 SiteWhere, LLC.. All rights reserved.