From aa2448dd0a398d659c1b0701ab60ec861b7b34ce Mon Sep 17 00:00:00 2001 From: manoj Date: Fri, 12 Dec 2014 20:00:57 +0530 Subject: [PATCH] Add device list method and chgange getDevice by Id method return type to device --- .../java/org/wso2/carbon/device/mgt/core/dao/DeviceDAO.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/DeviceDAO.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/DeviceDAO.java index 5bf4335dba..2c9cb0d585 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/DeviceDAO.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/dao/DeviceDAO.java @@ -33,6 +33,8 @@ public interface DeviceDAO { void deleteDevice(Long deviceId) throws DeviceManagementDAOException; - List getDeviceByDeviceId(Long deviceId) throws DeviceManagementDAOException; + Device getDeviceByDeviceId(Long deviceId) throws DeviceManagementDAOException; + + List getDevices() throws DeviceManagementDAOException; }