Hooked in faster flavor of getDirectoryListingDirect().

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3804 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-15 15:06:46 +00:00
parent fc2bfb0315
commit e4b6b5a586

View File

@@ -140,7 +140,7 @@ public class AVMSyncServiceImpl implements AVMSyncService
{ {
// Get only a direct listing, since that's all that can be different. // Get only a direct listing, since that's all that can be different.
Map<String, AVMNodeDescriptor> srcList = Map<String, AVMNodeDescriptor> srcList =
fAVMService.getDirectoryListingDirect(-1, srcDesc.getPath(), true); fAVMService.getDirectoryListingDirect(srcDesc, true);
// The biggest shortcut: if the source directory is directly empty // The biggest shortcut: if the source directory is directly empty
// then we're done. // then we're done.
if (srcList.size() == 0) if (srcList.size() == 0)
@@ -176,7 +176,7 @@ public class AVMSyncServiceImpl implements AVMSyncService
{ {
// Get direct content of destination. // Get direct content of destination.
Map<String, AVMNodeDescriptor> dstList = Map<String, AVMNodeDescriptor> dstList =
fAVMService.getDirectoryListingDirect(dstVersion, dstDesc.getPath(), true); fAVMService.getDirectoryListingDirect(dstDesc, true);
// Big short circuit. // Big short circuit.
if (dstList.size() == 0) if (dstList.size() == 0)
{ {
@@ -569,7 +569,7 @@ public class AVMSyncServiceImpl implements AVMSyncService
throw new AVMWrongTypeException("Underlying is not a directory: " + underlying); throw new AVMWrongTypeException("Underlying is not a directory: " + underlying);
} }
Map<String, AVMNodeDescriptor> layerListing = Map<String, AVMNodeDescriptor> layerListing =
fAVMService.getDirectoryListingDirect(-1, layer.getPath(), true); fAVMService.getDirectoryListingDirect(layer, true);
// If the layer is empty (directly, that is) we're done. // If the layer is empty (directly, that is) we're done.
if (layerListing.size() == 0) if (layerListing.size() == 0)
{ {