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 {
|
||||
OperationManagementDAOFactory.openConnection();
|
||||
Activity act = operationDAO.getActivity(operationId);
|
||||
// act.setActivityId(activity);
|
||||
return act;
|
||||
return operationDAO.getActivity(operationId);
|
||||
} catch (SQLException e) {
|
||||
throw new OperationManagementException("Error occurred while opening a connection to the data source.", e);
|
||||
} catch (OperationManagementDAOException e) {
|
||||
@ -850,8 +848,4 @@ public class OperationManagerImpl implements OperationManager {
|
||||
return status;
|
||||
}
|
||||
|
||||
private void setActivityId(Operation operation, int enrolmentId) {
|
||||
operation.setActivityId(DeviceManagementConstants.OperationAttributes.ACTIVITY + enrolmentId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user