org.jasig.schedassist.web.register
Class RemoveAccountFormController

java.lang.Object
  extended by org.jasig.schedassist.web.register.RemoveAccountFormController

@Controller
@RequestMapping(value={"/owner/removeAccount.html","/delegate/removeAccount.html"})
public class RemoveAccountFormController
extends Object

Form tied to OwnerDao.removeAccount(IScheduleOwner).

Version:
$Id: RemoveAccountFormController.java 2696 2010-09-24 14:05:05Z npblair $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Constructor Summary
RemoveAccountFormController()
           
 
Method Summary
protected  String displayForm(org.springframework.ui.ModelMap model)
           
 AvailableScheduleDao getAvailableScheduleDao()
           
 AvailableScheduleReflectionService getAvailableScheduleReflectionService()
           
 OwnerDao getOwnerDao()
           
protected  void initBinder(org.springframework.web.bind.WebDataBinder binder)
           
protected  String removeAccount(RemoveAccountFormBackingObject fbo, org.springframework.validation.BindingResult result)
          For a Valid RemoveAccountFormBackingObject, remove the current authenticated IScheduleOwner account.
 void setAvailableScheduleDao(AvailableScheduleDao availableScheduleDao)
           
 void setAvailableScheduleReflectionService(AvailableScheduleReflectionService availableScheduleReflectionService)
           
 void setOwnerDao(OwnerDao ownerDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveAccountFormController

public RemoveAccountFormController()
Method Detail

setOwnerDao

public void setOwnerDao(OwnerDao ownerDao)
Parameters:
ownerDao - the ownerDao to set

setAvailableScheduleDao

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

setAvailableScheduleReflectionService

public void setAvailableScheduleReflectionService(AvailableScheduleReflectionService availableScheduleReflectionService)
Parameters:
availableScheduleReflectionService - the availableScheduleReflectionService to set

getOwnerDao

public OwnerDao getOwnerDao()
Returns:
the ownerDao

getAvailableScheduleDao

public AvailableScheduleDao getAvailableScheduleDao()
Returns:
the availableScheduleDao

getAvailableScheduleReflectionService

public AvailableScheduleReflectionService getAvailableScheduleReflectionService()
Returns:
the availableScheduleReflectionService

initBinder

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

displayForm

@RequestMapping(method=GET)
protected String displayForm(org.springframework.ui.ModelMap model)
Returns:
the view name to use to display the remove account form

removeAccount

@RequestMapping(method=POST)
protected String removeAccount(@ModelAttribute
                                              RemoveAccountFormBackingObject fbo,
                                              org.springframework.validation.BindingResult result)
                        throws NotRegisteredException
For a Valid RemoveAccountFormBackingObject, remove the current authenticated IScheduleOwner account. Destroy the current authenticated credentials, and redirect to an appropriate view. If the RemoveAccountFormBackingObject is not valid, redirect to the schedule view.

Parameters:
fbo -
result -
Returns:
Throws:
NotRegisteredException
See Also:
OwnerDao.removeAccount(IScheduleOwner)


Copyright © 2012 Jasig. All Rights Reserved.