Interface TableHttpExporter
-
- All Known Implementing Classes:
CSVHttpExporter
,StandardHttpExporter
,TabHttpExporter
public interface TableHttpExporter
Implemented by objects that can export PagedTable.- Author:
- Kim Rutherford
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canExport(PagedTable pt)
Check if this TableExporter can export the given PagedTable.void
export(PagedTable pt, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, TableExportForm form, java.util.Collection<Path> unionPathCollection, java.util.Collection<Path> newPathCollection)
Method called to export a PagedTable objectjava.util.List<Path>
getInitialExportPaths(PagedTable pt)
Return a list of the Paths to show the user as initial export columns or header contents.
-
-
-
Method Detail
-
export
void export(PagedTable pt, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, TableExportForm form, java.util.Collection<Path> unionPathCollection, java.util.Collection<Path> newPathCollection)
Method called to export a PagedTable object- Parameters:
pt
- exported PagedTablerequest
- The HTTP request we are processingresponse
- The HTTP response we are creatingform
- the form containing the columns paths to exportunionPathCollection
- a collection of Path combining old and new views from pathquerynewPathCollection
- a collection of Path, from user columns paths
-
canExport
boolean canExport(PagedTable pt)
Check if this TableExporter can export the given PagedTable.- Parameters:
pt
- the PagedTable- Returns:
- true if and only if this TableExporter can export the argument PagedTable
-
getInitialExportPaths
java.util.List<Path> getInitialExportPaths(PagedTable pt) throws PathException
Return a list of the Paths to show the user as initial export columns or header contents. The List is likely to be based on the columns of the PagedTable plus or minus special cases for this exporter.- Parameters:
pt
- the PagedTable- Returns:
- the Paths
- Throws:
PathException
- if bad path encountered
-
-