Package org.alfresco.util
Class PathUtil
- java.lang.Object
-
- org.alfresco.util.PathUtil
-
public class PathUtil extends java.lang.ObjectAlfresco path-related utility functions.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description PathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetDisplayPath(org.alfresco.service.cmr.repository.Path path, boolean showLeaf)Return the human readable form of the specified node Path.static java.util.List<java.lang.String>getNodeIdsInReverse(org.alfresco.service.cmr.repository.Path path, boolean showLeaf)Return the node ids from the specified node Path, so that the first element is the immediate parent.
-
-
-
Method Detail
-
getDisplayPath
public static java.lang.String getDisplayPath(org.alfresco.service.cmr.repository.Path path, boolean showLeaf)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
public static java.util.List<java.lang.String> getNodeIdsInReverse(org.alfresco.service.cmr.repository.Path path, boolean showLeaf)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
-
-