org.opennms.acl.ui
Class AuthorityFormController

java.lang.Object
  extended by org.opennms.acl.ui.AuthorityFormController

@Controller
@RequestMapping(value="/authority.edit.page")
public class AuthorityFormController
extends Object

Authority Form Controller to insert or update an Authority

Since:
jdk 1.5.0
Version:
$Id: $
Author:
Massimiliano Dessì (desmax74@yahoo.it)

Constructor Summary
AuthorityFormController()
           
 
Method Summary
 void initBinder(org.springframework.web.bind.WebDataBinder binder)
          initBinder
protected  String processSubmit(AuthorityDTO authority, org.springframework.validation.BindingResult result, org.springframework.web.bind.support.SessionStatus status)
          processSubmit
 String setupForm(Integer id, org.springframework.ui.ModelMap model)
          setupForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorityFormController

public AuthorityFormController()
Method Detail

processSubmit

@RequestMapping(method=POST)
protected String processSubmit(@ModelAttribute(value="authority")
                                              AuthorityDTO authority,
                                              org.springframework.validation.BindingResult result,
                                              org.springframework.web.bind.support.SessionStatus status)

processSubmit

Parameters:
authority - a AuthorityDTO object.
result - a BindingResult object.
status - a SessionStatus object.
Returns:
a String object.

initBinder

@InitBinder
public void initBinder(org.springframework.web.bind.WebDataBinder binder)
                throws Exception

initBinder

Parameters:
binder - a WebDataBinder object.
Throws:
Exception - if any.

setupForm

@RequestMapping(method=GET)
public String setupForm(@RequestParam(required=false,value="aid")
                                       Integer id,
                                       org.springframework.ui.ModelMap model)

setupForm

Parameters:
id - a Integer object.
model - a ModelMap object.
Returns:
a String object.


Copyright © 2011. All Rights Reserved.