public final class LinkUtils extends Object
| Constructor and Description |
|---|
LinkUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createPath(String parentPath,
String relativePath)
Appends the parentPath and the relativePath to give a full absolute path
|
static String |
evaluatePath(String path)
Convert a path of type /my/../folder or /my/./folder to a real path
|
static String |
getAncestorPath(String path,
int depth)
Gives the ancestor of the given path corresponding to the given depth knowing that:
depth = 0 returns the root node.
|
static int |
getDepth(String path)
Gives the total depth of the given absolute path
|
static String |
getExistPath(javax.jcr.Node node,
String path)
The procedure which return the path existed in tree.
|
static String |
getItemName(String path)
Gives the name of the item according to the given absolute path
|
static LinkManager |
getLinkManager() |
static NodeFinder |
getNodeFinder() |
static String |
getParentPath(String path)
Gives the parent path of the given path
|
public static String evaluatePath(String path)
path - the path to convertpublic static String getItemName(String path)
path - the absolute of the itempublic static String createPath(String parentPath, String relativePath)
public static int getDepth(String path)
path - an absolute pathpublic static String getAncestorPath(String path, int depth)
Item.
Item.
Item, which returns this
Item itself.
public static String getParentPath(String path)
path - an absolute pathpublic static NodeFinder getNodeFinder()
public static LinkManager getLinkManager()
public static String getExistPath(javax.jcr.Node node, String path) throws javax.jcr.RepositoryException
node - is a Node type which represents current node.path - a current pathjavax.jcr.RepositoryException - when some exceptions occurrence.Copyright © 2003–2019 eXo Platform SAS. All rights reserved.