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

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

@Controller
@RequestMapping(value={"/owner/clear-week.html","/delegate/clear-week.html"})
public class ClearWeekFormController
extends Object

Controller implementation that allows an IScheduleOwner to remove a week of AvailableBlocks from their AvailableSchedule.

Version:
$Idr: ClearWeekFormController.java $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Constructor Summary
ClearWeekFormController()
           
 
Method Summary
protected  org.springframework.web.servlet.ModelAndView clearWeek(ClearAvailableScheduleFormBackingObject fbo)
           
protected  void initBinder(org.springframework.web.bind.WebDataBinder binder)
           
protected  void safeInterpretWeekOfPhrase(String weekOfPhrase, ClearAvailableScheduleFormBackingObject command)
          Parses the weekOfPhrase query parameter, and mutates the command object with safe values no matter what.
 void setAvailableScheduleDao(AvailableScheduleDao availableScheduleDao)
           
protected  String setupForm(String weekOfPhrase, org.springframework.ui.ModelMap model)
           
protected  void setWeekOfDefault(ClearAvailableScheduleFormBackingObject command)
          Mutates the command object, setting default value for weekOfPhrase based on "today".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearWeekFormController

public ClearWeekFormController()
Method Detail

setAvailableScheduleDao

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

initBinder

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

setupForm

@RequestMapping(method=GET)
protected String setupForm(@RequestParam(value="weekOf",required=false)
                                          String weekOfPhrase,
                                          org.springframework.ui.ModelMap model)
Parameters:
weekOfPhrase -
model -
Returns:

safeInterpretWeekOfPhrase

protected void safeInterpretWeekOfPhrase(String weekOfPhrase,
                                         ClearAvailableScheduleFormBackingObject command)
Parses the weekOfPhrase query parameter, and mutates the command object with safe values no matter what.

Parameters:
weekOfPhrase -
command -

setWeekOfDefault

protected void setWeekOfDefault(ClearAvailableScheduleFormBackingObject command)
Mutates the command object, setting default value for weekOfPhrase based on "today".

Parameters:
command -

clearWeek

@RequestMapping(method=POST)
protected org.springframework.web.servlet.ModelAndView clearWeek(ClearAvailableScheduleFormBackingObject fbo)
                                                          throws NotRegisteredException,
                                                                 InputFormatException
Parameters:
fbo -
Returns:
Throws:
NotRegisteredException
InputFormatException


Copyright © 2011 Jasig. All Rights Reserved.