Search in sources :

Example 1 with NetworkFilterParameters

use of org.ovirt.engine.api.model.NetworkFilterParameters in project ovirt-engine by oVirt.

the class BackendVmNicFilterParametersResource method list.

@Override
public NetworkFilterParameters list() {
    NetworkFilterParameters parameters = new NetworkFilterParameters();
    List<VmNicFilterParameter> entities = getBackendCollection(QueryType.GetVmInterfaceFilterParametersByVmInterfaceId, new IdQueryParameters(nicId));
    for (VmNicFilterParameter entity : entities) {
        NetworkFilterParameter parameter = populate(map(entity), entity);
        parameters.getNetworkFilterParameters().add(addLinks(parameter));
    }
    return parameters;
}
Also used : IdQueryParameters(org.ovirt.engine.core.common.queries.IdQueryParameters) NetworkFilterParameters(org.ovirt.engine.api.model.NetworkFilterParameters) NetworkFilterParameter(org.ovirt.engine.api.model.NetworkFilterParameter) VmNicFilterParameter(org.ovirt.engine.core.common.businessentities.network.VmNicFilterParameter)

Aggregations

NetworkFilterParameter (org.ovirt.engine.api.model.NetworkFilterParameter)1 NetworkFilterParameters (org.ovirt.engine.api.model.NetworkFilterParameters)1 VmNicFilterParameter (org.ovirt.engine.core.common.businessentities.network.VmNicFilterParameter)1 IdQueryParameters (org.ovirt.engine.core.common.queries.IdQueryParameters)1