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)
Initialise JCR property set based on list of column definitions.
|
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)
Initialise JCR property set based on a simple map of
property names mapped to their types.
|
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)
public static JcrItemPropertySet withProperties(Map<String,Class> properties)
properties
- property names mapped to their respective typespublic static <T> com.vaadin.data.PropertySet<javax.jcr.Item> fromColumns(List<ColumnDefinition<T>> columnDefinitions)
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 © 2020 Magnolia International Ltd.. All rights reserved.