Class AgendaEditorController

java.lang.Object
org.kuali.rice.krad.web.controller.UifControllerBase
org.kuali.rice.krad.document.DocumentControllerBase
org.kuali.rice.krad.maintenance.MaintenanceDocumentController
org.kuali.rice.krms.impl.ui.AgendaEditorController

@Controller @RequestMapping("krmsAgendaEditor") public class AgendaEditorController extends MaintenanceDocumentController
Controller for the Test UI Page
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
    This class abstracts getting and setting a child of an AgendaItemBo, making some recursive operations require less boiler plate.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.web.servlet.ModelAndView
    addProposition(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    addRule(org.kuali.rice.krad.web.form.UifFormBase form)
    This method adds the newly create rule to the agenda.
    org.springframework.web.servlet.ModelAndView
    ajaxCut(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    ajaxDelete(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    ajaxMoveDown(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    ajaxMoveLeft(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    ajaxMoveRight(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    ajaxMoveUp(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    ajaxPaste(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    ajaxRefresh(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    boolean
    ajaxValidRuleName(String name, String namespace)
    Exposes Ajax callback to UI to validate entered rule name to copy
    org.springframework.web.servlet.ModelAndView
    copyRule(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    cutProposition(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    deleteProposition(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    editRule(org.kuali.rice.krad.web.form.UifFormBase form)
    This method updates the existing rule in the agenda.
    protected Map<String,String>
    getCustomOperatorValueMap(org.kuali.rice.krad.web.form.UifFormBase form)
    Gets a map from function ID to custom operator key.
    protected String
    getDefaultAddLocationPropositionId(org.kuali.rice.core.api.util.tree.Node<RuleTreeNode,String> root)
    This method gets the last propostion in the topmost branch.
    protected org.kuali.rice.core.api.util.tree.Node<RuleTreeNode,String>
    getLastSimpleNode(List<org.kuali.rice.core.api.util.tree.Node<RuleTreeNode,String>> grandChildren)
    This method returns the last simple node in the topmost branch.
    org.springframework.web.servlet.ModelAndView
    goToAddRule(org.kuali.rice.krad.web.form.UifFormBase form)
    This method updates the existing rule in the agenda.
    org.springframework.web.servlet.ModelAndView
    goToEditProposition(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 starts an edit proposition.
    org.springframework.web.servlet.ModelAndView
    goToEditRule(org.kuali.rice.krad.web.form.UifFormBase form)
    This method updates the existing rule in the agenda.
    org.springframework.web.servlet.ModelAndView
    movePropositionDown(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    movePropositionLeft(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    movePropositionRight(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    movePropositionUp(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    org.springframework.web.servlet.ModelAndView
    pasteProposition(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    protected void
    preprocessCustomOperators(PropositionBo proposition, Map<String,String> customOperatorValuesMap)
    Looks for any custom function calls within simple propositions and attempts to convert them to custom operator keys.
    org.springframework.web.servlet.ModelAndView
    refresh(org.kuali.rice.krad.web.form.UifFormBase form)
    This overridden method does extra work on refresh to update the namespace when the context has been changed.
    org.springframework.web.servlet.ModelAndView
    route(org.kuali.rice.krad.web.form.DocumentFormBase form)
    Override route to set the setSelectedAgendaItemId to empty and disable all the buttons
    org.springframework.web.servlet.ModelAndView
    setupMaintenanceEdit(org.kuali.rice.krad.web.form.MaintenanceDocumentForm form)
     
    org.springframework.web.servlet.ModelAndView
    togglePropositionSimpleCompound(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    introduces a new compound proposition between the selected proposition and its parent.
    org.springframework.web.servlet.ModelAndView
    updateCompoundOperator(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     

    Methods inherited from class org.kuali.rice.krad.document.DocumentControllerBase

    acknowledge, approve, blanketApprove, cancelAttachment, close, complete, deleteNote, disapprove, docHandler, downloadAttachment, fyi, insertNote, recall, reload, save, save, sendAdHocRequests, superUserApprove, superUserDisapprove, superUserTakeActions, supervisorFunctions

    Methods inherited from class org.kuali.rice.krad.web.controller.UifControllerBase

    addBlankLine, addFileUploadLine, addLine, back, cancel, checkForm, closeEditLineDialog, defaultMapping, deleteFileUploadLine, deleteLine, editLine, getCollectionControllerService, getFileControllerService, getFileFromLine, getMessageView, getModelAndView, getModelAndView, getModelAndView, getModelAndViewService, getModelAndViewWithInit, getModelAndViewWithInit, getNavigationControllerService, getQueryControllerService, getRefreshControllerService, getSaveControllerService, initForm, navigate, performFieldQuery, performFieldSuggest, performLookup, performRedirect, performRedirect, retrieveCollectionPage, retrieveEditLineDialog, returnToHub, returnToPrevious, saveField, saveLine, sessionTimeout, setCollectionControllerService, setFileControllerService, setModelAndViewService, setNavigationControllerService, setQueryControllerService, setRefreshControllerService, setSaveControllerService, showDialog, start, tableJsonRetrieval

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AgendaEditorController

      public AgendaEditorController()
  • Method Details

    • route

      @RequestMapping(params="methodToCall=route") public org.springframework.web.servlet.ModelAndView route(org.kuali.rice.krad.web.form.DocumentFormBase form)
      Override route to set the setSelectedAgendaItemId to empty and disable all the buttons
      Overrides:
      route in class org.kuali.rice.krad.document.DocumentControllerBase
      See Also:
      • (DocumentFormBase, BindingResult, HttpServletRequest, HttpServletResponse)
    • refresh

      @RequestMapping(params="methodToCall=refresh") public org.springframework.web.servlet.ModelAndView refresh(org.kuali.rice.krad.web.form.UifFormBase form)
      This overridden method does extra work on refresh to update the namespace when the context has been changed.
      Overrides:
      refresh in class org.kuali.rice.krad.web.controller.UifControllerBase
    • setupMaintenanceEdit

      public org.springframework.web.servlet.ModelAndView setupMaintenanceEdit(org.kuali.rice.krad.web.form.MaintenanceDocumentForm form)
      Overrides:
      setupMaintenanceEdit in class MaintenanceDocumentController
    • goToAddRule

      @RequestMapping(params="methodToCall=goToAddRule") public org.springframework.web.servlet.ModelAndView goToAddRule(org.kuali.rice.krad.web.form.UifFormBase form) throws Exception
      This method updates the existing rule in the agenda.
      Throws:
      Exception
    • goToEditRule

      @RequestMapping(params="methodToCall=goToEditRule") public org.springframework.web.servlet.ModelAndView goToEditRule(org.kuali.rice.krad.web.form.UifFormBase form) throws Exception
      This method updates the existing rule in the agenda.
      Throws:
      Exception
    • getCustomOperatorValueMap

      protected Map<String,String> getCustomOperatorValueMap(org.kuali.rice.krad.web.form.UifFormBase form)
      Gets a map from function ID to custom operator key.

      The key for a custom operator uses a special prefix and format.

      Parameters:
      form - the form containing the agenda editor
      Returns:
      the map from function id to custom operator key
    • preprocessCustomOperators

      protected void preprocessCustomOperators(PropositionBo proposition, Map<String,String> customOperatorValuesMap)
      Looks for any custom function calls within simple propositions and attempts to convert them to custom operator keys.
      Parameters:
      proposition - the proposition to search within and convert
      customOperatorValuesMap - a map from function ID to custom operator key, used for the conversion
    • addRule

      @RequestMapping(params="methodToCall=addRule") public org.springframework.web.servlet.ModelAndView addRule(org.kuali.rice.krad.web.form.UifFormBase form) throws Exception
      This method adds the newly create rule to the agenda.
      Throws:
      Exception
    • editRule

      @RequestMapping(params="methodToCall=editRule") public org.springframework.web.servlet.ModelAndView editRule(org.kuali.rice.krad.web.form.UifFormBase form) throws Exception
      This method updates the existing rule in the agenda.
      Throws:
      Exception
    • ajaxRefresh

      @RequestMapping(params="methodToCall=ajaxRefresh") public org.springframework.web.servlet.ModelAndView ajaxRefresh(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • ajaxMoveUp

      @RequestMapping(params="methodToCall=ajaxMoveUp") public org.springframework.web.servlet.ModelAndView ajaxMoveUp(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • ajaxValidRuleName

      @RequestMapping(params="methodToCall=ajaxValidRuleName", method=GET) @ResponseBody public boolean ajaxValidRuleName(@RequestParam String name, @RequestParam String namespace)
      Exposes Ajax callback to UI to validate entered rule name to copy
      Parameters:
      name - the copyRuleName
      namespace - the rule namespace
      Returns:
      true or false
    • ajaxMoveDown

      @RequestMapping(params="methodToCall=ajaxMoveDown") public org.springframework.web.servlet.ModelAndView ajaxMoveDown(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • ajaxMoveLeft

      @RequestMapping(params="methodToCall=ajaxMoveLeft") public org.springframework.web.servlet.ModelAndView ajaxMoveLeft(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • ajaxMoveRight

      @RequestMapping(params="methodToCall=ajaxMoveRight") public org.springframework.web.servlet.ModelAndView ajaxMoveRight(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • ajaxDelete

      @RequestMapping(params="methodToCall=ajaxDelete") public org.springframework.web.servlet.ModelAndView ajaxDelete(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • ajaxCut

      @RequestMapping(params="methodToCall=ajaxCut") public org.springframework.web.servlet.ModelAndView ajaxCut(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • ajaxPaste

      @RequestMapping(params="methodToCall=ajaxPaste") public org.springframework.web.servlet.ModelAndView ajaxPaste(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • copyRule

      @RequestMapping(params="methodToCall=copyRule") public org.springframework.web.servlet.ModelAndView copyRule(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • goToEditProposition

      @RequestMapping(params="methodToCall=goToEditProposition") public org.springframework.web.servlet.ModelAndView goToEditProposition(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      This method starts an edit proposition.
      Throws:
      Exception
    • getLastSimpleNode

      protected org.kuali.rice.core.api.util.tree.Node<RuleTreeNode,String> getLastSimpleNode(List<org.kuali.rice.core.api.util.tree.Node<RuleTreeNode,String>> grandChildren)
      This method returns the last simple node in the topmost branch.
      Parameters:
      grandChildren -
      Returns:
    • getDefaultAddLocationPropositionId

      protected String getDefaultAddLocationPropositionId(org.kuali.rice.core.api.util.tree.Node<RuleTreeNode,String> root)
      This method gets the last propostion in the topmost branch.
      Parameters:
      root -
      Returns:
    • addProposition

      @RequestMapping(params="methodToCall=addProposition") public org.springframework.web.servlet.ModelAndView addProposition(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • movePropositionUp

      @RequestMapping(params="methodToCall=movePropositionUp") public org.springframework.web.servlet.ModelAndView movePropositionUp(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • movePropositionDown

      @RequestMapping(params="methodToCall=movePropositionDown") public org.springframework.web.servlet.ModelAndView movePropositionDown(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • movePropositionLeft

      @RequestMapping(params="methodToCall=movePropositionLeft") public org.springframework.web.servlet.ModelAndView movePropositionLeft(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • movePropositionRight

      @RequestMapping(params="methodToCall=movePropositionRight") public org.springframework.web.servlet.ModelAndView movePropositionRight(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • togglePropositionSimpleCompound

      @RequestMapping(params="methodToCall=togglePropositionSimpleCompound") public org.springframework.web.servlet.ModelAndView togglePropositionSimpleCompound(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.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
    • cutProposition

      @RequestMapping(params="methodToCall=cutProposition") public org.springframework.web.servlet.ModelAndView cutProposition(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • pasteProposition

      @RequestMapping(params="methodToCall=pasteProposition") public org.springframework.web.servlet.ModelAndView pasteProposition(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • deleteProposition

      @RequestMapping(params="methodToCall=deleteProposition") public org.springframework.web.servlet.ModelAndView deleteProposition(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception
    • updateCompoundOperator

      @RequestMapping(params="methodToCall=updateCompoundOperator") public org.springframework.web.servlet.ModelAndView updateCompoundOperator(@ModelAttribute("KualiForm") org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Throws:
      Exception