@Test public void testDisplayPageAuditPageSetUpWithUnauthorisedFunctionality() { assertThrows(ForbiddenPageException.class, () -> { instance.displayPageAuditSetUp("2", new ExtendedModelMap()); }); }
@RequestMapping(value = AUDIT_PAGE_SET_UP_CONTRACT_URL, method = RequestMethod.GET) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) public String displayPageAuditSetUp(@RequestParam(CONTRACT_ID_KEY) String contractId, Model model) { return displayAuditSetUpView( AUDIT_PAGE_SET_UP_VIEW_NAME, contractId, "", pageOptionFormFieldBuilderMap, ScopeEnum.PAGE, model); }
AuditSetUpController extends AbstractAuditSetUpController { @RequestMapping(value = AUDIT_PAGE_SET_UP_CONTRACT_URL, method = RequestMethod.GET) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) public String displayPageAuditSetUp(@RequestParam(CONTRACT_ID_KEY) String contractId, Model model) { return displayAuditSetUpView( AUDIT_PAGE_SET_UP_VIEW_NAME, contractId, "", pageOptionFormFieldBuilderMap, ScopeEnum.PAGE, model); } }
AuditSetUpController extends AbstractAuditSetUpController { @RequestMapping(value = AUDIT_PAGE_SET_UP_CONTRACT_URL, method = RequestMethod.GET) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) public String displayPageAuditSetUp(@RequestParam(CONTRACT_ID_KEY) String contractId, Model model) { return displayAuditSetUpView( AUDIT_PAGE_SET_UP_VIEW_NAME, contractId, "", pageOptionFormFieldBuilderMap, ScopeEnum.PAGE, model); } AuditSetUpController(
        @Qualifier(value = "siteOptionFormFieldBuilderMap")
            Map <String, List <AuditSetUpFormFieldBuilder>> siteOptionFormFieldBuilderMap,
        @Qualifier(value = "auditSetUpFormValidator") AuditSetUpFormValidator auditSiteSetUpFormValidator,
        @Qualifier(value = "pageOptionFormFieldBuilderMap")
            Map <String, List <AuditSetUpFormFieldBuilder>> pageOptionFormFieldBuilderMap,
        @Qualifier(value = "pageAuditSetUpFormValidator") AuditSetUpFormValidator auditPageSetUpFormValidator,
        @Qualifier(value = "uploadOptionFormFieldBuilderMap")
            Map <String, List <AuditSetUpFormFieldBuilder>> uploadOptionFormFieldBuilderMap,
        @Qualifier(value = "uploadAuditSetUpFormValidator") AuditSetUpFormValidator auditUploadSetUpFormValidator); }
AuditSetUpController extends AbstractAuditSetUpController { @RequestMapping(value = AUDIT_PAGE_SET_UP_CONTRACT_URL, method = RequestMethod.GET) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) public String displayPageAuditSetUp(@RequestParam(CONTRACT_ID_KEY) String contractId, Model model) { return displayAuditSetUpView( AUDIT_PAGE_SET_UP_VIEW_NAME, contractId, "", pageOptionFormFieldBuilderMap, ScopeEnum.PAGE, model); } AuditSetUpController(
        @Qualifier(value = "siteOptionFormFieldBuilderMap")
            Map <String, List <AuditSetUpFormFieldBuilder>> siteOptionFormFieldBuilderMap,
        @Qualifier(value = "auditSetUpFormValidator") AuditSetUpFormValidator auditSiteSetUpFormValidator,
        @Qualifier(value = "pageOptionFormFieldBuilderMap")
            Map <String, List <AuditSetUpFormFieldBuilder>> pageOptionFormFieldBuilderMap,
        @Qualifier(value = "pageAuditSetUpFormValidator") AuditSetUpFormValidator auditPageSetUpFormValidator,
        @Qualifier(value = "uploadOptionFormFieldBuilderMap")
            Map <String, List <AuditSetUpFormFieldBuilder>> uploadOptionFormFieldBuilderMap,
        @Qualifier(value = "uploadAuditSetUpFormValidator") AuditSetUpFormValidator auditUploadSetUpFormValidator); @RequestMapping(value = AUDIT_PAGE_SET_UP_CONTRACT_URL, method = RequestMethod.GET) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) String displayPageAuditSetUp(@RequestParam(CONTRACT_ID_KEY) String contractId, Model model); @RequestMapping(value = AUDIT_UPLOAD_SET_UP_CONTRACT_URL, method = RequestMethod.GET) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) String displayUploadAuditSetUp(@RequestParam(CONTRACT_ID_KEY) String contractId, Model model); @RequestMapping(value = AUDIT_SITE_SET_UP_CONTRACT_URL, method = RequestMethod.GET) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) String displaySiteAuditSetUp(@RequestParam(CONTRACT_ID_KEY) String contractId, Model model); @RequestMapping(value = {AUDIT_PAGE_SET_UP_CONTRACT_URL, AUDIT_SITE_SET_UP_CONTRACT_URL, AUDIT_UPLOAD_SET_UP_CONTRACT_URL}, method = RequestMethod.POST) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) String submitAuditSetUpForm(
            @ModelAttribute(AUDIT_SET_UP_COMMAND_KEY) AuditSetUpCommand auditSetUpCommand,
            BindingResult result,
            Model model,
            HttpServletRequest request); }
