|
|
@ -92,6 +92,7 @@ public class DeviceTaskManagerImpl implements DeviceTaskManager {
|
|
|
|
operations = this.getValidOperationNames(); //list operations for each device type
|
|
|
|
operations = this.getValidOperationNames(); //list operations for each device type
|
|
|
|
devices = deviceManagementProviderService.getAllDevices(deviceType, false);//list devices for each type
|
|
|
|
devices = deviceManagementProviderService.getAllDevices(deviceType, false);//list devices for each type
|
|
|
|
if (!devices.isEmpty()) {
|
|
|
|
if (!devices.isEmpty()) {
|
|
|
|
|
|
|
|
if (operations != null) {
|
|
|
|
for (String str : operations) {
|
|
|
|
for (String str : operations) {
|
|
|
|
CommandOperation operation = new CommandOperation();
|
|
|
|
CommandOperation operation = new CommandOperation();
|
|
|
|
operation.setEnabled(true);
|
|
|
|
operation.setEnabled(true);
|
|
|
@ -100,6 +101,11 @@ public class DeviceTaskManagerImpl implements DeviceTaskManager {
|
|
|
|
deviceManagementProviderService.addOperation(deviceType, operation,
|
|
|
|
deviceManagementProviderService.addOperation(deviceType, operation,
|
|
|
|
DeviceManagerUtil.getValidDeviceIdentifiers(devices));
|
|
|
|
DeviceManagerUtil.getValidDeviceIdentifiers(devices));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
|
|
|
|
log.debug("No operations are available.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
log.debug("No devices are available to perform the operations.");
|
|
|
|
log.debug("No devices are available to perform the operations.");
|
|
|
|