List of usage examples for org.springframework.ui ModelMap addAllAttributes
public ModelMap addAllAttributes(@Nullable Map<String, ?> attributes)
From source file:gov.nih.nci.ncicb.tcga.dcc.datareports.web.AliquotIdBreakdownController.java
/** * Aliquot Id Breakdown report simple handler * * @param model/* ww w.j a v a 2s .c om*/ * @param session * @param request * @return view name */ @RequestMapping(value = AliquotIdBreakdownReportConstants.ALIQUOT_ID_BREAKDOWN_REPORT_URL, method = RequestMethod.GET, params = { "!" + DatareportsCommonConstants.ALIQUOT_ID, "!" + DatareportsCommonConstants.ANALYTE_ID, "!" + DatareportsCommonConstants.SAMPLE_ID, "!" + DatareportsCommonConstants.PARTICIPANT_ID }) public String aliquotIdBreakdownReportSimpleHandler(final ModelMap model, final HttpSession session, final HttpServletRequest request) { final ModelMap bbModel = (ModelMap) session .getAttribute(AliquotIdBreakdownReportConstants.ALIQUOT_ID_BREAKDOWN_FILTER_MODEL); if (bbModel != null && bbModel.size() > 0) { model.addAllAttributes(bbModel); } final List<AliquotIdBreakdown> aliquotIdBreakdownList = service.getAliquotIdBreakdown(); commonService.processDisplayTag("aliquotIdBreakdown", aliquotIdBreakdownList, model, request); model.addAttribute(DatareportsCommonConstants.SERVER_URL, serverAddress); session.removeAttribute(AliquotIdBreakdownReportConstants.ALIQUOT_ID_BREAKDOWN_FILTER_MODEL); return AliquotIdBreakdownReportConstants.ALIQUOT_ID_BREAKDOWN_REPORT_VIEW; }
From source file:gov.nih.nci.ncicb.tcga.dcc.datareports.web.PendingUUIDController.java
/** * handler of the PendingUUID url without any request parameter * * @param model of request//www. ja va2 s .c o m * @param session of request * @param request * @return view name of request */ @RequestMapping(value = PendingUUIDReportConstants.PENDING_UUID_REPORT_URL, method = RequestMethod.GET, params = { "!" + BCR, "!" + CENTER, "!" + BATCH, "!" + PLATE_ID }) public String pendingUUIDReportHandler(final ModelMap model, final HttpSession session, final HttpServletRequest request) { final ModelMap pcModel = (ModelMap) session .getAttribute(PendingUUIDReportConstants.PENDING_UUID_REPORT_FILTER_MODEL); if (pcModel != null && pcModel.size() > 0) { model.addAllAttributes(pcModel); } final List<PendingUUID> pendingUUIDList = service.getAllPendingUUIDs(); commonService.processDisplayTag("pendingUUID", pendingUUIDList, model, request); model.addAttribute(SERVER_URL, serverAddress); session.removeAttribute(PendingUUIDReportConstants.PENDING_UUID_REPORT_FILTER_MODEL); return PendingUUIDReportConstants.PENDING_UUID_REPORT_VIEW; }
From source file:gov.nih.nci.ncicb.tcga.dcc.datareports.web.ProjectCaseDashboardController.java
/** * handler of the Project Case url without any request parameter * * @param model of request// w ww . j a v a 2s.c o m * @param session of request * @param request * @return view name of request */ @RequestMapping(value = ProjectCaseDashboardConstants.PROJECT_CASE_DASHBOARD_URL, method = RequestMethod.GET, params = { "!" + DatareportsCommonConstants.DISEASE }) public String projectCaseDashboardHandler(final ModelMap model, final HttpSession session, final HttpServletRequest request) { final ModelMap pcModel = (ModelMap) session .getAttribute(ProjectCaseDashboardConstants.PROJECT_CASE_DASHBOARD_FILTER_MODEL); if (pcModel != null && pcModel.size() > 0) { model.addAllAttributes(pcModel); } final List<ProjectCase> projectCaseList = service.getAllProjectCaseCounts(); commonService.processDisplayTag("projectCase", projectCaseList, model, request); model.addAttribute(DatareportsCommonConstants.SERVER_URL, serverAddress); session.removeAttribute(ProjectCaseDashboardConstants.PROJECT_CASE_DASHBOARD_FILTER_MODEL); return ProjectCaseDashboardConstants.PROJECT_CASE_DASHBOARD_VIEW; }