use of org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters in project ovirt-engine by oVirt.
the class BackendOpenStackSubnetResource method get.
@Override
public OpenStackSubnet get() {
GetExternalSubnetsOnProviderByExternalNetworkQueryParameters parameters = new GetExternalSubnetsOnProviderByExternalNetworkQueryParameters();
parameters.setProviderId(asGuid(providerId));
parameters.setNetworkId(networkId);
List<ExternalSubnet> subnets = getBackendCollection(ExternalSubnet.class, QueryType.GetExternalSubnetsOnProviderByExternalNetwork, parameters);
if (subnets != null) {
for (ExternalSubnet subnet : subnets) {
if (Objects.equals(subnet.getId(), id)) {
return addLinks(populate(map(subnet), subnet));
}
}
}
return notFound();
}
use of org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters in project ovirt-engine by oVirt.
the class BackendOpenStackSubnetsResource method getBackendCollection.
private List<ExternalSubnet> getBackendCollection() {
GetExternalSubnetsOnProviderByExternalNetworkQueryParameters parameters = new GetExternalSubnetsOnProviderByExternalNetworkQueryParameters();
parameters.setProviderId(asGuid(providerId));
parameters.setNetworkId(networkId);
return getBackendCollection(QueryType.GetExternalSubnetsOnProviderByExternalNetwork, parameters);
}
use of org.ovirt.engine.core.common.queries.GetExternalSubnetsOnProviderByExternalNetworkQueryParameters in project ovirt-engine by oVirt.
the class BackendOpenStackSubnetsResource method getSubnets.
protected List<ExternalSubnet> getSubnets() {
GetExternalSubnetsOnProviderByExternalNetworkQueryParameters parameters = new GetExternalSubnetsOnProviderByExternalNetworkQueryParameters();
parameters.setProviderId(asGuid(providerId));
parameters.setNetworkId(networkId);
return getBackendCollection(ExternalSubnet.class, QueryType.GetExternalSubnetsOnProviderByExternalNetwork, parameters);
}
Aggregations