private void updateBIObjectParameters(BIObject dossier) { logger.debug("IN"); try { List parameters = DAOFactory.getBIObjectParameterDAO().loadBIObjectParametersById(dossier.getId()); dossier.setBiObjectParameters(parameters); } catch (EMFUserError e) { throw new RuntimeException( "Cannot reload parameters of dossier with label " + dossier.getLabel(), e); } logger.debug("OUT"); }
public List<EMFValidationError> adjustRequiredAnalyticalDrivers(Integer dossierId, List docs) { logger.debug("IN"); BIObject dossier = null; try { dossier = DAOFactory.getBIObjectDAO().loadBIObjectById(dossierId); dossier.setBiObjectParameters(DAOFactory.getBIObjectDAO().getBIObjectParameters(dossier)); } catch (EMFUserError e) { throw new RuntimeException("Cannot load details of dossier with id " + dossierId, e); } List<EMFValidationError> list = removeNotEmptyAnalyticalDrivers(dossier, docs); addEmptyAnalyticalDrivers(dossier, docs); logger.debug("OUT"); return list; }