Added removeNode(String path) to AVMService as a convenience and to

reduce my shame.  Beefed up path robustness in AVMNodeConverter.SplitBase().
Removed an unneeded import from AVMNodeService.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3862 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-20 13:54:53 +00:00
parent dda6d72701
commit 6f565e2be1
6 changed files with 55 additions and 2 deletions

View File

@@ -114,6 +114,11 @@ public class AVMNodeConverter
*/
public static String [] SplitBase(String path)
{
path = path.replaceAll("/+", "/");
while (path.endsWith("/") && !path.endsWith(":/"))
{
path = path.substring(0, path.length() - 1);
}
if (path.endsWith(":/"))
{
String [] res = new String[2];