use of org.ovirt.engine.core.common.businessentities.ErrataData in project ovirt-engine by oVirt.
the class GetErrataForEngineQuery method executeQueryCommand.
@Override
protected void executeQueryCommand() {
HostProviderProxy proxy = engineProviderFinder.findEngineProvider();
if (proxy == null) {
getQueryReturnValue().setSucceeded(false);
getQueryReturnValue().setExceptionString(EngineMessage.NO_FOREMAN_PROVIDER_FOR_ENGINE.name());
getQueryReturnValue().setReturnValue(ErrataData.emptyData());
} else {
ErrataData errataForEngine = proxy.getErrataForHost(engineProviderFinder.getEngineHostName(), getParameters().getErrataFilter());
setReturnValue(errataForEngine);
}
}
use of org.ovirt.engine.core.common.businessentities.ErrataData in project ovirt-engine by oVirt.
the class BackendHostKatelloErrataResourceTest method getErrataData.
private ErrataData getErrataData() {
ErrataData errataData = new ErrataData();
errataData.setErrata(getErrata());
return errataData;
}
use of org.ovirt.engine.core.common.businessentities.ErrataData in project ovirt-engine by oVirt.
the class BackendEngineKatelloErrataResourceTest method getErrataData.
private ErrataData getErrataData() {
ErrataData errataData = new ErrataData();
errataData.setErrata(getErrata());
return errataData;
}
use of org.ovirt.engine.core.common.businessentities.ErrataData in project ovirt-engine by oVirt.
the class BackendVmKatelloErrataResourceTest method getErrataData.
private ErrataData getErrataData() {
ErrataData errataData = new ErrataData();
errataData.setErrata(getErrata());
return errataData;
}
use of org.ovirt.engine.core.common.businessentities.ErrataData in project ovirt-engine by oVirt.
the class AbstractErrataListModel method runQuery.
private void runQuery(Guid guid) {
AsyncQuery<QueryReturnValue> asyncQuery = new AsyncQuery<>(returnValue -> {
if (returnValue.getSucceeded()) {
ErrataData errataData = returnValue.getReturnValue();
unfilteredResultList = errataData.getErrata();
// manual client-side filter
// TODO: Use filtering and pagination options by GetErrataCountsParameters.setErrataFilter(filter)
setItems(filter(unfilteredResultList));
} else {
// $NON-NLS-1$
setMessage(constants.katelloProblemRetrievingErrata() + " " + returnValue.getExceptionMessage());
}
});
asyncQuery.setHandleFailure(true);
Frontend.getInstance().runQuery(getQueryType(), new GetErrataCountsParameters(guid), asyncQuery);
}
Aggregations