Added variants to getPaths, which get all HEAD paths for

a node or all HEAD paths for a node in a given store.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3977 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-29 16:12:26 +00:00
parent 6ec40331da
commit 0b1accf9f9
4 changed files with 158 additions and 1 deletions

View File

@@ -81,6 +81,18 @@ public class AVMServiceTest extends AVMServiceTestBase
{
System.out.println(path.getFirst() + " " + path.getSecond());
}
paths = fService.getHeadPaths(fService.lookup(-1, "main:/a/b/c/foo"));
System.out.println("------------------------------");
for (Pair<Integer, String> path : paths)
{
System.out.println(path.getFirst() + " " + path.getSecond());
}
paths = fService.getPathsInStoreHead(fService.lookup(-1, "main:/a/b/c/foo"), "main");
System.out.println("------------------------------");
for (Pair<Integer, String> path : paths)
{
System.out.println(path.getFirst() + " " + path.getSecond());
}
}
catch (Exception e)
{