return new OperationCollectionImpl(restConnector, url, pageSize);
}
private PagedCollectionResource getOperationsByDeviceAndStatus(String deviceId, OperationStatus status) throws SDKException {
String urlTemplate = getDeviceControlRepresentation().getOperationsByDeviceIdAndStatus();
Map filter = new HashMap();
filter.put(DEVICE_ID, deviceId);
filter.put(STATUS, status.toString());
String url = templateUrlParser.replacePlaceholdersWithParams(urlTemplate, filter);
return new OperationCollectionImpl(restConnector, url, pageSize);
}