| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DeviceControlApi
API for creating, updating and retrieving operations from the platform.
| Method Summary | |
|---|---|
|  OperationRepresentation | create(OperationRepresentation operation)Creates operation in the platform. | 
|  OperationRepresentation | getOperation(GId gid)Gets operation by id | 
|  PagedCollectionResource<OperationCollectionRepresentation> | getOperations()Gets the all the operation in the platform | 
|  PagedCollectionResource<OperationCollectionRepresentation> | getOperationsByFilter(OperationFilter filter)Gets the operations from the platform based on specified filter. | 
|  OperationRepresentation | update(OperationRepresentation operation)Updates operation in the platform. | 
| Method Detail | 
|---|
OperationRepresentation getOperation(GId gid)
                                     throws SDKException
gid - id of the operation to search for
SDKException - if the operation is not found or if the query failed
OperationRepresentation create(OperationRepresentation operation)
                               throws SDKException
operation - operation to be created
SDKException - if the operation could not be created
OperationRepresentation update(OperationRepresentation operation)
                               throws SDKException
operation - to be updated
SDKException - if the operation could not be updated
PagedCollectionResource<OperationCollectionRepresentation> getOperations()
                                                                         throws SDKException
SDKException - if the query failed
PagedCollectionResource<OperationCollectionRepresentation> getOperationsByFilter(OperationFilter filter)
                                                                                 throws SDKException
status, deviceId, agentId]
 and [deviceId, agentId] are not supported.
 currently not supported.
filter - the filter criteria(s)
SDKException - if the query failed
IllegalArgumentException - in case of queries based on [status, deviceId, agentId] or [deviceId, agentId]| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||