Package org.kuali.rice.krms.impl.ui
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 ClassesModifier and TypeClassDescriptionprotected static classThis class abstracts getting and setting a child of an AgendaItemBo, making some recursive operations require less boiler plate. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.ModelAndViewaddProposition(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.ModelAndViewaddRule(org.kuali.rice.krad.web.form.UifFormBase form) This method adds the newly create rule to the agenda.org.springframework.web.servlet.ModelAndViewajaxCut(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.ModelAndViewajaxDelete(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.ModelAndViewajaxMoveDown(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.ModelAndViewajaxMoveLeft(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.ModelAndViewajaxMoveRight(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.ModelAndViewajaxMoveUp(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.ModelAndViewajaxPaste(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.ModelAndViewajaxRefresh(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) booleanajaxValidRuleName(String name, String namespace) Exposes Ajax callback to UI to validate entered rule name to copyorg.springframework.web.servlet.ModelAndViewcopyRule(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.ModelAndViewcutProposition(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.ModelAndViewdeleteProposition(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.ModelAndVieweditRule(org.kuali.rice.krad.web.form.UifFormBase form) This method updates the existing rule in the agenda.getCustomOperatorValueMap(org.kuali.rice.krad.web.form.UifFormBase form) Gets a map from function ID to custom operator key.protected StringgetDefaultAddLocationPropositionId(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.ModelAndViewgoToAddRule(org.kuali.rice.krad.web.form.UifFormBase form) This method updates the existing rule in the agenda.org.springframework.web.servlet.ModelAndViewgoToEditProposition(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.ModelAndViewgoToEditRule(org.kuali.rice.krad.web.form.UifFormBase form) This method updates the existing rule in the agenda.org.springframework.web.servlet.ModelAndViewmovePropositionDown(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.ModelAndViewmovePropositionLeft(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.ModelAndViewmovePropositionRight(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.ModelAndViewmovePropositionUp(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.ModelAndViewpasteProposition(org.kuali.rice.krad.web.form.UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected voidpreprocessCustomOperators(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.ModelAndViewrefresh(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.ModelAndViewroute(org.kuali.rice.krad.web.form.DocumentFormBase form) Override route to set the setSelectedAgendaItemId to empty and disable all the buttonsorg.springframework.web.servlet.ModelAndViewsetupMaintenanceEdit(org.kuali.rice.krad.web.form.MaintenanceDocumentForm form) org.springframework.web.servlet.ModelAndViewtogglePropositionSimpleCompound(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.ModelAndViewupdateCompoundOperator(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.maintenance.MaintenanceDocumentController
createInitialForm, downloadDataObjectAttachment, getControllerService, maintenanceDelete, setControllerService, setupMaintenanceCopy, setupMaintenanceNewWithExistingMethods 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, supervisorFunctionsMethods 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
-
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:
routein classorg.kuali.rice.krad.document.DocumentControllerBase- See Also:
-
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:
refreshin classorg.kuali.rice.krad.web.controller.UifControllerBase
-
setupMaintenanceEdit
public org.springframework.web.servlet.ModelAndView setupMaintenanceEdit(org.kuali.rice.krad.web.form.MaintenanceDocumentForm form) - Overrides:
setupMaintenanceEditin classMaintenanceDocumentController
-
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 convertcustomOperatorValuesMap- 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 copyRuleNamenamespace- 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
-