use of org.ovirt.engine.api.model.IscsiBonds in project ovirt-engine by oVirt.
the class V3IscsiBondsInAdapter method adapt.
@Override
public IscsiBonds adapt(V3IscsiBonds from) {
IscsiBonds to = new IscsiBonds();
if (from.isSetActions()) {
to.setActions(adaptIn(from.getActions()));
}
if (from.isSetActive()) {
to.setActive(from.getActive());
}
if (from.isSetSize()) {
to.setSize(from.getSize());
}
if (from.isSetTotal()) {
to.setTotal(from.getTotal());
}
to.getIscsiBonds().addAll(adaptIn(from.getIscsiBonds()));
return to;
}
use of org.ovirt.engine.api.model.IscsiBonds in project ovirt-engine by oVirt.
the class BackendIscsiBondsResource method mapCollection.
private IscsiBonds mapCollection(List<org.ovirt.engine.core.common.businessentities.IscsiBond> entities) {
IscsiBonds iscsiBonds = new IscsiBonds();
for (org.ovirt.engine.core.common.businessentities.IscsiBond entity : entities) {
IscsiBond iscsiBond = IscsiBondMapper.map(entity, null);
iscsiBonds.getIscsiBonds().add(addLinks(populate(iscsiBond, entity)));
}
return iscsiBonds;
}
Aggregations