The Magnolia 5 UI field transformer classes for fields no longer exist in the Magnolia 6 UI framework. The transformer functionality is now distributed among different components. The following is a summary of the features the components do:
- Modify the target property name, by appending a locale suffix or by prepending a composite field prefix. This is now done by concrete
PropertySet
implementations (JcrItemPropertySet
) and/or by thePropertyNameDecorator
. - Resolve an item data source of complex fields, a functionality usually covered by item providers.
- Manage item data sources of multi-value field entries. This is handled by the
MultiFormView.EntryResolution
, which resolves the children and binds each of them to the item provider strategy.
Replacements for field transformers
Default 5 UI transformer classes
| in 6 UI |
---|---|
basic.BasicTransformer | Not required and not used. Its functions are obsolete, some taken over by Vaadin's concept of PropertySet. |
composite.CompositeTransformer | info.magnolia.ui.editor.JcrChildNodeProvider |
composite.SwitchableTransformer | info.magnolia.ui.editor.JcrChildNodeProvider |
Other 5 UI transformer classes
| in 6 UI |
---|---|
composite.NoOpCompositeTransformer | not needed |
composite.DelegatingCompositeFieldTransformer | info.magnolia.ui.editor.JcrChildNodeProvider |
multi.DelegatingMultiValueFieldTransformer | info.magnolia.ui.editor.CurrentItemProvider |
multi.MultiValueChildrenNodeTransformer | info.magnolia.ui.editor.CurrentItemProvider |
multi.MultiValueChildNodeTransformer | info.magnolia.ui.editor.CurrentItemProvider |
multi.MultiValueSubChildrenNodeTransformer | info.magnolia.ui.editor.CurrentItemProvider |
multi.MultiValueJSONTransformer | info.magnolia.rest.ui.field.JsonMultiFieldProvider |
Personalization (trait) transformers
The 5 UI transformers with personalization-related functions have undergone the following changes, but still utilize the old framework (magnolia-personalization-compatibility
).
| Description |
---|---|
ui.SimpleTraitValueTransformer | Now functioning as the default trait transformer. |
cookie.CookieFieldTransformer | Custom transformer for cookie traits. |
visitor.transformer.VisitorTraitListToSetTransformer | Still existing, but longer needed. |
Overview
Content Tools