public class DataListDownloadWebScript extends DeclarativeSpreadsheetWebScript implements org.springframework.beans.factory.InitializingBean
DeclarativeSpreadsheetWebScript.WriteExceldictionaryService, filenameBase, MODEL_CSV, MODEL_EXCEL| Constructor and Description |
|---|
DataListDownloadWebScript() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected boolean |
allowHtmlFallback()
We don't have a HTML version
|
protected List<Pair<org.alfresco.service.namespace.QName,Boolean>> |
buildPropertiesForHeader(Object resource,
String format,
org.springframework.extensions.webscripts.WebScriptRequest req)
Fetch the properties, in the requested order, from
the data list definition
|
protected Object |
identifyResource(String format,
org.springframework.extensions.webscripts.WebScriptRequest req)
Identify the datalist
|
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.
|
void |
setModelOrder(Map<String,String> rawModelOrder) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeService(NodeService nodeService) |
void |
setSiteService(SiteService siteService) |
createTemplateParameters, executeImpl, generateSpreadsheet, 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, toStringpublic void setNodeService(NodeService nodeService)
nodeService - public void setSiteService(SiteService siteService)
nodeService - public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService - public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionprotected Object identifyResource(String format, org.springframework.extensions.webscripts.WebScriptRequest req)
identifyResource in class DeclarativeSpreadsheetWebScriptprotected boolean allowHtmlFallback()
allowHtmlFallback in class DeclarativeSpreadsheetWebScriptprotected List<Pair<org.alfresco.service.namespace.QName,Boolean>> buildPropertiesForHeader(Object resource, String format, org.springframework.extensions.webscripts.WebScriptRequest req)
buildPropertiesForHeader 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–2014 Alfresco Software. All rights reserved.