use of ubic.gemma.model.common.description.Characteristic in project Gemma by PavlidisLab.
the class ExperimentalDesignControllerImpl method deleteFactorValueCharacteristics.
@Override
public void deleteFactorValueCharacteristics(FactorValueValueObject[] fvvos) {
for (FactorValueValueObject fvvo : fvvos) {
FactorValue fv = factorValueService.load(fvvo.getId());
if (fv == null) {
log.warn("No factorvalue with ID=" + fvvo.getId());
continue;
}
Characteristic c = characteristicService.load(fvvo.getCharId());
if (c == null) {
log.warn("Characteristic ID is null for FactorValueValueObject with id=" + fvvo.getId());
continue;
}
fv.getCharacteristics().remove(c);
characteristicService.remove(c);
factorValueService.update(fv);
}
}
Aggregations