Fixing issue due to change in serialVersionUID after adding additional field to Operation DTO and correcting flaw in notification sending logic

revert-70aa11f8
Ace 6 years ago
parent 353d6936db
commit a8e52ee781

@ -23,6 +23,8 @@ import java.util.Properties;
public class Operation implements Serializable { public class Operation implements Serializable {
private static final long serialVersionUID = -353614864628915060L;
public enum Type { public enum Type {
CONFIG, MESSAGE, INFO, COMMAND, PROFILE , POLICY CONFIG, MESSAGE, INFO, COMMAND, PROFILE , POLICY
} }

@ -251,7 +251,7 @@ public class OperationManagerImpl implements OperationManager {
} }
OperationManagementDAOFactory.commitTransaction(); OperationManagementDAOFactory.commitTransaction();
if (isScheduled) { if (!isScheduled) {
for (Device device : authorizedDevices) { for (Device device : authorizedDevices) {
this.sendNotification(operation, device); this.sendNotification(operation, device);
} }

Loading…
Cancel
Save