org.jasig.schedassist.web.visitor
Class CreateAppointmentFormController
java.lang.Object
org.jasig.schedassist.web.visitor.CreateAppointmentFormController
@Controller
@RequestMapping(value="/schedule/{ownerIdentifier}/create.html")
@SessionAttributes(value="command")
public class CreateAppointmentFormController- extends Object
Controller for IScheduleVisitors to create appointments
via an AvailableService.
- Version:
- $Id: CreateAppointmentFormController.java 2332 2010-08-02 17:56:49Z npblair $
- Author:
- Nicholas Blair, nblair@doit.wisc.edu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateAppointmentFormController
public CreateAppointmentFormController()
setAvailableService
public void setAvailableService(SchedulingAssistantService schedulingAssistantService)
- Parameters:
schedulingAssistantService - the schedulingAssistantService to set
setRelationshipDao
public void setRelationshipDao(@Qualifier(value="composite")
RelationshipDao relationshipDao)
- Parameters:
relationshipDao - the relationshipDao to set
setAvailableScheduleDao
public void setAvailableScheduleDao(AvailableScheduleDao availableScheduleDao)
- Parameters:
availableScheduleDao - the availableScheduleDao to set
setOwnerDao
public void setOwnerDao(OwnerDao ownerDao)
- Parameters:
ownerDao - the ownerDao to set
setPublicProfileDao
public void setPublicProfileDao(PublicProfileDao publicProfileDao)
- Parameters:
publicProfileDao - the publicProfileDao to set
setEventUtils
public void setEventUtils(IEventUtils eventUtils)
- Parameters:
eventUtils - the eventUtils 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="startTime",required=true)
String startTimePhrase,
@PathVariable(value="ownerIdentifier")
String ownerIdentifier)
throws InputFormatException,
SchedulingException,
OwnerNotFoundException,
NotAVisitorException
- Parameters:
model - startTimePhrase - ownerId -
- Returns:
-
- Throws:
InputFormatException
SchedulingException
OwnerNotFoundException
NotAVisitorException
createAppointment
@RequestMapping(method=POST)
protected String createAppointment(org.springframework.ui.ModelMap model,
@PathVariable(value="ownerIdentifier")
String ownerIdentifier,
@ModelAttribute(value="command")
CreateAppointmentFormBackingObject fbo,
org.springframework.validation.BindingResult bindingResult)
throws NotAVisitorException,
OwnerNotFoundException,
SchedulingException
- Parameters:
ownerIdentifier - model - fbo - bindingResult -
- Returns:
-
- Throws:
NotAVisitorException
OwnerNotFoundException
SchedulingException
Copyright © 2011 Jasig. All Rights Reserved.