@Controller @RequestMapping(value="krmsAgendaEditor") public class AgendaEditorController extends MaintenanceDocumentController
Modifier and Type | Class and Description |
---|---|
protected static class |
AgendaEditorController.AgendaItemChildAccessor
This class abstracts getting and setting a child of an AgendaItemBo, making some recursive operations
require less boiler plate.
|
Constructor and Description |
---|
AgendaEditorController() |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.servlet.ModelAndView |
addProposition(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
addRule(UifFormBase form)
This method adds the newly create rule to the agenda.
|
org.springframework.web.servlet.ModelAndView |
ajaxCut(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
ajaxDelete(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
ajaxMoveDown(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
ajaxMoveLeft(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
ajaxMoveRight(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
ajaxMoveUp(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
ajaxPaste(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
ajaxRefresh(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(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
cutProposition(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
deleteProposition(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
editRule(UifFormBase form)
This method updates the existing rule in the agenda.
|
protected Map<String,String> |
getCustomOperatorValueMap(UifFormBase form)
Gets a map from function ID to custom operator key.
|
protected String |
getDefaultAddLocationPropositionId(Node<RuleTreeNode,String> root)
This method gets the last propostion in the topmost branch.
|
protected Node<RuleTreeNode,String> |
getLastSimpleNode(List<Node<RuleTreeNode,String>> grandChildren)
This method returns the last simple node in the topmost branch.
|
org.springframework.web.servlet.ModelAndView |
goToAddRule(UifFormBase form)
This method updates the existing rule in the agenda.
|
org.springframework.web.servlet.ModelAndView |
goToEditProposition(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(UifFormBase form)
This method updates the existing rule in the agenda.
|
org.springframework.web.servlet.ModelAndView |
movePropositionDown(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
movePropositionLeft(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
movePropositionRight(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
movePropositionUp(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.springframework.web.servlet.ModelAndView |
pasteProposition(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(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(DocumentFormBase form)
Override route to set the setSelectedAgendaItemId to empty and disable all the buttons
|
org.springframework.web.servlet.ModelAndView |
setupMaintenanceEdit(MaintenanceDocumentForm form) |
org.springframework.web.servlet.ModelAndView |
togglePropositionSimpleCompound(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(UifFormBase form,
org.springframework.validation.BindingResult result,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
createInitialForm, downloadDataObjectAttachment, getControllerService, maintenanceDelete, setControllerService, setupMaintenanceCopy, setupMaintenanceNewWithExisting
acknowledge, approve, blanketApprove, cancelAttachment, complete, deleteNote, disapprove, docHandler, downloadAttachment, fyi, insertNote, recall, reload, save, save, sendAdHocRequests, superUserApprove, superUserDisapprove, superUserTakeActions, supervisorFunctions
addBlankLine, addFileUploadLine, addLine, back, cancel, checkForm, 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, returnToHub, returnToPrevious, saveField, saveLine, sessionTimeout, setCollectionControllerService, setFileControllerService, setModelAndViewService, setNavigationControllerService, setQueryControllerService, setRefreshControllerService, setSaveControllerService, showDialog, start, tableJsonRetrieval
public AgendaEditorController()
@RequestMapping(params="methodToCall=route") public org.springframework.web.servlet.ModelAndView route(DocumentFormBase form)
route
in class DocumentControllerBase
(DocumentFormBase, BindingResult, HttpServletRequest, HttpServletResponse)
@RequestMapping(params="methodToCall=refresh") public org.springframework.web.servlet.ModelAndView refresh(UifFormBase form)
refresh
in class UifControllerBase
RefreshControllerService.refresh(org.kuali.rice.krad.web.form.UifFormBase)
public org.springframework.web.servlet.ModelAndView setupMaintenanceEdit(MaintenanceDocumentForm form)
@RequestMapping(params="methodToCall=goToAddRule") public org.springframework.web.servlet.ModelAndView goToAddRule(UifFormBase form) throws Exception
Exception
@RequestMapping(params="methodToCall=goToEditRule") public org.springframework.web.servlet.ModelAndView goToEditRule(UifFormBase form) throws Exception
Exception
protected Map<String,String> getCustomOperatorValueMap(UifFormBase form)
The key for a custom operator uses a special prefix and format.
form
- the form containing the agenda editorprotected void preprocessCustomOperators(PropositionBo proposition, Map<String,String> customOperatorValuesMap)
proposition
- the proposition to search within and convertcustomOperatorValuesMap
- a map from function ID to custom operator key, used for the conversion@RequestMapping(params="methodToCall=addRule") public org.springframework.web.servlet.ModelAndView addRule(UifFormBase form) throws Exception
Exception
@RequestMapping(params="methodToCall=editRule") public org.springframework.web.servlet.ModelAndView editRule(UifFormBase form) throws Exception
Exception
@RequestMapping(params="methodToCall=ajaxRefresh") public org.springframework.web.servlet.ModelAndView ajaxRefresh(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=ajaxMoveUp") public org.springframework.web.servlet.ModelAndView ajaxMoveUp(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=ajaxValidRuleName", method=GET) @ResponseBody public boolean ajaxValidRuleName(@RequestParam String name, @RequestParam String namespace)
name
- the copyRuleNamenamespace
- the rule namespace@RequestMapping(params="methodToCall=ajaxMoveDown") public org.springframework.web.servlet.ModelAndView ajaxMoveDown(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=ajaxMoveLeft") public org.springframework.web.servlet.ModelAndView ajaxMoveLeft(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=ajaxMoveRight") public org.springframework.web.servlet.ModelAndView ajaxMoveRight(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=ajaxDelete") public org.springframework.web.servlet.ModelAndView ajaxDelete(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=ajaxCut") public org.springframework.web.servlet.ModelAndView ajaxCut(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=ajaxPaste") public org.springframework.web.servlet.ModelAndView ajaxPaste(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=copyRule") public org.springframework.web.servlet.ModelAndView copyRule(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=goToEditProposition") public org.springframework.web.servlet.ModelAndView goToEditProposition(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
protected Node<RuleTreeNode,String> getLastSimpleNode(List<Node<RuleTreeNode,String>> grandChildren)
grandChildren
- protected String getDefaultAddLocationPropositionId(Node<RuleTreeNode,String> root)
root
- @RequestMapping(params="methodToCall=addProposition") public org.springframework.web.servlet.ModelAndView addProposition(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=movePropositionUp") public org.springframework.web.servlet.ModelAndView movePropositionUp(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=movePropositionDown") public org.springframework.web.servlet.ModelAndView movePropositionDown(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=movePropositionLeft") public org.springframework.web.servlet.ModelAndView movePropositionLeft(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=movePropositionRight") public org.springframework.web.servlet.ModelAndView movePropositionRight(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=togglePropositionSimpleCompound") public org.springframework.web.servlet.ModelAndView togglePropositionSimpleCompound(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=cutProposition") public org.springframework.web.servlet.ModelAndView cutProposition(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=pasteProposition") public org.springframework.web.servlet.ModelAndView pasteProposition(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=deleteProposition") public org.springframework.web.servlet.ModelAndView deleteProposition(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
@RequestMapping(params="methodToCall=updateCompoundOperator") public org.springframework.web.servlet.ModelAndView updateCompoundOperator(@ModelAttribute(value="KualiForm") UifFormBase form, org.springframework.validation.BindingResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.