mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
This exposes DeletedNodes through AVMService via calls for lookup
and directory listing that take an includeLinks flag. Original calls (w/o a flag) should have unchanged behavior. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3752 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -133,14 +133,14 @@ public class AVMServiceTestBase extends TestCase
|
||||
}
|
||||
builder.append(path.substring(path.lastIndexOf('/') + 1));
|
||||
builder.append(' ');
|
||||
AVMNodeDescriptor desc = fService.lookup(version, path);
|
||||
AVMNodeDescriptor desc = fService.lookup(version, path, true);
|
||||
builder.append(desc.toString());
|
||||
builder.append('\n');
|
||||
if (desc.getType() == AVMNodeType.PLAIN_DIRECTORY ||
|
||||
(desc.getType() == AVMNodeType.LAYERED_DIRECTORY && followLinks))
|
||||
{
|
||||
String basename = path.endsWith("/") ? path : path + "/";
|
||||
Map<String, AVMNodeDescriptor> listing = fService.getDirectoryListing(version, path);
|
||||
Map<String, AVMNodeDescriptor> listing = fService.getDirectoryListing(version, path, true);
|
||||
for (String name : listing.keySet())
|
||||
{
|
||||
builder.append(recursiveList(basename + name, version, indent + 2, followLinks));
|
||||
|
Reference in New Issue
Block a user