public abstract class AbstractTemplateDirective extends Object implements freemarker.template.TemplateDirectiveModel
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
protected String |
urlPrefix |
| Constructor and Description |
|---|
AbstractTemplateDirective() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
encode(String string)
Encodes the given string, so that it can be used within an HTML page.
|
protected javax.servlet.http.HttpServletRequest |
getRequest(freemarker.core.Environment env) |
protected String |
getToolbarLocation(freemarker.core.Environment env)
Determins the location of the toolbar
|
protected String |
getWebEditorUrlPrefix(freemarker.core.Environment env)
Returns the URL prefix for the web editor application.
|
protected boolean |
isDebugEnabled(freemarker.core.Environment env)
Determines whether debug is enabled for the web editor application
|
protected boolean |
isEditingEnabled(freemarker.core.Environment env)
Determines whether editing is currently enabled
|
public static final long serialVersionUID
protected String urlPrefix
protected javax.servlet.http.HttpServletRequest getRequest(freemarker.core.Environment env)
throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelExceptionprotected boolean isEditingEnabled(freemarker.core.Environment env)
throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelExceptionprotected String getWebEditorUrlPrefix(freemarker.core.Environment env) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelExceptionprotected boolean isDebugEnabled(freemarker.core.Environment env)
throws freemarker.template.TemplateModelException
This is the value of the debug init parameter of the Web
Editor filter definition in web.xml. If the init parameter is not present
false will be returned.
freemarker.template.TemplateModelExceptionprotected String getToolbarLocation(freemarker.core.Environment env) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelExceptionCopyright © 2005–2014 Alfresco Software. All rights reserved.