mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
The Node Browser in the UI can now navigate AVM stores.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3553 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -99,6 +99,13 @@ public class AVMNodeConverter
|
||||
*/
|
||||
public static String [] SplitBase(String path)
|
||||
{
|
||||
if (path.endsWith(":/"))
|
||||
{
|
||||
String [] res = new String[2];
|
||||
res[0] = null;
|
||||
res[1] = "";
|
||||
return res;
|
||||
}
|
||||
int off = path.lastIndexOf("/");
|
||||
if (off == -1)
|
||||
{
|
||||
@@ -106,6 +113,10 @@ public class AVMNodeConverter
|
||||
}
|
||||
String [] decomposed = new String[2];
|
||||
decomposed[0] = path.substring(0, off);
|
||||
if (decomposed[0].endsWith(":"))
|
||||
{
|
||||
decomposed[0] = decomposed[0] + "/";
|
||||
}
|
||||
decomposed[1] = path.substring(off + 1);
|
||||
return decomposed;
|
||||
}
|
||||
|
Reference in New Issue
Block a user