public class UserCSVUploadGet extends DeclarativeSpreadsheetWebScript
DeclarativeSpreadsheetWebScript.WriteExceldictionaryService, 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, setDictionaryServiceexecute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplateaddModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toStringprotected boolean allowHtmlFallback()
allowHtmlFallback in class DeclarativeSpreadsheetWebScriptprotected Object identifyResource(String format, org.springframework.extensions.webscripts.WebScriptRequest req)
identifyResource in class DeclarativeSpreadsheetWebScriptprotected List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,Boolean>> buildPropertiesForHeader(Object resource, String format, org.springframework.extensions.webscripts.WebScriptRequest req)
DeclarativeSpreadsheetWebScriptbuildPropertiesForHeader in class DeclarativeSpreadsheetWebScriptprotected void populateBody(Object resource, org.apache.commons.csv.CSVPrinter csv, List<org.alfresco.service.namespace.QName> properties) throws IOException
DeclarativeSpreadsheetWebScriptpopulateBody in class DeclarativeSpreadsheetWebScriptIOExceptionprotected 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
DeclarativeSpreadsheetWebScriptpopulateBody in class DeclarativeSpreadsheetWebScriptIOExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.