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 fd1790f61bf..35aa312a0f7 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
@@ -64,7 +64,8 @@
org.wso2.carbon.device.mgt.analytics.dashboard,
- org.wso2.carbon.device.mgt.analytics.dashboard.dao.exception
+ org.wso2.carbon.device.mgt.analytics.dashboard.dao.exception,
+ org.wso2.carbon.device.mgt.analytics.dashboard.dao.bean
org.osgi.framework,
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 3931e72fc2f..22afb893daf 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
@@ -18,7 +18,8 @@
package org.wso2.carbon.device.mgt.analytics.dashboard;
-import org.wso2.carbon.device.mgt.analytics.dashboard.dao.exception.InvalidParameterException;
+import org.wso2.carbon.device.mgt.analytics.dashboard.dao.bean.FilterSet;
+import org.wso2.carbon.device.mgt.analytics.dashboard.dao.exception.InvalidParameterValueException;
import org.wso2.carbon.device.mgt.common.PaginationResult;
import java.sql.SQLException;
@@ -50,43 +51,46 @@ public interface GadgetDataService {
@SuppressWarnings("unused")
PaginationResult getNonCompliantDeviceCountsByFeatures(int startIndex, int resultCount)
- throws InvalidParameterException, SQLException;
+ throws InvalidParameterValueException, SQLException;
@SuppressWarnings("unused")
- int getDeviceCount(Map filters) throws SQLException;
+ int getDeviceCount(FilterSet filterSet) throws InvalidParameterValueException, SQLException;
@SuppressWarnings("unused")
int getFeatureNonCompliantDeviceCount(String nonCompliantFeatureCode,
- Map filters) throws InvalidParameterException, SQLException;
+ FilterSet filterSet) throws InvalidParameterValueException, SQLException;
@SuppressWarnings("unused")
- Map getDeviceCountsByPlatforms(Map filters) throws SQLException;
+ Map getDeviceCountsByPlatforms(FilterSet filterSet)
+ throws InvalidParameterValueException, SQLException;
@SuppressWarnings("unused")
Map getFeatureNonCompliantDeviceCountsByPlatforms(String nonCompliantFeatureCode,
- Map filters) throws InvalidParameterException, SQLException;
+ FilterSet filterSet) throws InvalidParameterValueException, SQLException;
@SuppressWarnings("unused")
- Map getDeviceCountsByOwnershipTypes(Map filters) throws SQLException;
+ Map getDeviceCountsByOwnershipTypes(FilterSet filterSet)
+ throws InvalidParameterValueException, SQLException;
@SuppressWarnings("unused")
Map getFeatureNonCompliantDeviceCountsByOwnershipTypes(String nonCompliantFeatureCode,
- Map filters) throws InvalidParameterException, SQLException;
+ FilterSet filterSet) throws InvalidParameterValueException, SQLException;
@SuppressWarnings("unused")
- PaginationResult getDevicesWithDetails(Map filters,
- int startIndex, int resultCount) throws InvalidParameterException, SQLException;
+ PaginationResult getDevicesWithDetails(FilterSet filterSet, int startIndex, int resultCount)
+ throws InvalidParameterValueException, SQLException;
@SuppressWarnings("unused")
PaginationResult getFeatureNonCompliantDevicesWithDetails(String nonCompliantFeatureCode,
- Map filters, int startIndex, int resultCount)
- throws InvalidParameterException, SQLException;
+ FilterSet filterSet, int startIndex, int resultCount)
+ throws InvalidParameterValueException, SQLException;
@SuppressWarnings("unused")
- List