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

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

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

Controller implementation that allows IScheduleOwners to remove a single AvailableBlock from their AvailableSchedule.

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

Constructor Summary
RemoveAvailableBlockFormController()
           
 
Method Summary
protected  void initBinder(org.springframework.web.bind.WebDataBinder binder)
           
protected  String removeAvailableBlock(AvailableBlockFormBackingObject fbo, org.springframework.validation.BindingResult bindingResult, org.springframework.ui.ModelMap model)
           
 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

RemoveAvailableBlockFormController

public RemoveAvailableBlockFormController()
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

removeAvailableBlock

@RequestMapping(method=POST)
protected String removeAvailableBlock(@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.