org.kuali.student.enrollment.class2.acal.controller
Class CalendarSearchController

java.lang.Object
  extended by org.kuali.rice.krad.web.controller.UifControllerBase
      extended by org.kuali.student.enrollment.class2.acal.controller.CalendarSearchController

@Controller
@RequestMapping(value="/calendarSearch")
public class CalendarSearchController
extends UifControllerBase

This class handles all the request for Searching Holiday calender, Academic Calendars and Academic terms. This handles requests from CalendarSearchView for different calendars and terms. This controller is mapped to the view defined in CalendarSearchView.xml

Author:
Kuali Student Team

Constructor Summary
CalendarSearchController()
           
 
Method Summary
 ModelAndView copy(CalendarSearchForm searchForm, BindingResult result, HttpServletRequest request, HttpServletResponse response)
          This is called when the user clicked on Copy button in the Calendar Search page with Holiday calendar selected.
protected  UifFormBase createInitialForm(HttpServletRequest request)
           
 ModelAndView delete(CalendarSearchForm searchForm, BindingResult result, HttpServletRequest request, HttpServletResponse response)
          This is called when the user clicked on Delete button in the Calendar Search page with Holiday calendar selected.
 ModelAndView edit(CalendarSearchForm searchForm, BindingResult result, HttpServletRequest request, HttpServletResponse response)
          This is called when the user clicked on Edit button in the Calendar Search page.
protected  AcademicCalendarService getAcademicCalendarService()
           
 ModelAndView search(CalendarSearchForm searchForm, BindingResult result, HttpServletRequest request, HttpServletResponse response)
          Method used to search atps
 ModelAndView start(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView view(CalendarSearchForm searchForm, BindingResult result, HttpServletRequest request, HttpServletResponse response)
          This is called when the user clicked on Search button in the Calendar Search page.
 
Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
addBlankLine, addLine, cancel, checkForm, checkViewAuthorization, close, deleteLine, getBooleanDialogResponse, getMessageView, getStringDialogResponse, getUIFModelAndView, getUIFModelAndView, getViewService, hasDialogBeenAnswered, hasDialogBeenDisplayed, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, refresh, returnFromLightbox, returnToHistory, returnToHub, returnToPrevious, saveLine, showDialog, toggleInactiveRecordDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarSearchController

public CalendarSearchController()
Method Detail

createInitialForm

protected UifFormBase createInitialForm(HttpServletRequest request)
Specified by:
createInitialForm in class UifControllerBase

start

@RequestMapping(method=GET,
                params="methodToCall=start")
public ModelAndView start(@ModelAttribute(value="KualiForm")
                                                        UifFormBase form,
                                                        BindingResult result,
                                                        HttpServletRequest request,
                                                        HttpServletResponse response)
Overrides:
start in class UifControllerBase

search

@RequestMapping(params="methodToCall=search")
public ModelAndView search(@ModelAttribute(value="KualiForm")
                                                CalendarSearchForm searchForm,
                                                BindingResult result,
                                                HttpServletRequest request,
                                                HttpServletResponse response)
                    throws Exception
Method used to search atps

Throws:
Exception

view

@RequestMapping(params="methodToCall=view")
public ModelAndView view(@ModelAttribute(value="KualiForm")
                                              CalendarSearchForm searchForm,
                                              BindingResult result,
                                              HttpServletRequest request,
                                              HttpServletResponse response)
                  throws Exception
This is called when the user clicked on Search button in the Calendar Search page.

Parameters:
searchForm -
result -
request -
response -
Returns:
Throws:
Exception

edit

@RequestMapping(params="methodToCall=edit")
public ModelAndView edit(@ModelAttribute(value="KualiForm")
                                              CalendarSearchForm searchForm,
                                              BindingResult result,
                                              HttpServletRequest request,
                                              HttpServletResponse response)
                  throws Exception
This is called when the user clicked on Edit button in the Calendar Search page.

Parameters:
searchForm -
result -
request -
response -
Returns:
Throws:
Exception

copy

@RequestMapping(params="methodToCall=copy")
public ModelAndView copy(@ModelAttribute(value="KualiForm")
                                              CalendarSearchForm searchForm,
                                              BindingResult result,
                                              HttpServletRequest request,
                                              HttpServletResponse response)
                  throws Exception
This is called when the user clicked on Copy button in the Calendar Search page with Holiday calendar selected.

Parameters:
searchForm -
result -
request -
response -
Returns:
Throws:
Exception

delete

@RequestMapping(params="methodToCall=delete")
public ModelAndView delete(@ModelAttribute(value="KualiForm")
                                                CalendarSearchForm searchForm,
                                                BindingResult result,
                                                HttpServletRequest request,
                                                HttpServletResponse response)
                    throws Exception
This is called when the user clicked on Delete button in the Calendar Search page with Holiday calendar selected.

Parameters:
searchForm -
result -
request -
response -
Returns:
Throws:
Exception

getAcademicCalendarService

protected AcademicCalendarService getAcademicCalendarService()


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.