use of org.ovirt.engine.api.model.ClusterFeatures in project ovirt-engine by oVirt.
the class BackendClusterEnabledFeaturesResource method list.
@Override
public ClusterFeatures list() {
ClusterFeatures features = new ClusterFeatures();
Set<SupportedAdditionalClusterFeature> addlFeatures = getOptionalEntity(Set.class, QueryType.GetClusterFeaturesByClusterId, new IdQueryParameters(clusterId), clusterId.toString(), false);
if (addlFeatures != null) {
for (SupportedAdditionalClusterFeature entity : addlFeatures) {
if (entity.isEnabled()) {
features.getClusterFeatures().add(addLinks(map(entity.getFeature(), null)));
}
}
}
return features;
}
use of org.ovirt.engine.api.model.ClusterFeatures in project ovirt-engine by oVirt.
the class BackendClusterFeaturesResource method list.
@Override
public ClusterFeatures list() {
ClusterFeatures features = new ClusterFeatures();
Set<AdditionalFeature> addlFeatures = BackendClusterFeatureHelper.getClusterFeatures(this, version);
addlFeatures.forEach(clusterFeature -> {
org.ovirt.engine.api.model.ClusterFeature feature = addLinks(map(clusterFeature, null));
features.getClusterFeatures().add(feature);
});
return features;
}
Aggregations