Modifier and Type | Class and Description |
---|---|
static class |
CmdDoExport.ExportType
All export Types which can be used
|
Constructor and Description |
---|
CmdDoExport(CmdDoExport.ExportType exportType,
java.lang.String template)
Constructor of the Command
Needs at least the Export type, and the path to the template
|
CmdDoExport(java.lang.String template)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addDataModel(java.lang.String key,
AbsModel dataModel)
Adds a data model to merge with the Document
|
java.util.Map<java.lang.String,java.lang.Object> |
getDataModels() |
CmdDoExport.ExportType |
getExportType() |
java.io.File |
getOutputFile() |
java.lang.String |
getTemplateName() |
boolean |
isPromptUser()
set if the user should see a prompt message
|
void |
setExportType(CmdDoExport.ExportType exportType) |
void |
setOutputFile(java.io.File outputFile) |
void |
setPromptUser(boolean promptUser) |
void |
setTemplateName(java.lang.String templateName) |
public CmdDoExport(CmdDoExport.ExportType exportType, java.lang.String template)
exportType
- template
- the name of the Template Saved in /core/templatespublic CmdDoExport(java.lang.String template)
template
- the name of the Template Saved in /core/templatespublic CmdDoExport.ExportType getExportType()
public void setExportType(CmdDoExport.ExportType exportType)
public java.util.Map<java.lang.String,java.lang.Object> getDataModels()
public void addDataModel(java.lang.String key, AbsModel dataModel)
key
- the model namedataModel
- the datapublic java.lang.String getTemplateName()
public void setTemplateName(java.lang.String templateName)
public java.io.File getOutputFile()
public void setOutputFile(java.io.File outputFile)
public boolean isPromptUser()
public void setPromptUser(boolean promptUser)