public class JcrItemPropertySet extends Object implements com.vaadin.data.PropertySet<javax.jcr.Item>
JcrItemPropertySet.JcrPropertyDescriptor
. Supports both JCR nodes and properties.
In order to not clutter this class logic, the actual interaction with JCR items is
delegated to JcrItemInteractionStrategy
(provides separate implementation
for nodes and properties).Modifier and Type | Class and Description |
---|---|
static class |
JcrItemPropertySet.JcrPropertyDescriptor<T>
Jcr property descriptor.
|
Constructor and Description |
---|
JcrItemPropertySet(List<JcrItemPropertySet.JcrPropertyDescriptor> knownProperties,
I18NAuthoringSupport<javax.jcr.Item> genericLocalisationSupport) |
JcrItemPropertySet(List<JcrItemPropertySet.JcrPropertyDescriptor> knownProperties,
Locale locale,
I18NAuthoringSupport<javax.jcr.Item> genericLocalisationSupport) |
JcrItemPropertySet(List<JcrItemPropertySet.JcrPropertyDescriptor> knownProperties,
Locale locale,
I18NAuthoringSupport<javax.jcr.Item> genericLocalisationSupport,
WithPropertyNameDecorator.PropertyNameDecorator propertyNameDecorator) |
Modifier and Type | Method and Description |
---|---|
static <T> com.vaadin.data.PropertySet<javax.jcr.Item> |
fromColumns(List<ColumnDefinition<T>> columnDefinitions)
Deprecated.
since 6.2.4. Use
JcrItemPropertySet(java.util.List, info.magnolia.ui.api.i18n.I18NAuthoringSupport) instead. |
static com.vaadin.data.PropertySet<javax.jcr.Item> |
fromFieldDefinitions(Collection<FieldDefinition> fieldDefinitions,
Locale locale)
Initialise JCR property set based on list of field definitions definitions.
|
Stream<com.vaadin.data.PropertyDefinition<javax.jcr.Item,?>> |
getProperties() |
Optional<com.vaadin.data.PropertyDefinition<javax.jcr.Item,?>> |
getProperty(String name) |
static JcrItemPropertySet |
withProperties(Map<String,Class> properties)
Deprecated.
since 6.2.4. Use
JcrItemPropertySet(java.util.List, info.magnolia.ui.api.i18n.I18NAuthoringSupport) instead. |
public JcrItemPropertySet(List<JcrItemPropertySet.JcrPropertyDescriptor> knownProperties, I18NAuthoringSupport<javax.jcr.Item> genericLocalisationSupport)
public JcrItemPropertySet(List<JcrItemPropertySet.JcrPropertyDescriptor> knownProperties, Locale locale, I18NAuthoringSupport<javax.jcr.Item> genericLocalisationSupport)
public JcrItemPropertySet(List<JcrItemPropertySet.JcrPropertyDescriptor> knownProperties, Locale locale, I18NAuthoringSupport<javax.jcr.Item> genericLocalisationSupport, WithPropertyNameDecorator.PropertyNameDecorator propertyNameDecorator)
@Deprecated public static JcrItemPropertySet withProperties(Map<String,Class> properties)
JcrItemPropertySet(java.util.List, info.magnolia.ui.api.i18n.I18NAuthoringSupport)
instead.properties
- property names mapped to their respective types@Deprecated public static <T> com.vaadin.data.PropertySet<javax.jcr.Item> fromColumns(List<ColumnDefinition<T>> columnDefinitions)
JcrItemPropertySet(java.util.List, info.magnolia.ui.api.i18n.I18NAuthoringSupport)
instead.columnDefinitions
- list of column definitions used as property set sourcepublic static com.vaadin.data.PropertySet<javax.jcr.Item> fromFieldDefinitions(Collection<FieldDefinition> fieldDefinitions, Locale locale)
fieldDefinitions
- list of column definitions used as property set sourcepublic Stream<com.vaadin.data.PropertyDefinition<javax.jcr.Item,?>> getProperties()
getProperties
in interface com.vaadin.data.PropertySet<javax.jcr.Item>
Copyright © 2021 Magnolia International Ltd.. All rights reserved.