use of ubic.gemma.model.expression.experiment.ExpressionExperimentValueObject in project Gemma by PavlidisLab.
the class ExpressionExperimentFormController method processFormSubmission.
@Override
public ModelAndView processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception {
BaseFormController.log.debug("entering processFormSubmission");
Long id = ((ExpressionExperimentValueObject) command).getId();
if (request.getParameter("cancel") != null) {
if (id != null) {
return new ModelAndView(new RedirectView("http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/expressionExperiment/showExpressionExperiment.html?id=" + id));
}
BaseFormController.log.warn("Cannot find details view due to null id. Redirecting to overview");
return new ModelAndView(new RedirectView("http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/expressionExperiment/showAllExpressionExperiments.html"));
}
ModelAndView mav = super.processFormSubmission(request, response, command, errors);
Set<Entry<QuantitationType, Integer>> s = expressionExperimentService.getQuantitationTypeCountById(id).entrySet();
mav.addObject("qtCountSet", s);
// add count of designElementDataVectors
mav.addObject("designElementDataVectorCount", new Long(expressionExperimentService.getDesignElementDataVectorCountById(id)));
return mav;
}
Aggregations