mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
refactored coding issues.
This commit is contained in:
parent
7091a45590
commit
d5e583becc
@ -259,10 +259,11 @@ public class WindowsDeviceManager implements DeviceManager {
|
||||
boolean status;
|
||||
MobileDevice mobileDevice = MobileDeviceManagementUtil.convertToMobileDevice(device);
|
||||
try {
|
||||
WindowsDAOFactory.getConnection();
|
||||
WindowsDAOFactory.beginTransaction();
|
||||
status = daoFactory.getMobileDeviceDAO().addMobileDevice(mobileDevice);
|
||||
WindowsDAOFactory.commitTransaction();
|
||||
} catch (MobileDeviceManagementDAOException e) {
|
||||
WindowsDAOFactory.rollbackTransaction();
|
||||
throw new DeviceManagementException("Error while enrolling the Windows device '" +
|
||||
device.getDeviceIdentifier() + "'", e);
|
||||
} finally {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user