|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.web.controller.UifControllerBase org.kuali.rice.krad.web.controller.UifExportController
@Controller @RequestMapping(value="/export") public class UifExportController
Controller that handles table export requests.
Constructor Summary | |
---|---|
UifExportController()
|
Method Summary | |
---|---|
protected UifFormBase |
createInitialForm(javax.servlet.http.HttpServletRequest request)
Retrieves the session form for the form key request parameter so we can initialize a form instance of the same type the view was rendered with. |
protected String |
getContentType(String formatType)
Reviews and returns a valid content type, defaults to text/csv. |
protected String |
getValidatedFormatType(String formatType)
Reviews and returns a valid format type, defaults to csv. |
protected String |
retrieveTableData(UifFormBase form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generates exportable table data based on the rich table selected. |
protected void |
setAttachmentResponseHeader(javax.servlet.http.HttpServletResponse response,
String filename,
String contentType)
Creates consistent setup of attachment response header. |
String |
tableCsvRetrieval(UifFormBase form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generates exportable table data as CSV based on the rich table selected. |
String |
tableXlsRetrieval(UifFormBase form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generates exportable table data in xsl based on the rich table selected. |
String |
tableXmlRetrieval(UifFormBase form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Generates exportable table data based on the rich table selected. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UifExportController()
Method Detail |
---|
protected UifFormBase createInitialForm(javax.servlet.http.HttpServletRequest request)
createInitialForm
in class UifControllerBase
request
- - the http request that was made@MethodAccessible @RequestMapping(method=GET, params="methodToCall=tableCsvRetrieval", produces="text/csv") @ResponseBody public String tableCsvRetrieval(@ModelAttribute(value="KualiForm") UifFormBase form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
@MethodAccessible @RequestMapping(method=GET, params="methodToCall=tableXlsRetrieval", produces="application/vnd.ms-excel") @ResponseBody public String tableXlsRetrieval(@ModelAttribute(value="KualiForm") UifFormBase form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
@MethodAccessible @RequestMapping(method=GET, params="methodToCall=tableXmlRetrieval", produces="application/xml") @ResponseBody public String tableXmlRetrieval(@ModelAttribute(value="KualiForm") UifFormBase form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected String retrieveTableData(@ModelAttribute(value="KualiForm") UifFormBase form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
First the lifecycle process is run to rebuild the collection group, then
TableExporter
is invoked to build the export data from
the collection.
protected void setAttachmentResponseHeader(javax.servlet.http.HttpServletResponse response, String filename, String contentType)
response
- http response objectfilename
- name of the return filecontentType
- return content typeprotected String getValidatedFormatType(String formatType)
formatType
- format type to validate
protected String getContentType(String formatType)
formatType
- format type to return content type for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |