org.nhindirect.config.ui
Class SettingsController
java.lang.Object
org.nhindirect.config.ui.SettingsController
@Controller
@RequestMapping(value="/settings")
public class SettingsController
- extends Object
|
Method Summary |
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 |
setConfigurationService(org.nhindirect.config.service.ConfigurationService service)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SettingsController
public SettingsController()
setConfigurationService
@Inject
public void setConfigurationService(org.nhindirect.config.service.ConfigurationService service)
addSetting
@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)
removeAnchors
@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)
handleIOException
@ExceptionHandler(value=java.io.IOException.class)
public String handleIOException(IOException ex,
javax.servlet.http.HttpServletRequest request)
- Handle exceptions as gracefully as possible
- Parameters:
ex - request -
- Returns:
Copyright © 2011. All Rights Reserved.