use of org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase in project ovirt-engine by oVirt.
the class AsyncDataProvider method getStorageConnectionById.
public void getStorageConnectionById(AsyncQuery<StorageServerConnections> aQuery, String id, boolean isRefresh) {
aQuery.converterCallback = source -> source != null ? (StorageServerConnections) source : null;
StorageServerConnectionQueryParametersBase params = new StorageServerConnectionQueryParametersBase(id);
params.setRefresh(isRefresh);
Frontend.getInstance().runQuery(QueryType.GetStorageServerConnectionById, params, aQuery);
}
use of org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase in project ovirt-engine by oVirt.
the class BackendIscsiBondStorageConnectionResource method get.
@Override
public StorageConnection get() {
IscsiBond iscsiBond = parent.getIscsiBond();
if (!iscsiBond.getStorageConnectionIds().contains(guid.toString())) {
return notFound();
}
StorageServerConnections entity = getEntity(org.ovirt.engine.core.common.businessentities.StorageServerConnections.class, QueryType.GetStorageServerConnectionById, new StorageServerConnectionQueryParametersBase(guid), guid.toString());
if (entity == null) {
return notFound();
}
return addLinks(map(entity));
}
Aggregations