mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Code cleanup
This commit is contained in:
parent
5ed982beb4
commit
af58e5ec88
@ -762,9 +762,7 @@ public class OperationManagerImpl implements OperationManager {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
OperationManagementDAOFactory.openConnection();
|
OperationManagementDAOFactory.openConnection();
|
||||||
Activity act = operationDAO.getActivity(operationId);
|
return operationDAO.getActivity(operationId);
|
||||||
// act.setActivityId(activity);
|
|
||||||
return act;
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new OperationManagementException("Error occurred while opening a connection to the data source.", e);
|
throw new OperationManagementException("Error occurred while opening a connection to the data source.", e);
|
||||||
} catch (OperationManagementDAOException e) {
|
} catch (OperationManagementDAOException e) {
|
||||||
@ -850,8 +848,4 @@ public class OperationManagerImpl implements OperationManager {
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setActivityId(Operation operation, int enrolmentId) {
|
|
||||||
operation.setActivityId(DeviceManagementConstants.OperationAttributes.ACTIVITY + enrolmentId);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user