Search in sources :

Example 1 with ClusterFeature

use of org.ovirt.engine.api.model.ClusterFeature 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;
}
Also used : AdditionalFeature(org.ovirt.engine.core.common.businessentities.AdditionalFeature) ClusterFeature(org.ovirt.engine.api.model.ClusterFeature) ClusterFeatures(org.ovirt.engine.api.model.ClusterFeatures)

Aggregations

ClusterFeature (org.ovirt.engine.api.model.ClusterFeature)1 ClusterFeatures (org.ovirt.engine.api.model.ClusterFeatures)1 AdditionalFeature (org.ovirt.engine.core.common.businessentities.AdditionalFeature)1