@RequestMapping(value = "/icga/existingCtrlGapAnalysis.html", method = RequestMethod.GET) public String getExistingControl(HttpServletRequest request, Model model) { logger.debug("Existing controls start."); String controlIds = request.getParameter("controlIds") != null ? request.getParameter("controlIds") : "0"; logger.debug("Control Ids=" + controlIds); logger.debug("Existing controls end."); model.addAttribute("controlIds", controlIds); model.addAttribute("mainTabId", getMessageBundlePropertyValue("mainTab.icga")); adminService.addNode(getMessageBundlePropertyValue("landingPage.existingControls"), 2, request); return "common/internalCtrlGapAnalysis"; }
/** * Controller to get control list of transaction type * * @param request * @param model * @return */ @RequestMapping(value = "/icga/InternalCtrlGapAnalysisAC.html", method = RequestMethod.GET) public String getInternalControlGapAC(HttpServletRequest request, Model model) { List thirdPartyTransactionControlList = new ArrayList(); List generalLedgerTransactionControlList = new ArrayList(); List customerTransactionControlList = new ArrayList(); logger.debug("Existing controls start."); try { thirdPartyTransactionControlList = adminService.getControlListByTransactionType( TransactionType.THIRD_PARTY_TRANSACTION.getValue()); logger.debug( "Third Party Transaction Control list size = " + thirdPartyTransactionControlList.size()); generalLedgerTransactionControlList = adminService.getControlListByTransactionType(TransactionType.GENERAL_LEDGER.getValue()); logger.debug( "General Ledger Transaction Control list size = " + generalLedgerTransactionControlList.size()); customerTransactionControlList = adminService.getControlListByTransactionType( TransactionType.CUSTOMER_TRANSACTION.getValue()); logger.debug( "Customer Transaction Control list size = " + customerTransactionControlList.size()); } catch (Exception ex) { logger.debug("CERROR:: Internal Control Gap Analysis " + ex); } model.addAttribute("thirdPartyTransactionControlList", thirdPartyTransactionControlList); model.addAttribute("generalLedgerTransactionControlList", generalLedgerTransactionControlList); model.addAttribute("customerTransactionControlList", customerTransactionControlList); model.addAttribute("mainTabId", Utils.getMessageBundlePropertyValue("mainTab.icga")); model.addAttribute( "subTabId", Utils.getMessageBundlePropertyValue("subTabId.analyzeByControls")); adminService.addNode( Utils.getMessageBundlePropertyValue("landingPage.analyzeByControls"), 2, request); return "common/InternalCtrlGapAnalysisAC"; }