use of org.ovirt.engine.api.model.NetworkLabels in project ovirt-engine by oVirt.
the class BackendNetworkLabelResource method get.
@Override
public NetworkLabel get() {
NetworkLabels labels = parent.list();
if (labels != null) {
for (NetworkLabel label : labels.getNetworkLabels()) {
if (label.getId().equals(id)) {
label.setNetwork(new Network());
label.getNetwork().setId(parent.getNetworkId().toString());
return addLinks(label);
}
}
}
return notFound();
}
Aggregations