public class JcrUtils
extends java.lang.Object
| Constructor and Description |
|---|
JcrUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
dump(javax.jcr.Node node)
Methode permettant de dump d'un noeud
|
private static java.lang.String |
getAbsolutePath(java.lang.String path)
Methode permettant d'obtenir le chemin absolu d'un chemin
|
static javax.jcr.Item |
getItem(java.lang.String itemPath,
javax.jcr.Session session)
Methode permettant d'obtenir un element a partir de son chemin complet
|
static javax.jcr.Node |
getNode(java.lang.String nodePath,
javax.jcr.Session session)
Methode permettant d'obtenir un element a partir de son chemin complet
|
static javax.jcr.Node |
getOrCreateNodeByPath(javax.jcr.Node parent,
java.lang.String path,
java.lang.String nodeType,
javax.jcr.Session session)
Methode permettant de creer un noeud a partir d'un chemin relatif a un parent
|
static javax.jcr.Node |
getOrCreateNodeByPath(java.lang.String path,
java.lang.String nodeType,
javax.jcr.Session session)
Methode permettant de creer un noeud a partir d'un chemin absolu
|
private static java.lang.String |
getRelativePath(java.lang.String path)
Methode permettant d'obtenir le chemin relatif d'un chemin
|
static void |
main(java.lang.String[] args) |
static boolean |
nodeExist(javax.jcr.Node parent,
java.lang.String path)
Methode permettant de verifier l'existence d'un chemin relatif
|
static boolean |
nodeExist(java.lang.String path,
javax.jcr.Session session)
Methode permettant de verifier l'existence d'un chemin relatif
|
public static boolean nodeExist(javax.jcr.Node parent,
java.lang.String path)
throws javax.jcr.RepositoryException
parent - Noeud parentpath - Chemin relatifjavax.jcr.RepositoryException - Exception Potentiellepublic static boolean nodeExist(java.lang.String path,
javax.jcr.Session session)
throws javax.jcr.RepositoryException
path - Chemin relatifsession - Session JCRjavax.jcr.RepositoryException - Exception Potentiellepublic static javax.jcr.Item getItem(java.lang.String itemPath,
javax.jcr.Session session)
throws javax.jcr.RepositoryException
itemPath - Chemin complet de l'elementsession - Session en coursjavax.jcr.RepositoryException - Exception potentiellepublic static javax.jcr.Node getNode(java.lang.String nodePath,
javax.jcr.Session session)
throws javax.jcr.RepositoryException
nodePath - Chemin complet du noeudsession - Session en coursjavax.jcr.RepositoryException - Exception potentiellepublic static java.lang.String dump(javax.jcr.Node node)
throws javax.jcr.RepositoryException
node - Noeud a dumperjavax.jcr.RepositoryException - Exception potentiellepublic static javax.jcr.Node getOrCreateNodeByPath(javax.jcr.Node parent,
java.lang.String path,
java.lang.String nodeType,
javax.jcr.Session session)
throws javax.jcr.RepositoryException
parent - Noeud parentpath - Chemin du noeud a creernodeType - Type du noeud a creersession - Session JCR courantejavax.jcr.RepositoryException - Exception Potentiellepublic static javax.jcr.Node getOrCreateNodeByPath(java.lang.String path,
java.lang.String nodeType,
javax.jcr.Session session)
throws javax.jcr.RepositoryException
path - Chemin du noeud a creernodeType - Type du noeud a creersession - Session JCR courantejavax.jcr.RepositoryException - Exception Potentielleprivate static java.lang.String getAbsolutePath(java.lang.String path)
path - Cheminprivate static java.lang.String getRelativePath(java.lang.String path)
path - Cheminpublic static void main(java.lang.String[] args)
Copyright © 2018 Kube Cloud. All Rights Reserved.