Package org.kuali.rice.krad.document
Interface DocumentControllerService
- All Superinterfaces:
ControllerService
- All Known Subinterfaces:
MaintenanceDocumentControllerService,TransactionalDocumentControllerService
- All Known Implementing Classes:
DocumentControllerServiceImpl,MaintenanceDocumentControllerServiceImpl,TransactionalDocumentControllerServiceImpl
Controller service that handles document specific actions (such as workflow actions).
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.ModelAndViewacknowledge(DocumentFormBase form) Sends a acknowledge workflow action for the document contained on the form.org.springframework.web.servlet.ModelAndViewapprove(DocumentFormBase form) Sends a approve workflow action for the document contained on the form.org.springframework.web.servlet.ModelAndViewSends a blanket approve workflow action for the document contained on the form.org.springframework.web.servlet.ModelAndViewInvoked to remove an attachment that was uploaded for the add note instance.org.springframework.web.servlet.ModelAndViewclose(DocumentFormBase form) Closes the document and returns to the hub.org.springframework.web.servlet.ModelAndViewcomplete(DocumentFormBase form) Sends a complete workflow action for the document contained on the form.org.springframework.web.servlet.ModelAndViewdeleteNote(DocumentFormBase form) Invoked by the delete note action to delete a note instance contained on document (within the form).org.springframework.web.servlet.ModelAndViewdisapprove(DocumentFormBase form) Sends a disapprove workflow action for the document contained on the form.org.springframework.web.servlet.ModelAndViewdocHandler(DocumentFormBase form) Handles all requests for a new document instance or to load an existing document based on the given form parameters.org.springframework.web.servlet.ModelAndViewdownloadAttachment(DocumentFormBase form, javax.servlet.http.HttpServletResponse response) Invoked to download an attachment that has been uploaded for a note.org.springframework.web.servlet.ModelAndViewfyi(DocumentFormBase form) Sends a fyi workflow action for the document contained on the form.org.springframework.web.servlet.ModelAndViewinsertNote(DocumentFormBase form) Invoked by the add note action to adding the note instance contained of the given form.voidInvokes theDocumentServiceto carry out a super user request workflow action and adds a success message.voidperformSuperUserWorkflowAction(DocumentFormBase form, UifConstants.SuperUserWorkflowAction action, org.kuali.rice.kew.api.action.ActionRequest actionRequest) Invokes theDocumentServiceto carry out a super user request workflow action and adds a success message.voidperformWorkflowAction(DocumentFormBase form, UifConstants.WorkflowAction action) Invokes theDocumentServiceto carry out a request workflow action and adds a success message, if requested a check for sensitive data is also performed.voidperformWorkflowAction(DocumentFormBase form, UifConstants.WorkflowAction action, DocumentEvent documentEvent) Invokes theDocumentServiceto carry out a request workflow action and adds a success message, if requested a check for sensitive data is also performed.org.springframework.web.servlet.ModelAndViewrecall(DocumentFormBase form) Recalls the document with the given id on the form from workflow.org.springframework.web.servlet.ModelAndViewreload(DocumentFormBase form) Reloads from the database the document with the doc id on the given form.org.springframework.web.servlet.ModelAndViewroute(DocumentFormBase form) Sends a route workflow action for the document contained on the form.org.springframework.web.servlet.ModelAndViewsave(DocumentFormBase form) Saves the document instance contained on the given form.org.springframework.web.servlet.ModelAndViewsave(DocumentFormBase form, SaveDocumentEvent saveDocumentEvent) Saves the document instance contained on the given form and passes the given event for rule evaluation.org.springframework.web.servlet.ModelAndViewSends AdHoc workflow Requests for the document instance contained on the form to the AdHoc recipients contained on the form.org.springframework.web.servlet.ModelAndViewSends a super user approve workflow action for the document contained on the form.org.springframework.web.servlet.ModelAndViewSends a super user disapprove workflow action for the document contained on the form.org.springframework.web.servlet.ModelAndViewInvoked to take super user actions on a document.org.springframework.web.servlet.ModelAndViewRedirects to the supervisor workflow view.Methods inherited from interface org.kuali.rice.krad.web.service.ControllerService
cancel, checkViewAuthorization, sessionTimeout, start
-
Method Details
-
docHandler
org.springframework.web.servlet.ModelAndView docHandler(DocumentFormBase form) throws org.kuali.rice.kew.api.exception.WorkflowException Handles all requests for a new document instance or to load an existing document based on the given form parameters.- Parameters:
form- form instance containing the document data- Returns:
- ModelAndView instance for rendering the document view
- Throws:
org.kuali.rice.kew.api.exception.WorkflowException- if a document cannot be created or loaded
-
reload
org.springframework.web.servlet.ModelAndView reload(DocumentFormBase form) throws org.kuali.rice.kew.api.exception.WorkflowException Reloads from the database the document with the doc id on the given form.- Parameters:
form- form instance containing the document id that will be reloaded- Returns:
- ModelAndView instance for rendering the reloaded document view
- Throws:
org.kuali.rice.kew.api.exception.WorkflowException- if the document cannot be reloaded
-
recall
Recalls the document with the given id on the form from workflow.- Parameters:
form- form instance containing the document id that will be recalled- Returns:
- ModelAndView instance for rendering the document view
-
save
Saves the document instance contained on the given form.- Parameters:
form- form instance containing the document that will be saved- Returns:
- ModelAndView instance for rendering the document view
-
save
org.springframework.web.servlet.ModelAndView save(DocumentFormBase form, SaveDocumentEvent saveDocumentEvent) Saves the document instance contained on the given form and passes the given event for rule evaluation.- Parameters:
form- form instance containing the document that will be savedsaveDocumentEvent- rule event that will be processed with the save operation- Returns:
- ModelAndView instance for rendering the document view
-
complete
Sends a complete workflow action for the document contained on the form.- Parameters:
form- form instance containing the document the complete request will be generated for- Returns:
- ModelAndView instance for rendering the document view
-
route
Sends a route workflow action for the document contained on the form.- Parameters:
form- form instance containing the document the route request will be generated for- Returns:
- ModelAndView instance for rendering the document view
-
blanketApprove
Sends a blanket approve workflow action for the document contained on the form.- Parameters:
form- form instance containing the document the blanket approve request will be generated for- Returns:
- ModelAndView instance for rendering the document view
-
approve
Sends a approve workflow action for the document contained on the form.- Parameters:
form- form instance containing the document the approve request will be generated for- Returns:
- ModelAndView instance for rendering the document view
-
disapprove
Sends a disapprove workflow action for the document contained on the form.- Parameters:
form- form instance containing the document the disapprove request will be generated for- Returns:
- ModelAndView instance for rendering the document view
-
fyi
Sends a fyi workflow action for the document contained on the form.- Parameters:
form- form instance containing the document the fyi request will be generated for- Returns:
- ModelAndView instance for rendering the document view
-
acknowledge
Sends a acknowledge workflow action for the document contained on the form.- Parameters:
form- form instance containing the document the acknowledge request will be generated for- Returns:
- ModelAndView instance for rendering the document view
-
sendAdHocRequests
Sends AdHoc workflow Requests for the document instance contained on the form to the AdHoc recipients contained on the form.- Parameters:
form- form instance containing the document and recipients the requests will be generated for- Returns:
- ModelAndView instance for rendering the document view
-
supervisorFunctions
Redirects to the supervisor workflow view.- Parameters:
form- form instance containing the document instance- Returns:
- ModelAndView instance for rendering the supervisor workflow view
-
close
Closes the document and returns to the hub.- Parameters:
form- form instance containing the document instance- Returns:
- ModelAndView instance for rendering the document view
-
insertNote
Invoked by the add note action to adding the note instance contained of the given form.- Parameters:
form- form instance containing the note instance- Returns:
- ModelAndView instance for rendering the document view
-
deleteNote
Invoked by the delete note action to delete a note instance contained on document (within the form).- Parameters:
form- form instance containing the note instance- Returns:
- ModelAndView instance for rendering the document view
-
downloadAttachment
org.springframework.web.servlet.ModelAndView downloadAttachment(DocumentFormBase form, javax.servlet.http.HttpServletResponse response) Invoked to download an attachment that has been uploaded for a note.- Parameters:
form- form instance containing the note (and attachment) instanceresponse- http servlet response instance for sending back the attachment contents- Returns:
- ModelAndView instance for rendering the document view, or null if the response has been finished
-
cancelAttachment
Invoked to remove an attachment that was uploaded for the add note instance.- Parameters:
form- form instance containing the attachment.- Returns:
- ModelAndView instance for rendering the document view
-
superUserTakeActions
Invoked to take super user actions on a document.- Parameters:
form- form instance containing the actions.- Returns:
- ModelAndView instance for rendering the document view
-
superUserApprove
Sends a super user approve workflow action for the document contained on the form.- Parameters:
form- form instance containing the document the super user approve request will be generated for- Returns:
- ModelAndView instance for rendering the document view
-
superUserDisapprove
Sends a super user disapprove workflow action for the document contained on the form.- Parameters:
form- form instance containing the document the super user disapprove request will be generated for- Returns:
- ModelAndView instance for rendering the document view
-
performWorkflowAction
Invokes theDocumentServiceto carry out a request workflow action and adds a success message, if requested a check for sensitive data is also performed.- Parameters:
form- document form instance containing the document for which the action will be taken onaction-UifConstants.WorkflowActionenum indicating what workflow action to take
-
performWorkflowAction
void performWorkflowAction(DocumentFormBase form, UifConstants.WorkflowAction action, DocumentEvent documentEvent) Invokes theDocumentServiceto carry out a request workflow action and adds a success message, if requested a check for sensitive data is also performed.- Parameters:
form- document form instance containing the document for which the action will be taken onaction-UifConstants.WorkflowActionenum indicating what workflow action to takedocumentEvent- rule event instance that will be evaluated with the workflow action, only currently supported for the save action
-
performSuperUserWorkflowAction
void performSuperUserWorkflowAction(DocumentFormBase form, UifConstants.SuperUserWorkflowAction action) Invokes theDocumentServiceto carry out a super user request workflow action and adds a success message.- Parameters:
form- document form instance containing the document for which the super user action will be taken onaction-UifConstants.SuperUserWorkflowActionenum indicating what super user workflow action to take
-
performSuperUserWorkflowAction
void performSuperUserWorkflowAction(DocumentFormBase form, UifConstants.SuperUserWorkflowAction action, org.kuali.rice.kew.api.action.ActionRequest actionRequest) Invokes theDocumentServiceto carry out a super user request workflow action and adds a success message.- Parameters:
form- document form instance containing the document for which the super user action will be taken onaction-UifConstants.SuperUserWorkflowActionenum indicating what super user workflow action to takeactionRequest- the requested action to take, currenly only available for take action
-