From f70661dcd2a380073254043c0888821106a627ff Mon Sep 17 00:00:00 2001 From: prathabanKavin Date: Mon, 2 Dec 2024 17:08:22 +0530 Subject: [PATCH] Add java doc comment for method --- .../application/mgt/core/impl/SubscriptionManagerImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) 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()))