public class JcrTemplateImpl extends java.lang.Object implements JcrTemplate, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
Un Logger
|
protected SessionFactory |
sessionFactory
Fabrique de session JCR
|
| Constructor and Description |
|---|
JcrTemplateImpl()
Constructeur par defaut
|
JcrTemplateImpl(SessionFactory sessionFactory)
Constructeur avec initialisation des parametres
|
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Node |
addNode(javax.jcr.Node parent,
java.lang.String nodePath)
Methode permettant d'ajouter un noeud a partir de la racine
|
javax.jcr.Node |
addNode(java.lang.String nodePath)
Methode permettant d'ajouter un noeud a partir de la racine
|
void |
afterPropertiesSet() |
void |
copy(javax.jcr.Node sourceNode,
javax.jcr.Node destinationNode)
Methode permettant copier un noeud ainsi que son arborescence complete
|
void |
destroy() |
java.lang.String |
dump(javax.jcr.Node node)
Methode permettant d'obtenir le dump du noeud
|
java.lang.Object |
execute(JcrAction action)
Methode permettant d'executer une action JCR
|
java.lang.Object |
execute(JcrAction action,
boolean autoSave)
Methode permettant d'executer une action JCR
|
java.util.List<javax.jcr.Node> |
executeSQL2Query(java.lang.String query)
Methode permettant d'executer une requete JCR-SQL2
|
javax.jcr.Item |
getItem(java.lang.String path)
Methode permettant d'obtenir l'element situe a cette adresse
|
javax.jcr.Node |
getNode(java.lang.String path)
Methode permettant de charger un noeud a partir de son chemin absolu
|
SessionFactory |
getSessionFactory()
Methode permettant d'obtenir la valeur du champ "sessionFactory"
|
boolean |
itemExists(java.lang.String itemPath)
Methode permettant de verifier qu'un element existe pour ce chemin
|
void |
move(javax.jcr.Node sourceNode,
javax.jcr.Node destinationNode)
Methode permettant deplacer un noeud ainsi que son arborescence complete
|
void |
move(java.lang.String sourcePath,
java.lang.String destinationPath)
Methode permettant deplacer un noeud ainsi que son arborescence complete
|
boolean |
nodeExists(java.lang.String nodePath)
Methode permettant de verifier qu'un noeud existe pour ce chemin
|
void |
remove(javax.jcr.Node node)
Methode permettant de suppression d'un noeud
|
void |
remove(java.lang.String path)
Methode permettant de suppression d'un noeud
|
void |
setSessionFactory(SessionFactory sessionFactory)
Methode permettant de modifier la valeur du champ "sessionFactory"
|
protected final org.apache.commons.logging.Log logger
protected SessionFactory sessionFactory
public JcrTemplateImpl()
public JcrTemplateImpl(SessionFactory sessionFactory)
sessionFactory - Fabrique de sessionspublic SessionFactory getSessionFactory()
public void setSessionFactory(SessionFactory sessionFactory)
sessionFactory - Nouvelle valeur du champ "sessionFactory"public java.lang.Object execute(JcrAction action, boolean autoSave) throws org.springframework.dao.DataAccessException
JcrTemplateexecute in interface JcrTemplateaction - Action a executerautoSave - Enregistrement automatique des modifications sur la sessionorg.springframework.dao.DataAccessException - Exception Potentiellepublic java.lang.Object execute(JcrAction action) throws org.springframework.dao.DataAccessException
JcrTemplateexecute in interface JcrTemplateaction - Action a executerorg.springframework.dao.DataAccessException - Exception Potentiellepublic javax.jcr.Node addNode(javax.jcr.Node parent,
java.lang.String nodePath)
throws org.springframework.dao.DataAccessException
JcrTemplateaddNode in interface JcrTemplateparent - Parent NodenodePath - Chemin du noeudorg.springframework.dao.DataAccessException - Exception potentiellepublic javax.jcr.Node addNode(java.lang.String nodePath)
throws org.springframework.dao.DataAccessException
JcrTemplateaddNode in interface JcrTemplatenodePath - Chemin du noeudorg.springframework.dao.DataAccessException - Exception potentiellepublic boolean itemExists(java.lang.String itemPath)
JcrTemplateitemExists in interface JcrTemplateitemPath - Chemin de l'elementpublic boolean nodeExists(java.lang.String nodePath)
JcrTemplatenodeExists in interface JcrTemplatenodePath - Chemin du noeudpublic javax.jcr.Item getItem(java.lang.String path)
JcrTemplategetItem in interface JcrTemplatepath - Adresse de l'element recherchepublic javax.jcr.Node getNode(java.lang.String path)
throws org.springframework.dao.DataAccessException
JcrTemplategetNode in interface JcrTemplatepath - Chemin absolu du noeudorg.springframework.dao.DataAccessException - Exception potentiellepublic java.util.List<javax.jcr.Node> executeSQL2Query(java.lang.String query)
throws org.springframework.dao.DataAccessException
JcrTemplateexecuteSQL2Query in interface JcrTemplatequery - Requete JCR-SQL2org.springframework.dao.DataAccessException - Exception potentiellepublic void copy(javax.jcr.Node sourceNode,
javax.jcr.Node destinationNode)
throws org.springframework.dao.DataAccessException
JcrTemplatecopy in interface JcrTemplatesourceNode - Noeud sourcedestinationNode - Noeud cibleorg.springframework.dao.DataAccessException - Exception Potentiellepublic void move(java.lang.String sourcePath,
java.lang.String destinationPath)
throws org.springframework.dao.DataAccessException
JcrTemplatemove in interface JcrTemplatesourcePath - Chemin source du noeuddestinationPath - Chemin cible du noeudorg.springframework.dao.DataAccessException - Exception Potentiellepublic void move(javax.jcr.Node sourceNode,
javax.jcr.Node destinationNode)
throws org.springframework.dao.DataAccessException
JcrTemplatemove in interface JcrTemplatesourceNode - Noeud sourcedestinationNode - Noeud cibleorg.springframework.dao.DataAccessExceptionpublic java.lang.String dump(javax.jcr.Node node)
throws org.springframework.dao.DataAccessException
JcrTemplatedump in interface JcrTemplatenode - Noeud sourceorg.springframework.dao.DataAccessException - Exception Potentiellepublic void remove(javax.jcr.Node node)
throws org.springframework.dao.DataAccessException
JcrTemplateremove in interface JcrTemplatenode - Noeud a supprimerorg.springframework.dao.DataAccessException - Exception potentiellepublic void remove(java.lang.String path)
throws org.springframework.dao.DataAccessException
JcrTemplateremove in interface JcrTemplatepath - Chemin du Noeud a supprimerorg.springframework.dao.DataAccessException - Exception potentiellepublic void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exceptionpublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.ExceptionCopyright © 2018 Kube Cloud. All Rights Reserved.