diff --git a/components/application-mgt/io.entgra.device.mgt.core.application.mgt.core/src/main/java/io/entgra/device/mgt/core/application/mgt/core/impl/SubscriptionManagerImpl.java b/components/application-mgt/io.entgra.device.mgt.core.application.mgt.core/src/main/java/io/entgra/device/mgt/core/application/mgt/core/impl/SubscriptionManagerImpl.java index a19dc27658..6e7a82b96a 100644 --- a/components/application-mgt/io.entgra.device.mgt.core.application.mgt.core/src/main/java/io/entgra/device/mgt/core/application/mgt/core/impl/SubscriptionManagerImpl.java +++ b/components/application-mgt/io.entgra.device.mgt.core.application.mgt.core/src/main/java/io/entgra/device/mgt/core/application/mgt/core/impl/SubscriptionManagerImpl.java @@ -707,6 +707,13 @@ public class SubscriptionManagerImpl implements SubscriptionManager { } } + /** + * Validates if all devices in the subscription have pending operations for the application. + * + * @param devices List of {@link Device} + * @param subscribingDeviceIdHolder Subscribing device id holder. + * @throws BadRequestException if incompatible data is found with validate pending app operations request + */ private void validatePendingAppSubscription(List devices, SubscribingDeviceIdHolder subscribingDeviceIdHolder) throws BadRequestException{ Set deviceIdentifiers = devices.stream() .map(device -> new DeviceIdentifier(device.getDeviceIdentifier(), device.getType()))