mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
For operation is profile operation get Next operations from profile operation DAO
This commit is contained in:
parent
eb500658f2
commit
f93d710d8e
@ -143,6 +143,9 @@ public class OperationManagerImpl implements OperationManager {
|
||||
public Operation getNextPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException {
|
||||
try {
|
||||
Operation operation = operationDAO.getNextOperation(deviceId);
|
||||
if (operation instanceof ProfileOperation){
|
||||
operation = profileOperationDAO.getNextOperation(deviceId);
|
||||
}
|
||||
return operation;
|
||||
} catch (OperationManagementDAOException e) {
|
||||
throw new OperationManagementException("Error occurred while retrieving next pending operation", e);
|
||||
@ -152,8 +155,8 @@ public class OperationManagerImpl implements OperationManager {
|
||||
@Override
|
||||
public void updateOperation(int operationId, Operation.Status operationStatus)
|
||||
throws OperationManagementException {
|
||||
try {
|
||||
|
||||
try {
|
||||
Operation operation = operationDAO.getOperation(operationId);
|
||||
operation.setStatus(operationStatus);
|
||||
OperationManagementDAOFactory.beginTransaction();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user