public class UserCSVUploadGet extends DeclarativeSpreadsheetWebScript
DeclarativeSpreadsheetWebScript.WriteExcel
dictionaryService, filenameBase, MODEL_CSV, MODEL_EXCEL, PARAM_REQ_DELIMITER
Constructor and Description |
---|
UserCSVUploadGet() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowHtmlFallback()
We have a HTML version
|
protected List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,Boolean>> |
buildPropertiesForHeader(Object resource,
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 Object |
identifyResource(String format,
org.springframework.extensions.webscripts.WebScriptRequest req)
We don't have a resource
|
protected void |
populateBody(Object resource,
org.apache.commons.csv.CSVPrinter csv,
List<org.alfresco.service.namespace.QName> properties)
Populates the body of the CSV file, once the header has been
output.
|
protected void |
populateBody(Object resource,
org.apache.poi.ss.usermodel.Workbook workbook,
org.apache.poi.ss.usermodel.Sheet sheet,
List<org.alfresco.service.namespace.QName> properties)
Populates the body of the Excel Workbook, once the header has been
output.
|
createTemplateParameters, executeImpl, generateSpreadsheet, getCsvStrategy, setCsvStrategy, 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 Object identifyResource(String format, org.springframework.extensions.webscripts.WebScriptRequest req)
identifyResource
in class DeclarativeSpreadsheetWebScript
protected List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,Boolean>> buildPropertiesForHeader(Object resource, String format, org.springframework.extensions.webscripts.WebScriptRequest req)
DeclarativeSpreadsheetWebScript
buildPropertiesForHeader
in class DeclarativeSpreadsheetWebScript
protected void populateBody(Object resource, org.apache.commons.csv.CSVPrinter csv, List<org.alfresco.service.namespace.QName> properties) throws IOException
DeclarativeSpreadsheetWebScript
populateBody
in class DeclarativeSpreadsheetWebScript
IOException
protected void populateBody(Object resource, org.apache.poi.ss.usermodel.Workbook workbook, org.apache.poi.ss.usermodel.Sheet sheet, List<org.alfresco.service.namespace.QName> properties) throws IOException
DeclarativeSpreadsheetWebScript
populateBody
in class DeclarativeSpreadsheetWebScript
IOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.