use of org.ovirt.engine.core.common.queries.GetDeviceCustomPropertiesParameters in project ovirt-engine by oVirt.
the class VnicProfileModel method initCustomPropertySheet.
private void initCustomPropertySheet(Version dcCompatibilityVersion) {
if (!customPropertiesVisible) {
return;
}
GetDeviceCustomPropertiesParameters params = new GetDeviceCustomPropertiesParameters();
params.setVersion(dcCompatibilityVersion);
params.setDeviceType(VmDeviceGeneralType.INTERFACE);
startProgress();
Frontend.getInstance().runQuery(QueryType.GetDeviceCustomProperties, params, new AsyncQuery<QueryReturnValue>(returnValue -> {
if (returnValue != null) {
Map<String, String> customPropertiesList = returnValue.getReturnValue();
getCustomPropertySheet().setKeyValueMap(customPropertiesList);
getCustomPropertySheet().setIsChangeable(!customPropertiesList.isEmpty());
initCustomProperties();
}
stopProgress();
}));
}
Aggregations