Class NodeHelper
- java.lang.Object
-
- org.pentaho.platform.repository2.unified.jcr.NodeHelper
-
public class NodeHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description NodeHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.jcr.Node
addNode(javax.jcr.Node parentNode, String nodeNamePrefix, String nodeName)
Encapsulate addNode calls here to ensure we are encoding the parameterstatic javax.jcr.Node
addNode(javax.jcr.Node parentNode, String nodeNamePrefix, String nodeName, String nodeParameter)
Encapsulate addNode calls here to ensure we are encoding the parameterprotected static javax.jcr.Node
checkAddNode(javax.jcr.Node parentNode, String nodeName)
Encapsulate addNode calls here to ensure we are encoding the parameterprotected static javax.jcr.Node
checkAddNode(javax.jcr.Node parentNode, String nodeName, String nodeParameter)
Encapsulate addNode calls here to ensure we are encoding the parameterprotected static javax.jcr.Node
checkGetNode(javax.jcr.Node parentNode, String nodeName)
Encapsulate getNode calls here to ensure we are encoding the parameterprotected static boolean
checkHasNode(javax.jcr.Node parentNode, String nodeName)
Encapsulate hasNode calls here to ensure we are encoding the parameterstatic org.pentaho.platform.api.repository2.unified.data.node.DataNode
createDataNode(String name)
Safely create data node with jcr encoded namestatic javax.jcr.Node
getNode(javax.jcr.Node parentNode, String nodeNamePrefix, String nodeName)
Encapsulate getNode calls here to ensure we are encoding the parameterstatic boolean
hasNode(javax.jcr.Node parentNode, String nodeNamePrefix, String nodeName)
Encapsulate hasNode calls here to ensure we are encoding the parameter
-
-
-
Method Detail
-
checkHasNode
protected static boolean checkHasNode(javax.jcr.Node parentNode, String nodeName) throws javax.jcr.RepositoryException
Encapsulate hasNode calls here to ensure we are encoding the parameter- Parameters:
parentNode
-nodeName
-- Returns:
- Throws:
javax.jcr.RepositoryException
-
hasNode
public static boolean hasNode(javax.jcr.Node parentNode, String nodeNamePrefix, String nodeName) throws javax.jcr.RepositoryException
Encapsulate hasNode calls here to ensure we are encoding the parameter- Parameters:
parentNode
-nodeNamePrefix
-nodeName
-- Returns:
- Throws:
javax.jcr.RepositoryException
-
checkAddNode
protected static javax.jcr.Node checkAddNode(javax.jcr.Node parentNode, String nodeName) throws javax.jcr.RepositoryException
Encapsulate addNode calls here to ensure we are encoding the parameter- Parameters:
parentNode
-nodeName
-- Returns:
- Throws:
javax.jcr.RepositoryException
-
addNode
public static javax.jcr.Node addNode(javax.jcr.Node parentNode, String nodeNamePrefix, String nodeName) throws javax.jcr.RepositoryException
Encapsulate addNode calls here to ensure we are encoding the parameter- Parameters:
parentNode
-nodeNamePrefix
-nodeName
-- Returns:
- Throws:
javax.jcr.RepositoryException
-
addNode
public static javax.jcr.Node addNode(javax.jcr.Node parentNode, String nodeNamePrefix, String nodeName, String nodeParameter) throws javax.jcr.RepositoryException
Encapsulate addNode calls here to ensure we are encoding the parameter- Parameters:
parentNode
-nodeNamePrefix
-nodeName
-- Returns:
- Throws:
javax.jcr.RepositoryException
-
checkAddNode
protected static javax.jcr.Node checkAddNode(javax.jcr.Node parentNode, String nodeName, String nodeParameter) throws javax.jcr.RepositoryException
Encapsulate addNode calls here to ensure we are encoding the parameter- Parameters:
parentNode
-nodeName
-- Returns:
- Throws:
javax.jcr.RepositoryException
-
checkGetNode
protected static javax.jcr.Node checkGetNode(javax.jcr.Node parentNode, String nodeName) throws javax.jcr.RepositoryException
Encapsulate getNode calls here to ensure we are encoding the parameter- Parameters:
parentNode
-nodeName
-- Returns:
- Throws:
javax.jcr.RepositoryException
-
getNode
public static javax.jcr.Node getNode(javax.jcr.Node parentNode, String nodeNamePrefix, String nodeName) throws javax.jcr.RepositoryException
Encapsulate getNode calls here to ensure we are encoding the parameter- Parameters:
parentNode
-nodeNamePrefix
-nodeName
-- Returns:
- Throws:
javax.jcr.RepositoryException
-
createDataNode
public static org.pentaho.platform.api.repository2.unified.data.node.DataNode createDataNode(String name)
Safely create data node with jcr encoded name- Parameters:
name
-- Returns:
-
-