public class JcrUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TEMP_NODE_NAME
Name of the node intended for storing temporary data.
|
| Modifier and Type | Method and Description |
|---|---|
static JCRNodeWrapper |
getNodeCreateIfNeeded(JCRNodeWrapper parent,
String name,
String type)
Get node by its parent node, name and type; create the node if it does not exist yet.
|
static JCRNodeWrapper |
getTempNodeCreateIfNeeded(JCRSessionWrapper session)
Get the node intended for storing temporary data; create the node if it does not exist yet.
|
public static final String TEMP_NODE_NAME
public static JCRNodeWrapper getNodeCreateIfNeeded(JCRNodeWrapper parent, String name, String type) throws IllegalStateException
parent - Parent nodename - Name of the nodetype - Type of the nodeIllegalStateException - In case the node already exists, but has different typepublic static JCRNodeWrapper getTempNodeCreateIfNeeded(JCRSessionWrapper session) throws IllegalStateException
session - JCR sessionIllegalStateException - In case the node already exists, but has unexpected typeCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.