set operation status

revert-70aa11f8
manoj 10 years ago
parent f68c7133cf
commit 0ed9c46a64

@ -164,6 +164,7 @@ public class CommandOperationDAOImpl extends OperationDAOImpl {
for(CommandOperation cmOperation:commandOperationList){
operation = super.getOperation(cmOperation.getId());
operation.setEnabled(cmOperation.isEnabled());
operation.setStatus(status);
operationList.add(operation);
}

@ -198,6 +198,7 @@ public class ConfigOperationDAOImpl extends OperationDAOImpl {
bais = new ByteArrayInputStream(operationDetails);
ois = new ObjectInputStream(bais);
configOperation = (ConfigOperation) ois.readObject();
configOperation.setStatus(status);
operationList.add(configOperation);
}

@ -218,6 +218,7 @@ public class OperationDAOImpl implements OperationDAO {
operation.setReceivedTimeStamp(rs.getTimestamp("RECEIVED_TIMESTAMP").toString());
}
operation.setCode(rs.getString("OPERATION_CODE"));
operation.setStatus(status);
operationList.add(operation);
}
} catch (SQLException e) {
@ -312,6 +313,7 @@ public class OperationDAOImpl implements OperationDAO {
operation.setReceivedTimeStamp(rs.getTimestamp("RECEIVED_TIMESTAMP").toString());
}
operation.setCode(rs.getString("OPERATION_CODE"));
operation.setStatus(Operation.Status.PENDING);
}
return operation;
} catch (SQLException e) {

@ -201,6 +201,7 @@ public class PolicyOperationDAOImpl extends OperationDAOImpl {
bais = new ByteArrayInputStream(operationDetails);
ois = new ObjectInputStream(bais);
policyOperation = (PolicyOperation) ois.readObject();
policyOperation.setStatus(status);
operationList.add(policyOperation);
}

@ -197,6 +197,7 @@ public class ProfileOperationDAOImpl extends OperationDAOImpl {
bais = new ByteArrayInputStream(operationDetails);
ois = new ObjectInputStream(bais);
profileOperation = (ProfileOperation) ois.readObject();
profileOperation.setStatus(status);
operationList.add(profileOperation);
}

Loading…
Cancel
Save