use of org.ovirt.engine.core.common.queries.GetStorageDomainsByConnectionParameters in project ovirt-engine by oVirt.
the class AsyncDataProvider method getStorageDomainsByConnection.
public void getStorageDomainsByConnection(AsyncQuery<List<StorageDomain>> aQuery, Guid storagePoolId, String connectionPath) {
aQuery.converterCallback = new CastingConverter<>();
GetStorageDomainsByConnectionParameters param = new GetStorageDomainsByConnectionParameters();
param.setConnection(connectionPath);
if (storagePoolId != null) {
param.setStoragePoolId(storagePoolId);
}
Frontend.getInstance().runQuery(QueryType.GetStorageDomainsByConnection, param, aQuery);
}
Aggregations