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

This commit is contained in:
Ace 2018-10-09 13:57:02 +05:30
parent 353d6936db
commit a8e52ee781
2 changed files with 4 additions and 2 deletions

View File

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

View File

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