org.nhindirect.config.ui
Class SettingsController

java.lang.Object
  extended by org.nhindirect.config.ui.SettingsController

@Controller
@RequestMapping(value="/settings")
public class SettingsController
extends java.lang.Object


Constructor Summary
SettingsController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView addSetting(java.lang.String requestedWith, javax.servlet.http.HttpSession session, SettingsForm settingsForm, org.springframework.ui.Model model, java.lang.String actionPath)
           
 java.lang.String handleIOException(java.io.IOException ex, javax.servlet.http.HttpServletRequest request)
          Handle exceptions as gracefully as possible
 org.springframework.web.servlet.ModelAndView removeAnchors(java.lang.String requestedWith, javax.servlet.http.HttpSession session, SimpleForm simpleForm, org.springframework.ui.Model model, java.lang.String actionPath)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingsController

public SettingsController()
Method Detail

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)
                                                                                           java.lang.String requestedWith,
                                                                                           javax.servlet.http.HttpSession session,
                                                                                           @ModelAttribute
                                                                                           SettingsForm settingsForm,
                                                                                           org.springframework.ui.Model model,
                                                                                           @RequestParam(value="submitType")
                                                                                           java.lang.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)
                                                                                              java.lang.String requestedWith,
                                                                                              javax.servlet.http.HttpSession session,
                                                                                              @ModelAttribute
                                                                                              SimpleForm simpleForm,
                                                                                              org.springframework.ui.Model model,
                                                                                              @RequestParam(value="submitType")
                                                                                              java.lang.String actionPath)

handleIOException

@ExceptionHandler(value=java.io.IOException.class)
public java.lang.String handleIOException(java.io.IOException ex,
                                                                                    javax.servlet.http.HttpServletRequest request)
Handle exceptions as gracefully as possible

Parameters:
ex -
request -
Returns:


Copyright © 2010. All Rights Reserved.