org.nhindirect.config.ui
Class DomainController
java.lang.Object
org.nhindirect.config.ui.DomainController
@Controller
@RequestMapping(value="/domain")
public class DomainController
- extends Object
|
Method Summary |
org.springframework.web.servlet.ModelAndView |
addAddress(String requestedWith,
javax.servlet.http.HttpSession session,
AddressForm addressForm,
org.springframework.ui.Model model,
String actionPath)
|
org.springframework.web.servlet.ModelAndView |
addAnchor(String requestedWith,
javax.servlet.http.HttpSession session,
AnchorForm anchorForm,
org.springframework.ui.Model model,
String actionPath)
|
org.springframework.web.servlet.ModelAndView |
addCertificate(String requestedWith,
javax.servlet.http.HttpSession session,
CertificateForm certificateForm,
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 |
onSubmitAndView(Object command)
|
org.springframework.web.servlet.ModelAndView |
removeAddresses(String requestedWith,
javax.servlet.http.HttpSession session,
SimpleForm simpleForm,
org.springframework.ui.Model model,
String actionPath)
|
org.springframework.web.servlet.ModelAndView |
removeAnchors(String requestedWith,
javax.servlet.http.HttpSession session,
AnchorForm simpleForm,
org.springframework.ui.Model model,
String actionPath)
|
org.springframework.web.servlet.ModelAndView |
removeCertificates(String requestedWith,
javax.servlet.http.HttpSession session,
CertificateForm simpleForm,
org.springframework.ui.Model model,
String actionPath)
|
org.springframework.web.servlet.ModelAndView |
removeDomain(String requestedWith,
javax.servlet.http.HttpSession session,
SimpleForm simpleForm,
org.springframework.ui.Model model,
String actionPath)
|
org.springframework.web.servlet.ModelAndView |
saveDomain(String requestedWith,
javax.servlet.http.HttpSession session,
String actionPath,
DomainForm form,
org.springframework.ui.Model model)
Execute the save and return the results |
void |
setConfigSvc(org.nhindirect.config.service.ConfigurationService service)
|
void |
setConfigurationService(org.nhindirect.config.service.ConfigurationService service)
|
void |
simpleForm(org.springframework.ui.Model model)
|
DomainController.CertContainer |
toCertContainer(byte[] data)
|
org.springframework.web.servlet.ModelAndView |
viewDomain(String requestedWith,
String id,
javax.servlet.http.HttpSession session,
org.springframework.ui.Model model)
Display a Domain |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomainController
public DomainController()
setConfigurationService
@Inject
public void setConfigurationService(org.nhindirect.config.service.ConfigurationService service)
addAnchor
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addanchor",
method=POST)
public org.springframework.web.servlet.ModelAndView addAnchor(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
AnchorForm anchorForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
removeAnchors
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/removeanchors",
method=POST)
public org.springframework.web.servlet.ModelAndView removeAnchors(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
AnchorForm simpleForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
addCertificate
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addcertificate",
method=POST)
public org.springframework.web.servlet.ModelAndView addCertificate(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
CertificateForm certificateForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
removeCertificates
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/removecertifcates",
method=POST)
public org.springframework.web.servlet.ModelAndView removeCertificates(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
CertificateForm simpleForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
addAddress
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/addaddress",
method=POST)
public org.springframework.web.servlet.ModelAndView addAddress(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@ModelAttribute
AddressForm addressForm,
org.springframework.ui.Model model,
@RequestParam(value="submitType")
String actionPath)
removeAddresses
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/removeaddresses",
method=POST)
public org.springframework.web.servlet.ModelAndView removeAddresses(@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)
removeDomain
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/remove",
method=POST)
public org.springframework.web.servlet.ModelAndView removeDomain(@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)
onSubmitAndView
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(method=POST)
public org.springframework.web.servlet.ModelAndView onSubmitAndView(Object command)
simpleForm
@RequestMapping(value="/simpleForm",
method=GET)
public void simpleForm(org.springframework.ui.Model model)
viewDomain
@RequestMapping(method=GET)
public org.springframework.web.servlet.ModelAndView viewDomain(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
@RequestParam(required=false)
String id,
javax.servlet.http.HttpSession session,
org.springframework.ui.Model model)
- Display a Domain
saveDomain
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
@RequestMapping(value="/saveupdate",
method=POST)
public org.springframework.web.servlet.ModelAndView saveDomain(@RequestHeader(value="X-Requested-With",required=false)
String requestedWith,
javax.servlet.http.HttpSession session,
@RequestParam(value="submitType")
String actionPath,
@ModelAttribute(value="domainForm")
DomainForm form,
org.springframework.ui.Model model)
- Execute the save and return the results
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:
setConfigSvc
public void setConfigSvc(org.nhindirect.config.service.ConfigurationService service)
toCertContainer
public DomainController.CertContainer toCertContainer(byte[] data)
throws Exception
- Throws:
Exception
Copyright © 2011. All Rights Reserved.