|
|
@ -959,15 +959,15 @@ public class DeviceMgtAPIUtils {
|
|
|
|
case Constants.OperationStatus.REPEATED:
|
|
|
|
case Constants.OperationStatus.REPEATED:
|
|
|
|
operation.setStatus(Operation.Status.REPEATED);
|
|
|
|
operation.setStatus(Operation.Status.REPEATED);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Constants.OperationStatus.REQUIRE_CONFIRMATION:
|
|
|
|
case Constants.OperationStatus.REQUIRED_CONFIRMATION:
|
|
|
|
operation.setStatus(Operation.Status.REQUIRE_CONFIRMATION);
|
|
|
|
operation.setStatus(Operation.Status.REQUIRED_CONFIRMATION);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case Constants.OperationStatus.CONFIRMED:
|
|
|
|
case Constants.OperationStatus.CONFIRMED:
|
|
|
|
operation.setStatus(Operation.Status.CONFIRMED);
|
|
|
|
operation.setStatus(Operation.Status.CONFIRMED);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
String msg = "Invalid operation status. Valid operations: " +
|
|
|
|
String msg = "Invalid operation status. Valid operations: " +
|
|
|
|
"[IN_PROGRESS, PENDING, COMPLETED, ERROR, REPEATED, NOTNOW, REQUIRE_CONFIRMATION, CONFIRMED]";
|
|
|
|
"[IN_PROGRESS, PENDING, COMPLETED, ERROR, REPEATED, NOTNOW, REQUIRED_CONFIRMATION, CONFIRMED]";
|
|
|
|
log.error(msg);
|
|
|
|
log.error(msg);
|
|
|
|
throw new BadRequestException(msg);
|
|
|
|
throw new BadRequestException(msg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|