use of org.ovirt.engine.core.common.action.VmDiskOperationParameterBase in project ovirt-engine by oVirt.
the class VmDiskListModel method createPlugOrUnplugParams.
private ArrayList<ActionParametersBase> createPlugOrUnplugParams(boolean plug) {
ArrayList<ActionParametersBase> parametersList = new ArrayList<>();
VM vm = getEntity();
for (Object item : getSelectedItems()) {
Disk disk = (Disk) item;
disk.setPlugged(plug);
parametersList.add(new VmDiskOperationParameterBase(new DiskVmElement(disk.getId(), vm.getId())));
}
return parametersList;
}
Aggregations