org.opennms.acl.ui
Class GroupFormController

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

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

Group Form Controller to insert or update a Group

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

Constructor Summary
GroupFormController()
           
 
Method Summary
 void initBinder(org.springframework.web.bind.WebDataBinder binder)
          initBinder
protected  String processSubmit(GroupDTO group, 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

GroupFormController

public GroupFormController()
Method Detail

processSubmit

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

processSubmit

Parameters:
group - a GroupDTO 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="gid")
                                       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.