Search in sources :

Example 1 with StorageServerConnectionQueryParametersBase

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);
}
Also used : StorageServerConnections(org.ovirt.engine.core.common.businessentities.StorageServerConnections) StorageServerConnectionQueryParametersBase(org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase)

Example 2 with StorageServerConnectionQueryParametersBase

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));
}
Also used : StorageServerConnections(org.ovirt.engine.core.common.businessentities.StorageServerConnections) StorageServerConnectionQueryParametersBase(org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase) IscsiBond(org.ovirt.engine.core.common.businessentities.IscsiBond)

Aggregations

StorageServerConnections (org.ovirt.engine.core.common.businessentities.StorageServerConnections)2 StorageServerConnectionQueryParametersBase (org.ovirt.engine.core.common.queries.StorageServerConnectionQueryParametersBase)2 IscsiBond (org.ovirt.engine.core.common.businessentities.IscsiBond)1