org.kuali.rice.krms.controller
Class RuleEditorController

java.lang.Object
  extended by org.kuali.rice.krad.web.controller.UifControllerBase
      extended by org.kuali.rice.krad.web.controller.DocumentControllerBase
          extended by org.kuali.rice.krad.web.controller.MaintenanceDocumentController
              extended by org.kuali.rice.krms.controller.RuleEditorController
Direct Known Subclasses:
RuleStudentEditorController

public class RuleEditorController
extends MaintenanceDocumentController

Controller for the Test UI Page

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from class org.kuali.rice.krad.web.controller.MaintenanceDocumentController
LOG
 
Fields inherited from class org.kuali.rice.krad.web.controller.DocumentControllerBase
DOCUMENT_LOAD_COMMANDS
 
Constructor Summary
RuleEditorController()
           
 
Method Summary
 ModelAndView addProposition(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView addRule(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView ajaxRefresh(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView cancelEditProposition(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView cancelEditRule(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView compareRules(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
          Test method for a controller that invokes a dialog lightbox.
 ModelAndView copyRule(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView deleteProposition(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView deleteRule(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
protected  RuleEditor getRuleEditor(UifFormBase form)
           
 ModelAndView getSelectedKey(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
protected  RuleViewHelperService getViewHelper(UifFormBase form)
           
 ModelAndView goToEditProposition(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
          This method starts an edit proposition.
 ModelAndView goToRuleView(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 boolean isSimpleNode(String nodeType)
           
 ModelAndView movePropositionDown(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView movePropositionLeft(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView movePropositionRight(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView movePropositionUp(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView onEditTabSelect(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView pasteProposition(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView togglePropositionSimpleCompound(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
          introduces a new compound proposition between the selected proposition and its parent.
 ModelAndView updateCompoundOperator(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView updatePreview(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView updateProposition(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView updatePropositionType(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 ModelAndView updateRule(UifFormBase form, BindingResult result, HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class org.kuali.rice.krad.web.controller.MaintenanceDocumentController
createInitialForm, docHandler, getMaintenanceDocumentService, maintenanceCopy, maintenanceEdit, maintenanceNewWithExisting, route, setupMaintenance, start
 
Methods inherited from class org.kuali.rice.krad.web.controller.DocumentControllerBase
acknowledge, approve, blanketApprove, buildAuthorizationException, cancel, cancelAttachment, checkAndWarnAboutSensitiveData, combineAdHocRecipients, complete, createDocument, deleteNote, disapprove, downloadAttachment, fyi, getAttachmentService, getBusinessObjectService, getConfigurationService, getDataDictionaryService, getDocumentDictionaryService, getDocumentService, getNoteService, insertNote, loadDocument, performWorkflowAction, reload, save, setBusinessObjectService, setDataDictionaryService, setDocumentDictionaryService, setDocumentService, supervisorFunctions
 
Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase
addBlankLine, addLine, 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

RuleEditorController

public RuleEditorController()
Method Detail

goToRuleView

@RequestMapping(params="methodToCall=goToRuleView")
public ModelAndView goToRuleView(@ModelAttribute(value="KualiForm")
                                                      UifFormBase form,
                                                      BindingResult result,
                                                      HttpServletRequest request,
                                                      HttpServletResponse response)
                          throws Exception
Throws:
Exception

deleteRule

@RequestMapping(params="methodToCall=deleteRule")
public ModelAndView deleteRule(@ModelAttribute(value="KualiForm")
                                                    UifFormBase form,
                                                    BindingResult result,
                                                    HttpServletRequest request,
                                                    HttpServletResponse response)
                        throws Exception
Throws:
Exception

addRule

@RequestMapping(params="methodToCall=addRule")
public ModelAndView addRule(@ModelAttribute(value="KualiForm")
                                                 UifFormBase form,
                                                 BindingResult result,
                                                 HttpServletRequest request,
                                                 HttpServletResponse response)
                     throws Exception
Throws:
Exception

ajaxRefresh

@RequestMapping(params="methodToCall=ajaxRefresh")
public ModelAndView ajaxRefresh(@ModelAttribute(value="KualiForm")
                                                     UifFormBase form,
                                                     BindingResult result,
                                                     HttpServletRequest request,
                                                     HttpServletResponse response)
                         throws Exception
Throws:
Exception

getRuleEditor

protected RuleEditor getRuleEditor(UifFormBase form)
Parameters:
form -
Returns:
the AgendaEditor from the form

copyRule

@RequestMapping(params="methodToCall=copyRule")
public ModelAndView copyRule(@ModelAttribute(value="KualiForm")
                                                  UifFormBase form,
                                                  BindingResult result,
                                                  HttpServletRequest request,
                                                  HttpServletResponse response)
                      throws Exception
Throws:
Exception

goToEditProposition

@RequestMapping(params="methodToCall=goToEditProposition")
public ModelAndView goToEditProposition(@ModelAttribute(value="KualiForm")
                                                             UifFormBase form,
                                                             BindingResult result,
                                                             HttpServletRequest request,
                                                             HttpServletResponse response)
                                 throws Exception
This method starts an edit proposition.

Throws:
Exception

addProposition

@RequestMapping(params="methodToCall=addProposition")
public ModelAndView addProposition(@ModelAttribute(value="KualiForm")
                                                        UifFormBase form,
                                                        BindingResult result,
                                                        HttpServletRequest request,
                                                        HttpServletResponse response)
                            throws Exception
Throws:
Exception

movePropositionUp

@RequestMapping(params="methodToCall=movePropositionUp")
public ModelAndView movePropositionUp(@ModelAttribute(value="KualiForm")
                                                           UifFormBase form,
                                                           BindingResult result,
                                                           HttpServletRequest request,
                                                           HttpServletResponse response)
                               throws Exception
Throws:
Exception

movePropositionDown

@RequestMapping(params="methodToCall=movePropositionDown")
public ModelAndView movePropositionDown(@ModelAttribute(value="KualiForm")
                                                             UifFormBase form,
                                                             BindingResult result,
                                                             HttpServletRequest request,
                                                             HttpServletResponse response)
                                 throws Exception
Throws:
Exception

isSimpleNode

public boolean isSimpleNode(String nodeType)

movePropositionLeft

@RequestMapping(params="methodToCall=movePropositionLeft")
public ModelAndView movePropositionLeft(@ModelAttribute(value="KualiForm")
                                                             UifFormBase form,
                                                             BindingResult result,
                                                             HttpServletRequest request,
                                                             HttpServletResponse response)
                                 throws Exception
Throws:
Exception

movePropositionRight

@RequestMapping(params="methodToCall=movePropositionRight")
public ModelAndView movePropositionRight(@ModelAttribute(value="KualiForm")
                                                              UifFormBase form,
                                                              BindingResult result,
                                                              HttpServletRequest request,
                                                              HttpServletResponse response)
                                  throws Exception
Throws:
Exception

togglePropositionSimpleCompound

@RequestMapping(params="methodToCall=togglePropositionSimpleCompound")
public ModelAndView togglePropositionSimpleCompound(@ModelAttribute(value="KualiForm")
                                                                         UifFormBase form,
                                                                         BindingResult result,
                                                                         HttpServletRequest request,
                                                                         HttpServletResponse response)
                                             throws Exception
introduces a new compound proposition between the selected proposition and its parent. Additionally, it puts a new blank simple proposition underneath the compound proposition as a sibling to the selected proposition.

Throws:
Exception

pasteProposition

@RequestMapping(params="methodToCall=pasteProposition")
public ModelAndView pasteProposition(@ModelAttribute(value="KualiForm")
                                                          UifFormBase form,
                                                          BindingResult result,
                                                          HttpServletRequest request,
                                                          HttpServletResponse response)
                              throws Exception
Throws:
Exception

deleteProposition

@RequestMapping(params="methodToCall=deleteProposition")
public ModelAndView deleteProposition(@ModelAttribute(value="KualiForm")
                                                           UifFormBase form,
                                                           BindingResult result,
                                                           HttpServletRequest request,
                                                           HttpServletResponse response)
                               throws Exception
Throws:
Exception

updateCompoundOperator

@RequestMapping(params="methodToCall=updateCompoundOperator")
public ModelAndView updateCompoundOperator(@ModelAttribute(value="KualiForm")
                                                                UifFormBase form,
                                                                BindingResult result,
                                                                HttpServletRequest request,
                                                                HttpServletResponse response)
                                    throws Exception
Throws:
Exception

updateProposition

@RequestMapping(params="methodToCall=updateProposition")
public ModelAndView updateProposition(@ModelAttribute(value="KualiForm")
                                                           UifFormBase form,
                                                           BindingResult result,
                                                           HttpServletRequest request,
                                                           HttpServletResponse response)
                               throws Exception
Throws:
Exception

updateRule

@RequestMapping(params="methodToCall=updateRule")
public ModelAndView updateRule(@ModelAttribute(value="KualiForm")
                                                    UifFormBase form,
                                                    BindingResult result,
                                                    HttpServletRequest request,
                                                    HttpServletResponse response)
                        throws Exception
Throws:
Exception

updatePreview

@RequestMapping(params="methodToCall=updatePreview")
public ModelAndView updatePreview(@ModelAttribute(value="KualiForm")
                                                       UifFormBase form,
                                                       BindingResult result,
                                                       HttpServletRequest request,
                                                       HttpServletResponse response)
                           throws Exception
Throws:
Exception

onEditTabSelect

@RequestMapping(params="methodToCall=onTabSelect")
public ModelAndView onEditTabSelect(@ModelAttribute(value="KualiForm")
                                                         UifFormBase form,
                                                         BindingResult result,
                                                         HttpServletRequest request,
                                                         HttpServletResponse response)
                             throws Exception
Throws:
Exception

cancelEditProposition

@RequestMapping(params="methodToCall=cancelEditProposition")
public ModelAndView cancelEditProposition(@ModelAttribute(value="KualiForm")
                                                               UifFormBase form,
                                                               BindingResult result,
                                                               HttpServletRequest request,
                                                               HttpServletResponse response)
                                   throws Exception
Throws:
Exception

cancelEditRule

@RequestMapping(params="methodToCall=cancelEditRule")
public ModelAndView cancelEditRule(@ModelAttribute(value="KualiForm")
                                                        UifFormBase form,
                                                        BindingResult result,
                                                        HttpServletRequest request,
                                                        HttpServletResponse response)
                            throws Exception
Throws:
Exception

updatePropositionType

@RequestMapping(params="methodToCall=updatePropositionType")
public ModelAndView updatePropositionType(@ModelAttribute(value="KualiForm")
                                                               UifFormBase form,
                                                               BindingResult result,
                                                               HttpServletRequest request,
                                                               HttpServletResponse response)
                                   throws Exception
Throws:
Exception

compareRules

@RequestMapping(params="methodToCall=compareRules")
public ModelAndView compareRules(@ModelAttribute(value="KualiForm")
                                                      UifFormBase form,
                                                      BindingResult result,
                                                      HttpServletRequest request,
                                                      HttpServletResponse response)
                          throws Exception
Test method for a controller that invokes a dialog lightbox.

Parameters:
form - - test form
result - - Spring form binding result
request - - http request
response - - http response
Returns:
Throws:
Exception

getViewHelper

protected RuleViewHelperService getViewHelper(UifFormBase form)

getSelectedKey

@RequestMapping(params="methodToCall=getSelectedKey")
public ModelAndView getSelectedKey(@ModelAttribute(value="KualiForm")
                                                        UifFormBase form,
                                                        BindingResult result,
                                                        HttpServletRequest request,
                                                        HttpServletResponse response)
                            throws Exception
Throws:
Exception


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