public class DelegatingMultiValueSubnodeTransformer extends DelegatingMultiValueFieldTransformer
Transformer
is dedicated to the MultiField
;
it considers entries as child nodes of a sub-node (named after the field) and delegates property handling to their respective sub-fields.
The storage strategy is that of the MultiValueSubChildrenNodePropertiesTransformer
:
childNodeType, subItemBaseName
basePropertyName, definition, i18NPropertyName, relatedFormItem, type
Constructor and Description |
---|
DelegatingMultiValueSubnodeTransformer(com.vaadin.v7.data.Item relatedFormItem,
ConfiguredFieldDefinition definition,
Class<com.vaadin.v7.data.util.PropertysetItem> type,
info.magnolia.ui.api.i18n.I18NAuthoringSupport i18NAuthoringSupport) |
Modifier and Type | Method and Description |
---|---|
protected String |
getChildNodeName() |
protected JcrNodeAdapter |
getRootItem()
Overridden to get an intermediate child node where the multiple nodes are stored, rather than directly under the root node.
|
protected List<javax.jcr.Node> |
getStoredChildNodes(JcrNodeAdapter parent)
Fetches child nodes of the given parent from JCR, filtered using the
NodeUtil.MAGNOLIA_FILTER predicate. |
protected String |
getSubItemBaseName()
Overridden to keep only the digit part in child-node names.
|
childItemRegexRepresentation, createNewItemName, createProperty, getBasePropertyName, getChildItemNames, incrementRegexRepresentation, populateStoredChildItems, readFromItem, removeProperty, setI18NPropertyName, setLocale, writeToItem
definePropertyName, deriveLocaleAwareName, getI18NAuthoringSupport, getLocale, getOrCreateProperty, getOrCreateProperty, getRelatedFormItem, getType, hasI18NSupport, isReadOnly, setReadOnly, setType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType, hasI18NSupport, isReadOnly, setReadOnly
public DelegatingMultiValueSubnodeTransformer(com.vaadin.v7.data.Item relatedFormItem, ConfiguredFieldDefinition definition, Class<com.vaadin.v7.data.util.PropertysetItem> type, info.magnolia.ui.api.i18n.I18NAuthoringSupport i18NAuthoringSupport)
protected String getSubItemBaseName()
getSubItemBaseName
in class DelegatingMultiValueFieldTransformer
protected JcrNodeAdapter getRootItem()
The child node is created if it doesn't exist, and is named after the multi-value field definition.
getRootItem
in class DelegatingMultiValueFieldTransformer
protected List<javax.jcr.Node> getStoredChildNodes(JcrNodeAdapter parent)
DelegatingMultiValueFieldTransformer
NodeUtil.MAGNOLIA_FILTER
predicate.getStoredChildNodes
in class DelegatingMultiValueFieldTransformer
protected String getChildNodeName()
Copyright © 2020 Magnolia International Ltd.. All rights reserved.