public abstract class ConfigurableFreemarkerDialog
extends info.magnolia.cms.gui.dialog.DialogBox
| path (required) | Path to freemarker template: will be loaded from classpath or from filesystem |
| multiple | true / false. This property gives support to multiple field values storage. |
| name | Dialog / field name |
| value | Field value (multiple = false) |
| values | field values (multiple = true) |
| request | current HttpServletRequest |
| configuration | Map of dialog configuration. This allows to pass to template complex dialog configuration. Eg.
-+ Dialog node
|-- property 1 = value 1
|-+ subnode1
| |-- property 11 = value 11
| |-- property 12 = value 12
| |-+ subnode 11
| |-- property 111 = value 111
|
|-- property 2 = value 2
The map will contain:
configuration = Map {
"property1" = "value1",
"subnode1" = Map {
"property11" = "value11",
"property12" = "value12",
"subnode11" = Map {
"property111" = "value111"
}
},
"property2" = "value2"
}
|
Similar to DialogFreemarker but with a fixed template, needed till MAGNOLIA-2175 is done
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
configuration
Map of dialog configuration.
|
protected org.slf4j.Logger |
log
Logger.
|
protected String |
uuid
Configuration node UUID.
|
| Constructor and Description |
|---|
ConfigurableFreemarkerDialog() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToParameters(Map<String,Object> parameters)
Can be implemented by subclasses in order to add parameters to the Map passed to freemarker.
|
void |
drawHtml(Writer out) |
protected abstract String |
getPath() |
protected Map<String,Object> |
getSubNodes(info.magnolia.cms.core.Content node)
Get a recursive map view of a content node
|
void |
init(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
info.magnolia.cms.core.Content websiteNode,
info.magnolia.cms.core.Content configNode) |
drawHtmlPost, drawHtmlPre, getBoxType, getHtmlDescription, setBoxTypeaddOption, addSub, clearWebsiteNode, drawHtmlPostSubs, drawHtmlPreSubs, drawSubs, getConfigValue, getConfigValue, getDescription, getId, getLabel, getMessage, getMessage, getMessages, getName, getOptions, getParent, getRequest, getResponse, getStorageNode, getSub, getSubs, getTopParent, getValidationPattern, getValue, getValues, getWebsiteNode, isRequired, readValue, readValues, removeSessionAttribute, setConfig, setConfig, setConfig, setDescription, setLabel, setName, setOptions, setRequired, setSaveInfo, setSessionAttribute, setTopParent, setValidationMessage, setValue, validateprotected org.slf4j.Logger log
protected String uuid
protected Map<String,Object> getSubNodes(info.magnolia.cms.core.Content node) throws javax.jcr.RepositoryException, info.magnolia.cms.security.AccessDeniedException
node - content nodejavax.jcr.RepositoryException - for any exception occurred while accessing the repositoryinfo.magnolia.cms.security.AccessDeniedException - if the current user can't read the configuration subnodespublic void init(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
info.magnolia.cms.core.Content websiteNode,
info.magnolia.cms.core.Content configNode)
throws javax.jcr.RepositoryException
init in interface info.magnolia.cms.gui.dialog.DialogControlinit in class info.magnolia.cms.gui.dialog.DialogControlImpljavax.jcr.RepositoryExceptionpublic void drawHtml(Writer out) throws IOException
drawHtml in interface info.magnolia.cms.gui.dialog.DialogControldrawHtml in class info.magnolia.cms.gui.dialog.DialogControlImplIOExceptionprotected void addToParameters(Map<String,Object> parameters)
parameters - parameter mapprotected abstract String getPath()
Copyright © 2008-2012 Openmind. All Rights Reserved.