use of org.ovirt.engine.api.model.HostStorages in project ovirt-engine by oVirt.
the class BackendHostStorageResource method list.
public HostStorages list() {
HostStorages ret = new HostStorages();
for (LUNs lun : getLogicalUnits()) {
HostStorage storage = map(lun);
ArrayList<StorageServerConnections> lunConnections = lun.getLunConnections();
if (lunConnections != null && !lunConnections.isEmpty()) {
getMapper(StorageServerConnections.class, LogicalUnit.class).map(lunConnections.get(0), storage.getLogicalUnits().getLogicalUnits().get(0));
}
ret.getHostStorages().add(addLinks(storage));
}
return ret;
}
Aggregations