Package | Description |
---|---|
info.magnolia.rendering.model | |
info.magnolia.templating.functions | |
info.magnolia.templating.jsp.cmsfn |
This file Copyright (c) 2011-2018 Magnolia International
Ltd.
|
Modifier and Type | Field and Description |
---|---|
protected ContentMap |
RenderingModelImpl.contentMap |
Modifier and Type | Method and Description |
---|---|
ContentMap |
RenderingModel.getContent()
Map representation of the content node tied to this model.
|
ContentMap |
RenderingModelImpl.getContent() |
Modifier and Type | Method and Description |
---|---|
ContentMap |
TemplatingFunctions.asContentMap(javax.jcr.Node content)
Return the equivalent contentMap for the provided node object.
|
ContentMap |
TemplatingFunctions.contentById(String id)
Return the ContentMap by the given identifier from the website repository.
|
ContentMap |
TemplatingFunctions.contentById(String id,
String workspace)
Return the ContentMap by the given identifier from the given repository.
|
ContentMap |
TemplatingFunctions.contentByPath(String path)
Return the ContentMap for the given path from the website repository.
|
ContentMap |
TemplatingFunctions.contentByPath(String path,
String workspace)
Return the ContentMap for the given path from the given repository.
|
ContentMap |
TemplatingFunctions.contentByReference(ContentMap content,
String idPropertyName,
String referencedWorkspace)
See
TemplatingFunctions.contentByReference(Node, String, String) for details. |
ContentMap |
TemplatingFunctions.decode(ContentMap content)
Removes escaping of HTML on properties.
|
ContentMap |
TemplatingFunctions.encode(ContentMap content)
Adds escaping of HTML on properties as well as changing line breaks into <br/> tags.
|
ContentMap |
TemplatingFunctions.inherit(ContentMap content)
See
TemplatingFunctions.inherit(Node) for details. |
ContentMap |
TemplatingFunctions.inherit(ContentMap content,
String relPath)
See
TemplatingFunctions.inherit(Node, String) for details. |
ContentMap |
TemplatingFunctions.inherit(ContentMap content,
String relPath,
String nodeTypes,
String nodeInheritance,
String propertyInheritance)
See
TemplatingFunctions.inherit(Node, String, String, String, String) for details. |
ContentMap |
TemplatingFunctions.page(ContentMap content)
Returns the page's
ContentMap of the passed ContentMap . |
ContentMap |
TemplatingFunctions.parent(ContentMap contentMap)
See
TemplatingFunctions.parent(Node) for details. |
ContentMap |
TemplatingFunctions.parent(ContentMap contentMap,
String nodeTypeName)
See
TemplatingFunctions.parent(Node, String) for details. |
ContentMap |
TemplatingFunctions.parentWithTemplateType(ContentMap page,
String templateType)
|
ContentMap |
TemplatingFunctions.root(ContentMap contentMap)
See
TemplatingFunctions.root(Node) for details. |
ContentMap |
TemplatingFunctions.root(ContentMap contentMap,
String nodeTypeName)
See
TemplatingFunctions.root(Node, String) for details. |
ContentMap |
TemplatingFunctions.siteRoot(ContentMap content)
See
TemplatingFunctions.siteRoot(Node) for details.. |
ContentMap |
TemplatingFunctions.siteRoot(ContentMap content,
String siteRootTemplateType)
See
TemplatingFunctions.siteRoot(Node, String) for details. |
ContentMap |
TemplatingFunctions.wrapForI18n(ContentMap content)
Wraps content into
I18nNodeWrapper so properties are in visitor's language. |
Modifier and Type | Method and Description |
---|---|
List<ContentMap> |
TemplatingFunctions.ancestors(ContentMap contentMap)
See
TemplatingFunctions.ancestors(Node) for details. |
List<ContentMap> |
TemplatingFunctions.ancestors(ContentMap contentMap,
String nodeTypeName)
See
TemplatingFunctions.ancestors(Node, String) for details. |
List<ContentMap> |
TemplatingFunctions.asContentMapList(Collection<javax.jcr.Node> nodeList)
Returns a List of
ContentMap objects for the provided collection of Node objects. |
protected List<ContentMap> |
TemplatingFunctions.asContentMapList(Iterable<javax.jcr.Node> nodes) |
List<ContentMap> |
TemplatingFunctions.children(ContentMap content)
Returns the child nodes of the provided contentMap - as a list of ContentMaps.
|
List<ContentMap> |
TemplatingFunctions.children(ContentMap content,
String nodeTypeName)
Returns the child nodes of the the provided contentMap of a specific nodeType - as a list of ContentMaps.
|
List<ContentMap> |
TemplatingFunctions.contentListByTemplateIds(ContentMap searchRoot,
Set<String> templateIds,
int maxResultSize,
String andClause,
String orderByClause)
|
List<ContentMap> |
TemplatingFunctions.contentListByTemplateType(ContentMap siteRoot,
String templateType,
String templateSubtype)
|
List<ContentMap> |
TemplatingFunctions.contentListByTemplateType(ContentMap searchRoot,
String templateType,
String templateSubtype,
int maxResultSize,
String andClause,
String orderByClause)
|
List<ContentMap> |
TemplatingFunctions.inheritList(ContentMap content,
String relPath)
Returns the children of the wrapped-for-inheritance subnode obtained as in
TemplatingFunctions.inherit(Node, String) . |
Modifier and Type | Method and Description |
---|---|
List<ContentMap> |
TemplatingFunctions.ancestors(ContentMap contentMap)
See
TemplatingFunctions.ancestors(Node) for details. |
List<ContentMap> |
TemplatingFunctions.ancestors(ContentMap contentMap,
String nodeTypeName)
See
TemplatingFunctions.ancestors(Node, String) for details. |
javax.jcr.Node |
TemplatingFunctions.asJCRNode(ContentMap contentMap)
Return the equivalent jcr node object for the provided contentMap.
|
List<ContentMap> |
TemplatingFunctions.children(ContentMap content)
Returns the child nodes of the provided contentMap - as a list of ContentMaps.
|
List<ContentMap> |
TemplatingFunctions.children(ContentMap content,
String nodeTypeName)
Returns the child nodes of the the provided contentMap of a specific nodeType - as a list of ContentMaps.
|
ContentMap |
TemplatingFunctions.contentByReference(ContentMap content,
String idPropertyName,
String referencedWorkspace)
See
TemplatingFunctions.contentByReference(Node, String, String) for details. |
List<ContentMap> |
TemplatingFunctions.contentListByTemplateIds(ContentMap searchRoot,
Set<String> templateIds,
int maxResultSize,
String andClause,
String orderByClause)
|
List<ContentMap> |
TemplatingFunctions.contentListByTemplateType(ContentMap siteRoot,
String templateType,
String templateSubtype)
|
List<ContentMap> |
TemplatingFunctions.contentListByTemplateType(ContentMap searchRoot,
String templateType,
String templateSubtype,
int maxResultSize,
String andClause,
String orderByClause)
|
ContentMap |
TemplatingFunctions.decode(ContentMap content)
Removes escaping of HTML on properties.
|
ContentMap |
TemplatingFunctions.encode(ContentMap content)
Adds escaping of HTML on properties as well as changing line breaks into <br/> tags.
|
String |
TemplatingFunctions.externalLink(ContentMap content,
String linkPropertyName)
Returns an external link prepended with
http:// in case the protocol is missing or an empty String
if the link does not exist. |
String |
TemplatingFunctions.externalLinkTitle(ContentMap content,
String linkPropertyName,
String linkTitlePropertyName)
Return a link title based on the @param linkTitlePropertyName.
|
boolean |
TemplatingFunctions.hasTemplateOfType(ContentMap page,
String templateType)
See
TemplatingFunctions.hasTemplateOfType(Node, String) for details. |
ContentMap |
TemplatingFunctions.inherit(ContentMap content)
See
TemplatingFunctions.inherit(Node) for details. |
ContentMap |
TemplatingFunctions.inherit(ContentMap content,
String relPath)
See
TemplatingFunctions.inherit(Node, String) for details. |
ContentMap |
TemplatingFunctions.inherit(ContentMap content,
String relPath,
String nodeTypes,
String nodeInheritance,
String propertyInheritance)
See
TemplatingFunctions.inherit(Node, String, String, String, String) for details. |
List<ContentMap> |
TemplatingFunctions.inheritList(ContentMap content,
String relPath)
Returns the children of the wrapped-for-inheritance subnode obtained as in
TemplatingFunctions.inherit(Node, String) . |
javax.jcr.Property |
TemplatingFunctions.inheritProperty(ContentMap content,
String relPath)
See
TemplatingFunctions.inheritProperty(Node, String) for details. |
boolean |
TemplatingFunctions.isFromCurrentPage(ContentMap content)
See
TemplatingFunctions.isFromCurrentPage(Node) for details. |
boolean |
TemplatingFunctions.isInherited(ContentMap content)
See
TemplatingFunctions.isInherited(Node) for details. |
String |
TemplatingFunctions.link(ContentMap contentMap)
See
TemplatingFunctions.link(Node) for details. |
String |
TemplatingFunctions.linkPrefix(ContentMap content)
See
TemplatingFunctions.linkPrefix(Node) for details. |
String |
TemplatingFunctions.metaData(ContentMap content,
String property)
See
TemplatingFunctions.metaData(Node, String) for details. |
ContentMap |
TemplatingFunctions.page(ContentMap content)
Returns the page's
ContentMap of the passed ContentMap . |
ContentMap |
TemplatingFunctions.parent(ContentMap contentMap)
See
TemplatingFunctions.parent(Node) for details. |
ContentMap |
TemplatingFunctions.parent(ContentMap contentMap,
String nodeTypeName)
See
TemplatingFunctions.parent(Node, String) for details. |
ContentMap |
TemplatingFunctions.parentWithTemplateType(ContentMap page,
String templateType)
|
ContentMap |
TemplatingFunctions.root(ContentMap contentMap)
See
TemplatingFunctions.root(Node) for details. |
ContentMap |
TemplatingFunctions.root(ContentMap contentMap,
String nodeTypeName)
See
TemplatingFunctions.root(Node, String) for details. |
SiblingsHelper |
TemplatingFunctions.siblings(ContentMap node) |
ContentMap |
TemplatingFunctions.siteRoot(ContentMap content)
See
TemplatingFunctions.siteRoot(Node) for details.. |
ContentMap |
TemplatingFunctions.siteRoot(ContentMap content,
String siteRootTemplateType)
See
TemplatingFunctions.siteRoot(Node, String) for details. |
String |
TemplatingFunctions.templateSubtype(ContentMap page)
See
TemplatingFunctions.templateSubtype(Node) for details. |
String |
TemplatingFunctions.templateType(ContentMap page)
|
ContentMap |
TemplatingFunctions.wrapForI18n(ContentMap content)
Wraps content into
I18nNodeWrapper so properties are in visitor's language. |
Modifier and Type | Method and Description |
---|---|
List<javax.jcr.Node> |
TemplatingFunctions.asNodeList(Collection<ContentMap> contentMapList)
Returns a List of
Node objects for the provided collection of ContentMap objects. |
Modifier and Type | Method and Description |
---|---|
static ContentMap |
JspTemplatingFunction.asContentMap(javax.jcr.Node content) |
static ContentMap |
JspTemplatingFunction.decode(ContentMap content)
Removes escaping of HTML on properties.
|
static ContentMap |
JspTemplatingFunction.inherit(ContentMap content,
String relPath) |
static ContentMap |
JspTemplatingFunction.inherit(ContentMap content,
String relPath,
String nodeTypes,
String nodeInheritance,
String propertyInheritance) |
static ContentMap |
JspTemplatingFunction.page(ContentMap content)
Returns the page's
ContentMap of the passed ContentMap . |
static ContentMap |
JspTemplatingFunction.parent(ContentMap contentMap,
String nodeTypeName) |
static ContentMap |
JspTemplatingFunction.root(ContentMap contentMap,
String nodeTypeName) |
Modifier and Type | Method and Description |
---|---|
static List<ContentMap> |
JspTemplatingFunction.ancestors(ContentMap contentMap,
String nodeTypeName) |
static List<ContentMap> |
JspTemplatingFunction.asContentMapList(Collection<javax.jcr.Node> nodeList) |
static List<ContentMap> |
JspTemplatingFunction.children(ContentMap content,
String nodeTypeName) |
static List<ContentMap> |
JspTemplatingFunction.inheritList(ContentMap content,
String relPath) |
Modifier and Type | Method and Description |
---|---|
static List<ContentMap> |
JspTemplatingFunction.ancestors(ContentMap contentMap,
String nodeTypeName) |
static javax.jcr.Node |
JspTemplatingFunction.asJCRNode(ContentMap contentMap) |
static List<ContentMap> |
JspTemplatingFunction.children(ContentMap content,
String nodeTypeName) |
static ContentMap |
JspTemplatingFunction.decode(ContentMap content)
Removes escaping of HTML on properties.
|
static String |
JspTemplatingFunction.externalLink(ContentMap content,
String linkPropertyName)
Returns an external link prepended with
http:// in case the protocol is missing or an empty String
if the link does not exist. |
static String |
JspTemplatingFunction.externalLinkTitle(ContentMap content,
String linkPropertyName,
String linkTitlePropertyName)
Return a link title based on the @param linkTitlePropertyName.
|
static ContentMap |
JspTemplatingFunction.inherit(ContentMap content,
String relPath) |
static ContentMap |
JspTemplatingFunction.inherit(ContentMap content,
String relPath,
String nodeTypes,
String nodeInheritance,
String propertyInheritance) |
static List<ContentMap> |
JspTemplatingFunction.inheritList(ContentMap content,
String relPath) |
static javax.jcr.Property |
JspTemplatingFunction.inheritProperty(ContentMap content,
String relPath) |
static boolean |
JspTemplatingFunction.isFromCurrentPage(ContentMap content) |
static boolean |
JspTemplatingFunction.isInherited(ContentMap content) |
static String |
JspTemplatingFunction.link(ContentMap contentMap) |
static String |
JspTemplatingFunction.link(ContentMap contentMap,
String propertyName) |
static String |
JspTemplatingFunction.metaData(ContentMap content,
String property)
Returns the string representation of a property from the metaData of the node or
null if the node has no Magnolia metaData or if no matching property is found. |
static ContentMap |
JspTemplatingFunction.page(ContentMap content)
Returns the page's
ContentMap of the passed ContentMap . |
static ContentMap |
JspTemplatingFunction.parent(ContentMap contentMap,
String nodeTypeName) |
static ContentMap |
JspTemplatingFunction.root(ContentMap contentMap,
String nodeTypeName) |
static SiblingsHelper |
JspTemplatingFunction.siblings(ContentMap node)
Returns an instance of SiblingsHelper for the given contentMap.
|
Modifier and Type | Method and Description |
---|---|
static List<javax.jcr.Node> |
JspTemplatingFunction.asNodeList(Collection<ContentMap> contentMapList) |
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.