mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Daily merge.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@2882 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -223,10 +223,25 @@ public final class Repository
|
||||
* @return human readable form of the Path excluding the final element
|
||||
*/
|
||||
public static String getDisplayPath(Path path)
|
||||
{
|
||||
return getDisplayPath(path, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the human readable form of the specified node Path. Fast version of the method that
|
||||
* simply converts QName localname components to Strings.
|
||||
*
|
||||
* @param path Path to extract readable form from
|
||||
* @param showLeaf Whether to process the final leaf element of the path
|
||||
*
|
||||
* @return human readable form of the Path excluding the final element
|
||||
*/
|
||||
public static String getDisplayPath(Path path, boolean showLeaf)
|
||||
{
|
||||
StringBuilder buf = new StringBuilder(64);
|
||||
|
||||
for (int i=0; i<path.size()-1; i++)
|
||||
int count = path.size() - (showLeaf ? 0 : 1);
|
||||
for (int i=0; i<count; i++)
|
||||
{
|
||||
String elementString = null;
|
||||
Path.Element element = path.get(i);
|
||||
|
Reference in New Issue
Block a user