From 793786f02047d0422299d8fa0f30bea2efe38a6e Mon Sep 17 00:00:00 2001 From: harshanL Date: Thu, 22 Jan 2015 21:14:19 +0530 Subject: [PATCH] Added a new operation to the operation manager --- .../carbon/device/mgt/common/OperationManager.java | 12 +++++++++++- product/modules/distribution/src/assembly/bin.xml | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/OperationManager.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/OperationManager.java index e11f5740a3..09a14021f1 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/OperationManager.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/OperationManager.java @@ -35,7 +35,7 @@ public interface OperationManager { throws OperationManagementException; /** - * Method to retrieve the list of available operations to a device. + * Method to retrieve the list of all operations to a device. * * @param deviceId DeviceIdentifier of the device * @throws OperationManagementException If some unusual behaviour is observed while fetching the @@ -44,4 +44,14 @@ public interface OperationManager { public List getOperations(DeviceIdentifier deviceId) throws OperationManagementException; + /** + * Method to retrieve the list of available operations to a device. + * + * @param deviceId DeviceIdentifier of the device + * @throws OperationManagementException If some unusual behaviour is observed while fetching the + * operation list. + */ + public List getPendingOperations(DeviceIdentifier deviceId) + throws OperationManagementException; + } \ No newline at end of file diff --git a/product/modules/distribution/src/assembly/bin.xml b/product/modules/distribution/src/assembly/bin.xml index 8c186c073d..87ff226233 100644 --- a/product/modules/distribution/src/assembly/bin.xml +++ b/product/modules/distribution/src/assembly/bin.xml @@ -463,14 +463,14 @@ - +