Package org.kuali.rice.krad.web.service
Interface FileControllerService
- All Known Implementing Classes:
FileControllerServiceImpl
public interface FileControllerService
Controller service that provides methods for working with the multi-file upload component.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.ModelAndViewaddFileUploadLine(UifFormBase form) Invoked by the multiFile upload element to add a file object to the collection it controls.org.springframework.web.servlet.ModelAndViewInvoked by the multiFile upload widget to delete a file; Inform the model of file to delete.voidgetFileFromLine(UifFormBase form, javax.servlet.http.HttpServletResponse response) Invoked by the multiFile upload widget to get the file contents for a file upload line.
-
Method Details
-
addFileUploadLine
Invoked by the multiFile upload element to add a file object to the collection it controls.- Parameters:
form- form instance containing the file data- Returns:
- ModelAndView instance for rendering the view
-
deleteFileUploadLine
Invoked by the multiFile upload widget to delete a file; Inform the model of file to delete.- Parameters:
form- form instance containing the file data- Returns:
- ModelAndView instance for rendering the view
-
getFileFromLine
Invoked by the multiFile upload widget to get the file contents for a file upload line.- Parameters:
form- form instance containing the file request dataresponse- Http response for streaming back the file contents
-