public interface NodeFinder
Node lookup in JCR repository.| Modifier and Type | Method and Description |
|---|---|
String |
cleanName(String name)
Align given name to current repository conventions by removing or escaping forbidden characters.
|
javax.jcr.Item |
findItem(javax.jcr.Session userSession,
String path)
Find JCR item by given path, if the path points to a symlink this method return a target node of the
link.
|
Collection<javax.jcr.Node> |
findLinked(javax.jcr.Session session,
String uuid)
Find nodes linked to given node.
|
javax.jcr.Item |
getItem(javax.jcr.Session userSession,
String path,
boolean symlinkTarget)
Return JCR item by given path.
|
javax.jcr.Node |
getUserNode(String userName)
Return user home node of given user.
|
javax.jcr.Item getItem(javax.jcr.Session userSession,
String path,
boolean symlinkTarget)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
userSession - Sessionpath - StringsymlinkTarget - boolean, if true and found item is a symlink node, return the symlink target
node, if false just return the item obtained from the sessionjavax.jcr.PathNotFoundException - if item not found by given pathjavax.jcr.RepositoryException - if repository error eccursjavax.jcr.Item findItem(javax.jcr.Session userSession,
String path)
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
userSession - Sessionpath - Stringjavax.jcr.PathNotFoundException - if item not found by given pathjavax.jcr.RepositoryException - if repository error eccursCollection<javax.jcr.Node> findLinked(javax.jcr.Session session, String uuid) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
session - the sessionuuid - StringCollection of nodesjavax.jcr.PathNotFoundException - the path not found exceptionjavax.jcr.RepositoryException - the repository exceptionString cleanName(String name)
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.