org.jasig.schedassist.web.visitor
Class CancelAppointmentFormController

java.lang.Object
  extended by org.jasig.schedassist.web.visitor.CancelAppointmentFormController

@Controller
@RequestMapping(value="/schedule/{ownerIdentifier}/cancel.html")
@SessionAttributes(value="command")
public class CancelAppointmentFormController
extends Object

Controller for IScheduleVisitors to invoke AvailableService#cancelAppointment(IScheduleVisitor, IScheduleOwner, VEvent, AvailableBlock).

Version:
$Header: CancelAppointmentFormController.java $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Constructor Summary
CancelAppointmentFormController()
           
 
Method Summary
protected  String cancelAppointment(org.springframework.ui.ModelMap model, String ownerIdentifier, CancelAppointmentFormBackingObject fbo, org.springframework.validation.BindingResult bindingResult)
           
protected  void initBinder(org.springframework.web.bind.WebDataBinder binder)
           
 void setAvailableScheduleDao(AvailableScheduleDao availableScheduleDao)
           
 void setAvailableService(SchedulingAssistantService schedulingAssistantService)
           
 void setOwnerDao(OwnerDao ownerDao)
           
 void setPublicProfileDao(PublicProfileDao publicProfileDao)
           
 void setRelationshipDao(RelationshipDao relationshipDao)
           
protected  String setupForm(org.springframework.ui.ModelMap model, String startTimePhrase, String endTimePhrase, String ownerIdentifier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancelAppointmentFormController

public CancelAppointmentFormController()
Method Detail

setAvailableService

public void setAvailableService(SchedulingAssistantService schedulingAssistantService)
Parameters:
schedulingAssistantService - the schedulingAssistantService to set

setAvailableScheduleDao

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

setRelationshipDao

public void setRelationshipDao(@Qualifier(value="composite")
                               RelationshipDao relationshipDao)
Parameters:
relationshipDao - the relationshipDao 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

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,
                                          @RequestParam(value="endTime",required=true)
                                          String endTimePhrase,
                                          @PathVariable(value="ownerIdentifier")
                                          String ownerIdentifier)
                    throws ParseException,
                           NotAVisitorException,
                           OwnerNotFoundException,
                           InputFormatException,
                           SchedulingException
Parameters:
model -
startTimePhrase -
endTimePhrase -
ownerId -
Returns:
Throws:
ParseException
NotAVisitorException
OwnerNotFoundException
InputFormatException
SchedulingException

cancelAppointment

@RequestMapping(method=POST)
protected String cancelAppointment(org.springframework.ui.ModelMap model,
                                                  @PathVariable(value="ownerIdentifier")
                                                  String ownerIdentifier,
                                                  @ModelAttribute(value="command")
                                                  CancelAppointmentFormBackingObject fbo,
                                                  org.springframework.validation.BindingResult bindingResult)
                            throws NotAVisitorException,
                                   OwnerNotFoundException,
                                   SchedulingException
Parameters:
fbo -
ownerId -
Returns:
Throws:
NotAVisitorException
OwnerNotFoundException
SchedulingException


Copyright © 2011 Jasig. All Rights Reserved.