org.jasig.schedassist.web.owner.schedule
Class AddAvailableBlockFormController

java.lang.Object
  extended by org.jasig.schedassist.web.owner.schedule.AddAvailableBlockFormController

@Controller
@RequestMapping(value={"/owner/add-block.html","/delegate/add-block.html"})
public class AddAvailableBlockFormController
extends Object

Controller implementation that can be invoked by IScheduleOwners to add a single AvailableBlock to their AvailableSchedule.

Version:
$Id: AddAvailableBlockFormController.java 2051 2010-04-30 16:03:17Z npblair $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Constructor Summary
AddAvailableBlockFormController()
           
 
Method Summary
protected  String addAvailableBlock(AvailableBlockFormBackingObject fbo, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.ModelMap model)
           
protected  void initBinder(org.springframework.web.bind.WebDataBinder binder)
           
 void setAvailableScheduleDao(AvailableScheduleDao availableScheduleDao)
           
protected  String setupForm(org.springframework.ui.ModelMap model, boolean interactive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddAvailableBlockFormController

public AddAvailableBlockFormController()
Method Detail

setAvailableScheduleDao

public void setAvailableScheduleDao(AvailableScheduleDao availableScheduleDao)
Parameters:
availableScheduleDao - the availableScheduleDao to set

initBinder

@InitBinder(value="command")
protected void initBinder(org.springframework.web.bind.WebDataBinder binder)
Parameters:
binder -

setupForm

@RequestMapping(method=GET)
protected String setupForm(org.springframework.ui.ModelMap model,
                                          @RequestParam(value="interactive",required=false,defaultValue="false")
                                          boolean interactive)
                    throws NotRegisteredException
Parameters:
model -
Returns:
Throws:
NotRegisteredException

addAvailableBlock

@RequestMapping(method=POST)
protected String addAvailableBlock(@ModelAttribute(value="command")
                                                  AvailableBlockFormBackingObject fbo,
                                                  org.springframework.validation.BindingResult bindingResult,
                                                  org.springframework.ui.ModelMap model)
                            throws NotRegisteredException,
                                   InputFormatException
Parameters:
fbo -
Returns:
Throws:
NotRegisteredException
InputFormatException


Copyright © 2011 Jasig. All Rights Reserved.