public class JcrNodeToIdentifierConverter extends AbstractJcrConverter<javax.jcr.Node>
Converter
. Turns a Node (presentation type) into its identifier (model type or a String) and vice versa.Modifier and Type | Class and Description |
---|---|
static class |
JcrNodeToIdentifierConverter.AllowingJcrPathAsModelValue
Does almost the same job as the
JcrNodeToIdentifierConverter , but when reading
the values from the backend (model->presentation conversion) it is lenient to paths,
which are used as a fallback assumption in case the UUID->node conversion did not
succeed. |
Constructor and Description |
---|
JcrNodeToIdentifierConverter(JcrDatasource datasource) |
Modifier and Type | Method and Description |
---|---|
com.vaadin.data.Result<String> |
convertToModel(javax.jcr.Node value,
com.vaadin.data.ValueContext context) |
javax.jcr.Node |
convertToPresentation(String uuid,
com.vaadin.data.ValueContext context) |
getNodeByIdentifier, getNodeByPath
public JcrNodeToIdentifierConverter(JcrDatasource datasource)
Copyright © 2021 Magnolia International Ltd.. All rights reserved.