mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix issues in get devices method
This commit is contained in:
parent
aa9f3da380
commit
2021a0b37a
@ -1500,11 +1500,6 @@ public abstract class AbstractGroupDAOImpl implements GroupDAO {
|
||||
deviceIdentifiers.put(deviceId, rs.getString("DEVICE_IDENTIFICATION"));
|
||||
}
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
String msg = "Error occurred while retrieving group details and device IDs for group: " + groupName;
|
||||
log.error(msg, e);
|
||||
throw new GroupManagementDAOException(msg, e);
|
||||
}
|
||||
groupDetails.setDeviceIds(deviceIds);
|
||||
groupDetails.setDeviceCount(deviceIds.size());
|
||||
groupDetails.setDeviceOwners(deviceOwners);
|
||||
@ -1514,4 +1509,10 @@ public abstract class AbstractGroupDAOImpl implements GroupDAO {
|
||||
groupDetails.setDeviceIdentifiers(deviceIdentifiers);
|
||||
return groupDetails;
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
String msg = "Error occurred while retrieving group details and device IDs for group: " + groupName;
|
||||
log.error(msg, e);
|
||||
throw new GroupManagementDAOException(msg, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user