public class UserCSVUploadGet extends DeclarativeSpreadsheetWebScript
DeclarativeSpreadsheetWebScript.WriteExcel
dictionaryService, filenameBase, MODEL_CSV, MODEL_EXCEL
Constructor and Description |
---|
UserCSVUploadGet() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowHtmlFallback()
We have a HTML version
|
protected java.util.List |
buildPropertiesForHeader(java.lang.Object resource,
java.lang.String format,
org.springframework.extensions.webscripts.WebScriptRequest req)
Returns the QNames of the model properties to be output in
the header, and if they're required or not
|
protected java.lang.Object |
identifyResource(java.lang.String format,
org.springframework.extensions.webscripts.WebScriptRequest req)
We don't have a resource
|
protected void |
populateBody(java.lang.Object resource,
org.apache.commons.csv.CSVPrinter csv,
java.util.List properties)
Populates the body of the CSV file, once the header has been
output.
|
protected void |
populateBody(java.lang.Object resource,
org.apache.poi.ss.usermodel.Workbook workbook,
org.apache.poi.ss.usermodel.Sheet sheet,
java.util.List properties)
Populates the body of the Excel Workbook, once the header has been
output.
|
createTemplateParameters, executeImpl, generateSpreadsheet, setDictionaryService
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
protected boolean allowHtmlFallback()
allowHtmlFallback
in class DeclarativeSpreadsheetWebScript
protected java.lang.Object identifyResource(java.lang.String format, org.springframework.extensions.webscripts.WebScriptRequest req)
identifyResource
in class DeclarativeSpreadsheetWebScript
protected java.util.List buildPropertiesForHeader(java.lang.Object resource, java.lang.String format, org.springframework.extensions.webscripts.WebScriptRequest req)
DeclarativeSpreadsheetWebScript
buildPropertiesForHeader
in class DeclarativeSpreadsheetWebScript
protected void populateBody(java.lang.Object resource, org.apache.commons.csv.CSVPrinter csv, java.util.List properties) throws java.io.IOException
DeclarativeSpreadsheetWebScript
populateBody
in class DeclarativeSpreadsheetWebScript
java.io.IOException
protected void populateBody(java.lang.Object resource, org.apache.poi.ss.usermodel.Workbook workbook, org.apache.poi.ss.usermodel.Sheet sheet, java.util.List properties) throws java.io.IOException
DeclarativeSpreadsheetWebScript
populateBody
in class DeclarativeSpreadsheetWebScript
java.io.IOException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.