Search in sources :

Example 21 with ExpressionExperimentValueObject

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;
}
Also used : Entry(java.util.Map.Entry) ExpressionExperimentValueObject(ubic.gemma.model.expression.experiment.ExpressionExperimentValueObject) ModelAndView(org.springframework.web.servlet.ModelAndView) RedirectView(org.springframework.web.servlet.view.RedirectView)

Aggregations

ExpressionExperimentValueObject (ubic.gemma.model.expression.experiment.ExpressionExperimentValueObject)21 StopWatch (org.apache.commons.lang3.time.StopWatch)4 Test (org.junit.Test)4 ExpressionExperiment (ubic.gemma.model.expression.experiment.ExpressionExperiment)4 Taxon (ubic.gemma.model.genome.Taxon)4 BaseSpringWebTest (ubic.gemma.web.util.BaseSpringWebTest)4 ModelAndView (org.springframework.web.servlet.ModelAndView)3 SearchResult (ubic.gemma.core.search.SearchResult)3 ExpressionExperimentSet (ubic.gemma.model.analysis.expression.ExpressionExperimentSet)3 ExpressionExperimentDetailsValueObject (ubic.gemma.model.expression.experiment.ExpressionExperimentDetailsValueObject)3 Gene (ubic.gemma.model.genome.Gene)3 MockHttpServletResponse (org.springframework.mock.web.MockHttpServletResponse)2 SearchResultDisplayObject (ubic.gemma.core.search.SearchResultDisplayObject)2 BibliographicReference (ubic.gemma.model.common.description.BibliographicReference)2 CitationValueObject (ubic.gemma.model.common.description.CitationValueObject)2 ArrayDesign (ubic.gemma.model.expression.arrayDesign.ArrayDesign)2 ArrayDesignValueObject (ubic.gemma.model.expression.arrayDesign.ArrayDesignValueObject)2 BioAssayDimension (ubic.gemma.model.expression.bioAssayData.BioAssayDimension)2 CompositeSequence (ubic.gemma.model.expression.designElement.CompositeSequence)2 BioAssaySet (ubic.gemma.model.expression.experiment.BioAssaySet)2