use of org.ovirt.engine.api.model.VolumeGroup in project ovirt-engine by oVirt.
the class StorageVolumeGroupMapper method map.
@Mapping(from = org.ovirt.engine.core.common.businessentities.StorageDomain.class, to = HostStorage.class)
public static HostStorage map(org.ovirt.engine.core.common.businessentities.StorageDomain entity, HostStorage template) {
HostStorage model = template != null ? template : new HostStorage();
model.setId(entity.getStorage());
model.setType(StorageDomainMapper.map(entity.getStorageType(), null));
model.setVolumeGroup(new VolumeGroup());
model.getVolumeGroup().setId(entity.getStorage());
return model;
}
use of org.ovirt.engine.api.model.VolumeGroup in project ovirt-engine by oVirt.
the class StorageVolumeGroupMapperTest method postPopulate.
@Override
protected HostStorage postPopulate(HostStorage from) {
from.setType(MappingTestHelper.shuffle(StorageType.class));
from.setVolumeGroup(new VolumeGroup());
from.getVolumeGroup().setId(from.getId());
return from;
}
Aggregations