Search in sources :

Example 6 with Erratum

use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.

the class KatelloProvider method mapErrata.

private List<Erratum> mapErrata(List<ExternalErratum> externalErrata) {
    List<Erratum> errata = new ArrayList<>(externalErrata.size());
    for (ExternalErratum externalErratum : externalErrata) {
        Erratum erratum = mapErratum(externalErratum);
        errata.add(erratum);
    }
    return errata;
}
Also used : ArrayList(java.util.ArrayList) Erratum(org.ovirt.engine.core.common.businessentities.Erratum)

Example 7 with Erratum

use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.

the class KatelloProvider method mapErratum.

protected Erratum mapErratum(ExternalErratum externalErratum) {
    Erratum erratum = new Erratum();
    erratum.setId(externalErratum.getId());
    erratum.setIssued(externalErratum.getIssued());
    erratum.setTitle(externalErratum.getTitle());
    erratum.setSummary(externalErratum.getSummary());
    erratum.setSolution(externalErratum.getSolution());
    erratum.setDescription(externalErratum.getDescription());
    erratum.setSeverity(Erratum.ErrataSeverity.byDescription(externalErratum.getSeverity()));
    erratum.setType(Erratum.ErrataType.byDescription(externalErratum.getType()));
    erratum.setPackages(Arrays.asList(externalErratum.getPackages()));
    return erratum;
}
Also used : Erratum(org.ovirt.engine.core.common.businessentities.Erratum)

Example 8 with Erratum

use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.

the class BackendEngineKatelloErrataResourceTest method getEntity.

@Override
protected Erratum getEntity(int index) {
    Erratum erratum = mock(Erratum.class);
    when(erratum.getId()).thenReturn(NAMES[index]);
    when(erratum.getDescription()).thenReturn(DESCRIPTIONS[index]);
    return erratum;
}
Also used : KatelloErratum(org.ovirt.engine.api.model.KatelloErratum) Erratum(org.ovirt.engine.core.common.businessentities.Erratum)

Example 9 with Erratum

use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.

the class BackendHostKatelloErrataResourceTest method getEntity.

@Override
protected Erratum getEntity(int index) {
    Erratum erratum = mock(Erratum.class);
    when(erratum.getId()).thenReturn(NAMES[index]);
    when(erratum.getDescription()).thenReturn(DESCRIPTIONS[index]);
    return erratum;
}
Also used : KatelloErratum(org.ovirt.engine.api.model.KatelloErratum) Erratum(org.ovirt.engine.core.common.businessentities.Erratum)

Example 10 with Erratum

use of org.ovirt.engine.core.common.businessentities.Erratum in project ovirt-engine by oVirt.

the class BackendVmKatelloErratumResourceTest 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;
}
Also used : KatelloErratum(org.ovirt.engine.api.model.KatelloErratum) Erratum(org.ovirt.engine.core.common.businessentities.Erratum)

Aggregations

Erratum (org.ovirt.engine.core.common.businessentities.Erratum)14 KatelloErratum (org.ovirt.engine.api.model.KatelloErratum)6 FieldUpdater (com.google.gwt.cell.client.FieldUpdater)1 ValueChangeHandler (com.google.gwt.event.logical.shared.ValueChangeHandler)1 HTML (com.google.gwt.user.client.ui.HTML)1 SelectionChangeEvent (com.google.gwt.view.client.SelectionChangeEvent)1 Handler (com.google.gwt.view.client.SelectionChangeEvent.Handler)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 ErrataCount (org.ovirt.engine.core.common.businessentities.ErrataCount)1 PlaceTransitionHandler (org.ovirt.engine.ui.common.presenter.PlaceTransitionHandler)1 AbstractFullDateTimeColumn (org.ovirt.engine.ui.common.widget.table.column.AbstractFullDateTimeColumn)1 AbstractIconTypeColumn (org.ovirt.engine.ui.common.widget.table.column.AbstractIconTypeColumn)1 AbstractTextColumn (org.ovirt.engine.ui.common.widget.table.column.AbstractTextColumn)1 AbstractErrataListModel (org.ovirt.engine.ui.uicommonweb.models.AbstractErrataListModel)1 EntityModel (org.ovirt.engine.ui.uicommonweb.models.EntityModel)1