D
- concrete definition type stemming from JcrChildNodeProviderDefinition
public class JcrChildNodeProvider<D extends JcrChildNodeProviderDefinition> extends Object implements ItemProviderStrategy.WithSameTypeReference<javax.jcr.Node>
item provider strategy
to be available in the context.
Sub-node name is resolved via JcrChildNodeProviderDefinition#getNodeName()
with a fallback to the related property
name value in case the former is empty.ItemProviderStrategy.WithSameTypeReference<T>
Modifier and Type | Field and Description |
---|---|
protected ComplexPropertyDefinition<javax.jcr.Node> |
associatedPropertyDefinition |
protected D |
definition |
protected I18NAuthoringSupport<javax.jcr.Node> |
i18NAuthoringSupport |
Constructor and Description |
---|
JcrChildNodeProvider(D definition,
ComplexPropertyDefinition<javax.jcr.Node> associatedPropertyDefinition,
I18NAuthoringSupport<javax.jcr.Node> i18NAuthoringSupport) |
Modifier and Type | Method and Description |
---|---|
protected String |
constructLocalisedSubNodeName(javax.jcr.Node referenceNode,
String nonLocalisedSubNodeName,
Locale targetLocale) |
protected String |
constructTargetSubNodeName(javax.jcr.Node referenceNode,
Locale locale) |
protected Optional<javax.jcr.Node> |
getSubNode(javax.jcr.Node parentNode,
String subNodeName) |
protected String |
getSubNodeNameBase() |
Optional<javax.jcr.Node> |
read(javax.jcr.Node referenceNode) |
Optional<javax.jcr.Node> |
read(javax.jcr.Node parent,
Locale locale) |
protected String |
resolveTargetNodeType() |
protected final I18NAuthoringSupport<javax.jcr.Node> i18NAuthoringSupport
protected final ComplexPropertyDefinition<javax.jcr.Node> associatedPropertyDefinition
protected final D extends JcrChildNodeProviderDefinition definition
@Inject public JcrChildNodeProvider(D definition, ComplexPropertyDefinition<javax.jcr.Node> associatedPropertyDefinition, I18NAuthoringSupport<javax.jcr.Node> i18NAuthoringSupport)
public Optional<javax.jcr.Node> read(javax.jcr.Node referenceNode)
read
in interface ItemProviderStrategy<javax.jcr.Node,javax.jcr.Node>
public Optional<javax.jcr.Node> read(javax.jcr.Node parent, Locale locale)
read
in interface ItemProviderStrategy<javax.jcr.Node,javax.jcr.Node>
protected Optional<javax.jcr.Node> getSubNode(javax.jcr.Node parentNode, String subNodeName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected String constructTargetSubNodeName(javax.jcr.Node referenceNode, Locale locale)
protected String constructLocalisedSubNodeName(javax.jcr.Node referenceNode, String nonLocalisedSubNodeName, Locale targetLocale)
protected String getSubNodeNameBase()
protected String resolveTargetNodeType()
Copyright © 2021 Magnolia International Ltd.. All rights reserved.