org.jasig.schedassist.web.security.delegate
Class DelegateAccountSearchFormController

java.lang.Object
  extended by org.jasig.schedassist.web.security.delegate.DelegateAccountSearchFormController

@Controller
@RequestMapping(value="/delegate-search.html")
@SessionAttributes(value="command")
public class DelegateAccountSearchFormController
extends Object

Controller that provides a UI for searching for IDelegateCalendarAccounts.

Version:
$Id: DelegateAccountSearchFormController.java 2039 2010-04-30 15:51:39Z npblair $
Author:
Nicholas Blair, nblair@doit.wisc.edu

Constructor Summary
DelegateAccountSearchFormController()
           
 
Method Summary
protected  List<IDelegateCalendarAccount> filterForEligible(List<IDelegateCalendarAccount> matches)
          Filter out IDelegateCalendarAccount that return false for ICalendarAccount.isEligible().
protected  String onGet(String qValue, org.springframework.ui.ModelMap model)
          If the qValue parameter is not blank, execute a search, and return the autocomplete results view name.
protected  String search(DelegateAccountSearchFormBackingObject fbo, org.springframework.ui.ModelMap model)
           
 void setDelegateCalendarAccountDao(IDelegateCalendarAccountDao delegateCalendarAccountDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegateAccountSearchFormController

public DelegateAccountSearchFormController()
Method Detail

setDelegateCalendarAccountDao

public void setDelegateCalendarAccountDao(IDelegateCalendarAccountDao delegateCalendarAccountDao)
Parameters:
delegateCalendarAccountDao - the delegateCalendarAccountDao to set

onGet

@RequestMapping(method=GET)
protected String onGet(@RequestParam(value="q",required=false)
                                      String qValue,
                                      org.springframework.ui.ModelMap model)
If the qValue parameter is not blank, execute a search, and return the autocomplete results view name. Otherwise, return the form view name.

Parameters:
qValue -
model -
Returns:

search

@RequestMapping(method=POST)
protected String search(@ModelAttribute(value="command")
                                       DelegateAccountSearchFormBackingObject fbo,
                                       org.springframework.ui.ModelMap model)
Parameters:
fbo -
model -
Returns:

filterForEligible

protected List<IDelegateCalendarAccount> filterForEligible(List<IDelegateCalendarAccount> matches)
Filter out IDelegateCalendarAccount that return false for ICalendarAccount.isEligible().

Parameters:
matches -
Returns:


Copyright © 2011 Jasig. All Rights Reserved.