|
|
@ -35,8 +35,8 @@ public interface OperationManager {
|
|
|
|
* @throws OperationManagementException If some unusual behaviour is observed while adding the
|
|
|
|
* @throws OperationManagementException If some unusual behaviour is observed while adding the
|
|
|
|
* operation
|
|
|
|
* operation
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public boolean addOperation(Operation operation, List<DeviceIdentifier> devices)
|
|
|
|
public boolean addOperation(Operation operation,
|
|
|
|
throws OperationManagementException;
|
|
|
|
List<DeviceIdentifier> devices) throws OperationManagementException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Method to retrieve the list of all operations to a device.
|
|
|
|
* Method to retrieve the list of all operations to a device.
|
|
|
@ -45,8 +45,7 @@ public interface OperationManager {
|
|
|
|
* @throws OperationManagementException If some unusual behaviour is observed while fetching the
|
|
|
|
* @throws OperationManagementException If some unusual behaviour is observed while fetching the
|
|
|
|
* operation list.
|
|
|
|
* operation list.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public List<Operation> getOperations(DeviceIdentifier deviceId)
|
|
|
|
public List<Operation> getOperations(DeviceIdentifier deviceId) throws OperationManagementException;
|
|
|
|
throws OperationManagementException;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Method to retrieve the list of available operations to a device.
|
|
|
|
* Method to retrieve the list of available operations to a device.
|
|
|
@ -55,15 +54,6 @@ public interface OperationManager {
|
|
|
|
* @throws OperationManagementException If some unusual behaviour is observed while fetching the
|
|
|
|
* @throws OperationManagementException If some unusual behaviour is observed while fetching the
|
|
|
|
* operation list.
|
|
|
|
* operation list.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public List<Operation> getPendingOperations(DeviceIdentifier deviceId)
|
|
|
|
public List<Operation> getPendingOperations(DeviceIdentifier deviceId) throws OperationManagementException;
|
|
|
|
throws OperationManagementException;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* TODO: Move this into a separate FeatureManager
|
|
|
|
|
|
|
|
* @param deviceType - Device type
|
|
|
|
|
|
|
|
* @return a list of Feature objects.
|
|
|
|
|
|
|
|
* @throws org.wso2.carbon.device.mgt.common.FeatureManagementException
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public List<Feature> getFeatures(String deviceType) throws FeatureManagementException;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|