use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.
the class BackendEngineKatelloErratumResourceTest method getEntity.
@Override
protected Erratum getEntity(int index) {
Erratum erratum = mock(Erratum.class);
when(erratum.getId()).thenReturn(GUIDS[index].toString());
when(erratum.getDescription()).thenReturn(DESCRIPTIONS[index]);
return erratum;
}
use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.
the class ErrataListWithDetailsPopupPresenterWidget method onBind.
@Override
protected void onBind() {
super.onBind();
//
// Handle the query returning a new list of errata -> simple view update.
//
changeListener = (ev, sender, args) -> getView().showErrataList();
modelProvider.getModel().addItemsChangeListener(changeListener);
// Handle the errata selection changing -> simple view update.
//
getView().getErrataTable().addSelectionChangeHandler(event -> {
Erratum erratum = getView().getSelectedErratum();
if (erratum == null) {
getView().setErrataDetailPanelVisibilty(false);
} else {
getView().updateErrataDetailFormPanel(erratum);
getView().setErrataDetailPanelVisibilty(true);
}
});
}
use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.
the class GetErrataCountsForHostQueryTest method createErratum.
private Erratum createErratum(ErrataType type, ErrataSeverity severity) {
Erratum erratum = new Erratum();
erratum.setType(type);
erratum.setSeverity(severity);
return erratum;
}
use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.
the class ErrataListWithDetailsPopupView method updateErrataDetailFormPanel.
public void updateErrataDetailFormPanel(Erratum erratum) {
errataTitle.clear();
errataTitle.add(new HTML(erratum.getTitle()));
EntityModel<Erratum> entityModel = new EntityModel<>();
entityModel.setEntity(erratum);
errataDetailModelForm.setModel(entityModel);
errataDetailModelForm.update();
}
Aggregations