@Controller @RequestMapping(value="/settings") public class SettingsController extends Object
| Constructor and Description |
|---|
SettingsController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.ModelAndView |
addSetting(String requestedWith,
javax.servlet.http.HttpSession session,
SettingsForm settingsForm,
org.springframework.ui.Model model,
String actionPath) |
String |
handleIOException(IOException ex,
javax.servlet.http.HttpServletRequest request)
Handle exceptions as gracefully as possible
|
org.springframework.web.servlet.ModelAndView |
removeAnchors(String requestedWith,
javax.servlet.http.HttpSession session,
SimpleForm simpleForm,
org.springframework.ui.Model model,
String actionPath) |
void |
setSettingsService(org.nhind.config.rest.SettingService settingsService) |
@Autowired public void setSettingsService(org.nhind.config.rest.SettingService settingsService)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addsetting",
method=POST)
public org.springframework.web.servlet.ModelAndView addSetting(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
SettingsForm settingsForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/removesettings",
method=POST)
public org.springframework.web.servlet.ModelAndView removeAnchors(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
SimpleForm simpleForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
@ExceptionHandler(value=java.io.IOException.class) public String handleIOException(IOException ex, javax.servlet.http.HttpServletRequest request)
ex - request - Copyright © 2021. All rights reserved.