mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Reformatted the code block as necessary
This commit is contained in:
parent
870ff031bb
commit
a0bc1cdd20
@ -186,19 +186,19 @@ public class OperationManagerImpl implements OperationManager {
|
|||||||
if (hasExistingTaskOperation) {
|
if (hasExistingTaskOperation) {
|
||||||
pendingDeviceList.add(deviceId);
|
pendingDeviceList.add(deviceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(pendingDeviceList.size()>0){
|
if (pendingDeviceList.size() > 0) {
|
||||||
if (authorizedDeviceList.size() == pendingDeviceList.size()) {
|
if (authorizedDeviceList.size() == pendingDeviceList.size()) {
|
||||||
log.info("All the devices contain a pending operation for the Operation Code: "+operationCode);
|
log.info("All the devices contain a pending operation for the Operation Code: "
|
||||||
|
+ operationCode);
|
||||||
Activity activity = new Activity();
|
Activity activity = new Activity();
|
||||||
//Send the operation statuses only for admin triggered operations
|
//Send the operation statuses only for admin triggered operations
|
||||||
String deviceType = validDeviceIds.get(0).getType();
|
String deviceType = validDeviceIds.get(0).getType();
|
||||||
activity.setActivityStatus(this.getActivityStatus(deviceValidationResult, deviceAuthorizationResult,
|
activity.setActivityStatus(this.getActivityStatus(deviceValidationResult, deviceAuthorizationResult,
|
||||||
deviceType));
|
deviceType));
|
||||||
return activity;
|
return activity;
|
||||||
}else{
|
} else {
|
||||||
authorizedDeviceList.removeAll(pendingDeviceList);
|
authorizedDeviceList.removeAll(pendingDeviceList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user