org.jasig.schedassist.web.owner.schedule
Class ClearWeekFormController
java.lang.Object
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
|
Field Summary |
protected org.apache.commons.logging.Log |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.apache.commons.logging.Log log
ClearWeekFormController
public ClearWeekFormController()
setAvailableScheduleDao
public void setAvailableScheduleDao(AvailableScheduleDao availableScheduleDao)
- Parameters:
availableScheduleDao - the availableScheduleDao to set
getAvailableScheduleDao
public AvailableScheduleDao getAvailableScheduleDao()
- Returns:
- the availableScheduleDao
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 © 2012 Jasig. All Rights Reserved.