public class DataListDownloadWebScript extends DeclarativeSpreadsheetWebScript implements org.springframework.beans.factory.InitializingBean
DeclarativeSpreadsheetWebScript.WriteExcel
dictionaryService, 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 java.util.List |
buildPropertiesForHeader(java.lang.Object resource,
java.lang.String format,
org.springframework.extensions.webscripts.WebScriptRequest req)
Fetch the properties, in the requested order, from
the data list definition
|
protected java.lang.Object |
identifyResource(java.lang.String format,
org.springframework.extensions.webscripts.WebScriptRequest req)
Identify the datalist
|
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.
|
void |
setModelOrder(java.util.Map rawModelOrder) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setSiteService(org.alfresco.service.cmr.site.SiteService siteService) |
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
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- public void setSiteService(org.alfresco.service.cmr.site.SiteService siteService)
nodeService
- public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService
- public void setModelOrder(java.util.Map rawModelOrder)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
protected java.lang.Object identifyResource(java.lang.String format, org.springframework.extensions.webscripts.WebScriptRequest req)
identifyResource
in class DeclarativeSpreadsheetWebScript
protected boolean allowHtmlFallback()
allowHtmlFallback
in class DeclarativeSpreadsheetWebScript
protected java.util.List buildPropertiesForHeader(java.lang.Object resource, java.lang.String format, org.springframework.extensions.webscripts.WebScriptRequest req)
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 - 2013 Alfresco Software, Inc. All Rights Reserved.