Package org.alfresco.util
Class PathUtil
java.lang.Object
org.alfresco.util.PathUtil
Alfresco path-related utility functions.
- Since:
- 3.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetDisplayPath(Path path, boolean showLeaf) Return the human readable form of the specified node Path.getNodeIdsInReverse(Path path, boolean showLeaf) Return the node ids from the specified node Path, so that the first element is the immediate parent.
-
Constructor Details
-
PathUtil
public PathUtil()
-
-
Method Details
-
getDisplayPath
Return the human readable form of the specified node Path. Fast version of the method that simply converts QName localname components to Strings.- Parameters:
path- Path to extract readable form fromshowLeaf- Whether to process the final leaf element of the path- Returns:
- human readable form of the Path
-
getNodeIdsInReverse
Return the node ids from the specified node Path, so that the first element is the immediate parent.- Parameters:
path- the node's path objectshowLeaf- whether to process the final leaf element of the path- Returns:
- list of node ids
-