Class ContentTreeDirective.DirectiveContext
java.lang.Object
ch.tocco.nice2.dms.impl.freemarker.ContentTreeDirective.DirectiveContext
- Enclosing class:
ContentTreeDirective
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected final class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final freemarker.template.TemplateDirectiveBody
protected final freemarker.core.Environment
protected Boolean
protected Optional
<ContentTreeNode> protected final Map
protected Boolean
protected Boolean
protected Boolean
protected Optional
<ContentTreeNode> protected String
-
Constructor Summary
ConstructorDescriptionDirectiveContext
(freemarker.core.Environment env, Map params, freemarker.template.TemplateDirectiveBody body) -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional
<ContentTreeNode> getContentTreeNode
(@Nullable String nodeParam, @Nullable Entity nodeEntityParam, Boolean topLevel) protected Boolean
getNode()
protected String
void
handleChildren
(List<ContentTreeNode> nodes, int level, freemarker.core.Environment env) boolean
protected void
setup()
-
Field Details
-
env
protected final freemarker.core.Environment env -
params
-
body
protected final freemarker.template.TemplateDirectiveBody body -
node
-
recursive
-
typeParam
-
provideLeafVariable
-
renderAfterRecursive
-
requestNode
-
-
Constructor Details
-
DirectiveContext
public DirectiveContext(freemarker.core.Environment env, Map params, freemarker.template.TemplateDirectiveBody body) throws ParameterException, freemarker.template.TemplateException - Throws:
ParameterException
freemarker.template.TemplateException
-
-
Method Details
-
isNodePresent
public boolean isNodePresent() -
getNode
-
getTypeParam
-
handleChildren
public void handleChildren(List<ContentTreeNode> nodes, int level, freemarker.core.Environment env) throws freemarker.template.TemplateException, PersistException, IOException - Throws:
freemarker.template.TemplateException
PersistException
IOException
-
setup
- Throws:
ParameterException
freemarker.template.TemplateException
-
getContentTreeNode
protected Optional<ContentTreeNode> getContentTreeNode(@Nullable @Nullable String nodeParam, @Nullable @Nullable Entity nodeEntityParam, Boolean topLevel) throws freemarker.template.TemplateException - Throws:
freemarker.template.TemplateException
-
getPathForNode
-