org.kuali.ole.loan.controller
Class LoanController

java.lang.Object
  extended by org.kuali.rice.krad.web.controller.UifControllerBase
      extended by org.kuali.ole.loan.controller.LoanController

@Controller
@RequestMapping(value="/loancontroller")
public class LoanController
extends org.kuali.rice.krad.web.controller.UifControllerBase

The LoanController is the controller class for processing all the actions that corresponds to the Loan functionality in OLE. The request mapping tag takes care of mapping the individual action to the corresponding functions.


Field Summary
 
Fields inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
REDIRECT_PREFIX
 
Constructor Summary
LoanController()
           
 
Method Summary
 org.springframework.web.servlet.ModelAndView addItem(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method creates new loan for a patron..
 org.springframework.web.servlet.ModelAndView clearPatron(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method clear UI for next borrower session..
protected  OleLoanForm createInitialForm(javax.servlet.http.HttpServletRequest request)
          This method creates new OleLoan form
 org.springframework.web.servlet.ModelAndView doNotLoanPatron(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method doesn't allow a patron to be loaned.
 org.springframework.web.servlet.ModelAndView loanPatron(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method creates loan for a patron who is not able to borrow.
 org.springframework.web.servlet.ModelAndView searchPatron(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method displays information about a patron in UI.
 org.springframework.web.servlet.ModelAndView start(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method converts UifFormBase to OleLoanForm
 
Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
addLine, cancel, checkViewAuthorization, close, deleteLine, getUIFModelAndView, getUIFModelAndView, getViewService, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, refresh, returnToHistory, returnToHub, returnToPrevious, toggleInactiveRecordDisplay, updateComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoanController

public LoanController()
Method Detail

createInitialForm

protected OleLoanForm createInitialForm(javax.servlet.http.HttpServletRequest request)
This method creates new OleLoan form

Specified by:
createInitialForm in class org.kuali.rice.krad.web.controller.UifControllerBase
Parameters:
request -
Returns:
OleLoanForm

start

@RequestMapping(params="methodToCall=start")
public org.springframework.web.servlet.ModelAndView start(@ModelAttribute(value="KualiForm")
                                                                         org.kuali.rice.krad.web.form.UifFormBase form,
                                                                         org.springframework.validation.BindingResult result,
                                                                         javax.servlet.http.HttpServletRequest request,
                                                                         javax.servlet.http.HttpServletResponse response)
This method converts UifFormBase to OleLoanForm

Overrides:
start in class org.kuali.rice.krad.web.controller.UifControllerBase
Parameters:
form -
result -
request -
response -
Returns:
ModelAndView

searchPatron

@RequestMapping(params="methodToCall=searchPatron")
public org.springframework.web.servlet.ModelAndView searchPatron(@ModelAttribute(value="KualiForm")
                                                                                org.kuali.rice.krad.web.form.UifFormBase form,
                                                                                org.springframework.validation.BindingResult result,
                                                                                javax.servlet.http.HttpServletRequest request,
                                                                                javax.servlet.http.HttpServletResponse response)
This method displays information about a patron in UI.

Parameters:
form -
result -
request -
response -
Returns:
ModelAndView

addItem

@RequestMapping(params="methodToCall=addItem")
public org.springframework.web.servlet.ModelAndView addItem(@ModelAttribute(value="KualiForm")
                                                                           org.kuali.rice.krad.web.form.UifFormBase form,
                                                                           org.springframework.validation.BindingResult result,
                                                                           javax.servlet.http.HttpServletRequest request,
                                                                           javax.servlet.http.HttpServletResponse response)
This method creates new loan for a patron..

Parameters:
form -
result -
request -
response -
Returns:
ModelAndView

loanPatron

@RequestMapping(params="methodToCall=loan")
public org.springframework.web.servlet.ModelAndView loanPatron(@ModelAttribute(value="KualiForm")
                                                                              org.kuali.rice.krad.web.form.UifFormBase form,
                                                                              org.springframework.validation.BindingResult result,
                                                                              javax.servlet.http.HttpServletRequest request,
                                                                              javax.servlet.http.HttpServletResponse response)
This method creates loan for a patron who is not able to borrow.

Parameters:
form -
result -
request -
response -
Returns:
ModelAndView

doNotLoanPatron

@RequestMapping(params="methodToCall=noLoan")
public org.springframework.web.servlet.ModelAndView doNotLoanPatron(@ModelAttribute(value="KualiForm")
                                                                                   org.kuali.rice.krad.web.form.UifFormBase form,
                                                                                   org.springframework.validation.BindingResult result,
                                                                                   javax.servlet.http.HttpServletRequest request,
                                                                                   javax.servlet.http.HttpServletResponse response)
This method doesn't allow a patron to be loaned.

Parameters:
form -
result -
request -
response -
Returns:
ModelAndView

clearPatron

@RequestMapping(params="methodToCall=saveAndClear")
public org.springframework.web.servlet.ModelAndView clearPatron(@ModelAttribute(value="KualiForm")
                                                                               org.kuali.rice.krad.web.form.UifFormBase form,
                                                                               org.springframework.validation.BindingResult result,
                                                                               javax.servlet.http.HttpServletRequest request,
                                                                               javax.servlet.http.HttpServletResponse response)
This method clear UI for next borrower session..

Parameters:
form -
result -
request -
response -
Returns:
ModelAndView


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