AuditSetUpController extends AbstractAuditSetUpController { @RequestMapping(value = AUDIT_PAGE_SET_UP_CONTRACT_URL, method = RequestMethod.GET) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) public String displayPageAuditSetUp(@RequestParam(CONTRACT_ID_KEY) String contractId, Model model) { return displayAuditSetUpView( AUDIT_PAGE_SET_UP_VIEW_NAME, contractId, "", pageOptionFormFieldBuilderMap, ScopeEnum.PAGE, model); } AuditSetUpController(
        @Qualifier(value = "siteOptionFormFieldBuilderMap")
            Map <String, List <AuditSetUpFormFieldBuilder>> siteOptionFormFieldBuilderMap,
        @Qualifier(value = "auditSetUpFormValidator") AuditSetUpFormValidator auditSiteSetUpFormValidator,
        @Qualifier(value = "pageOptionFormFieldBuilderMap")
            Map <String, List <AuditSetUpFormFieldBuilder>> pageOptionFormFieldBuilderMap,
        @Qualifier(value = "pageAuditSetUpFormValidator") AuditSetUpFormValidator auditPageSetUpFormValidator,
        @Qualifier(value = "uploadOptionFormFieldBuilderMap")
            Map <String, List <AuditSetUpFormFieldBuilder>> uploadOptionFormFieldBuilderMap,
        @Qualifier(value = "uploadAuditSetUpFormValidator") AuditSetUpFormValidator auditUploadSetUpFormValidator); @RequestMapping(value = AUDIT_PAGE_SET_UP_CONTRACT_URL, method = RequestMethod.GET) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) String displayPageAuditSetUp(@RequestParam(CONTRACT_ID_KEY) String contractId, Model model); @RequestMapping(value = AUDIT_UPLOAD_SET_UP_CONTRACT_URL, method = RequestMethod.GET) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) String displayUploadAuditSetUp(@RequestParam(CONTRACT_ID_KEY) String contractId, Model model); @RequestMapping(value = AUDIT_SITE_SET_UP_CONTRACT_URL, method = RequestMethod.GET) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) String displaySiteAuditSetUp(@RequestParam(CONTRACT_ID_KEY) String contractId, Model model); @RequestMapping(value = {AUDIT_PAGE_SET_UP_CONTRACT_URL, AUDIT_SITE_SET_UP_CONTRACT_URL, AUDIT_UPLOAD_SET_UP_CONTRACT_URL}, method = RequestMethod.POST) @Secured({ROLE_USER_KEY, ROLE_ADMIN_KEY}) String submitAuditSetUpForm(
            @ModelAttribute(AUDIT_SET_UP_COMMAND_KEY) AuditSetUpCommand auditSetUpCommand,
            BindingResult result,
            Model model,
            HttpServletRequest request);  }