diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.analytics.dashboard/pom.xml b/components/device-mgt/org.wso2.carbon.device.mgt.analytics.dashboard/pom.xml
index 32721655887..cbc22f06c9c 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.analytics.dashboard/pom.xml
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.analytics.dashboard/pom.xml
@@ -58,6 +58,8 @@
Device Management Dashboard Analytics Bundle
org.wso2.carbon.device.mgt.analytics.dashboard.dao,
+ org.wso2.carbon.device.mgt.analytics.dashboard.dao.impl,
+ org.wso2.carbon.device.mgt.analytics.dashboard.impl,
org.wso2.carbon.device.mgt.analytics.dashboard.internal
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.analytics.dashboard/src/main/java/org/wso2/carbon/device/mgt/analytics/dashboard/GadgetDataService.java b/components/device-mgt/org.wso2.carbon.device.mgt.analytics.dashboard/src/main/java/org/wso2/carbon/device/mgt/analytics/dashboard/GadgetDataService.java
index d34bd4c2e5a..7c5b2038e66 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.analytics.dashboard/src/main/java/org/wso2/carbon/device/mgt/analytics/dashboard/GadgetDataService.java
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.analytics.dashboard/src/main/java/org/wso2/carbon/device/mgt/analytics/dashboard/GadgetDataService.java
@@ -30,58 +30,61 @@ import java.util.Map;
public interface GadgetDataService {
@SuppressWarnings("unused")
- int getTotalDeviceCount();
+ int getTotalDeviceCount() throws GadgetDataServiceException;
@SuppressWarnings("unused")
- int getActiveDeviceCount();
+ int getActiveDeviceCount() throws GadgetDataServiceException;
@SuppressWarnings("unused")
- int getInactiveDeviceCount();
+ int getInactiveDeviceCount() throws GadgetDataServiceException;
@SuppressWarnings("unused")
- int getRemovedDeviceCount();
+ int getRemovedDeviceCount() throws GadgetDataServiceException;
@SuppressWarnings("unused")
- int getNonCompliantDeviceCount();
+ int getNonCompliantDeviceCount() throws GadgetDataServiceException;
@SuppressWarnings("unused")
- int getUnmonitoredDeviceCount();
+ int getUnmonitoredDeviceCount() throws GadgetDataServiceException;
@SuppressWarnings("unused")
- PaginationResult getNonCompliantDeviceCountsByFeatures(PaginationRequest paginationRequest);
+ PaginationResult getNonCompliantDeviceCountsByFeatures(PaginationRequest paginationRequest)
+ throws GadgetDataServiceException;
@SuppressWarnings("unused")
- int getDeviceCount(Map filters);
+ int getDeviceCount(Map filters) throws GadgetDataServiceException;
@SuppressWarnings("unused")
- int getFeatureNonCompliantDeviceCount(String nonCompliantFeatureCode, Map filters);
+ int getFeatureNonCompliantDeviceCount(String nonCompliantFeatureCode,
+ Map filters) throws GadgetDataServiceException;
@SuppressWarnings("unused")
- Map getDeviceCountsByPlatforms(Map filters);
+ Map getDeviceCountsByPlatforms(Map filters) throws GadgetDataServiceException;
@SuppressWarnings("unused")
Map getFeatureNonCompliantDeviceCountsByPlatforms(String nonCompliantFeatureCode,
- Map filters);
+ Map filters) throws GadgetDataServiceException;
@SuppressWarnings("unused")
- Map getDeviceCountsByOwnershipTypes(Map filters);
+ Map getDeviceCountsByOwnershipTypes(Map filters) throws GadgetDataServiceException;
@SuppressWarnings("unused")
Map getFeatureNonCompliantDeviceCountsByOwnershipTypes(String nonCompliantFeatureCode,
- Map filters);
+ Map filters) throws GadgetDataServiceException;
@SuppressWarnings("unused")
- PaginationResult getDevicesWithDetails(Map filters, PaginationRequest paginationRequest);
+ PaginationResult getDevicesWithDetails(Map filters,
+ PaginationRequest paginationRequest) throws GadgetDataServiceException;
@SuppressWarnings("unused")
PaginationResult getFeatureNonCompliantDevicesWithDetails(String nonCompliantFeatureCode,
- Map filters, PaginationRequest paginationRequest);
+ Map filters, PaginationRequest paginationRequest) throws GadgetDataServiceException;
@SuppressWarnings("unused")
- List