mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Bug fixes
This commit is contained in:
parent
0d94a293a4
commit
07b12fe4ea
@ -225,6 +225,8 @@ public class DeviceInformationManagerImpl implements DeviceInformationManager {
|
|||||||
throw new DeviceDetailsMgtException("SQL error occurred while retrieving device from database.", e);
|
throw new DeviceDetailsMgtException("SQL error occurred while retrieving device from database.", e);
|
||||||
} catch (DeviceDetailsMgtDAOException e) {
|
} catch (DeviceDetailsMgtDAOException e) {
|
||||||
throw new DeviceDetailsMgtException("Exception occurred while retrieving device locations.", e);
|
throw new DeviceDetailsMgtException("Exception occurred while retrieving device locations.", e);
|
||||||
|
} finally{
|
||||||
|
DeviceManagementDAOFactory.closeConnection();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -245,7 +245,7 @@ public class FeatureManagerImpl implements FeatureManager {
|
|||||||
@Override
|
@Override
|
||||||
public List<ProfileFeature> getFeaturesForProfile(int profileId) throws FeatureManagementException {
|
public List<ProfileFeature> getFeaturesForProfile(int profileId) throws FeatureManagementException {
|
||||||
try {
|
try {
|
||||||
DeviceManagementDAOFactory.openConnection();
|
PolicyManagementDAOFactory.openConnection();
|
||||||
return featureDAO.getFeaturesForProfile(profileId);
|
return featureDAO.getFeaturesForProfile(profileId);
|
||||||
} catch (FeatureManagerDAOException e) {
|
} catch (FeatureManagerDAOException e) {
|
||||||
throw new FeatureManagementException("Error occurred while getting the features", e);
|
throw new FeatureManagementException("Error occurred while getting the features", e);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user