mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-2126 - more updates for the FileFolderService.
- bug fix - unit test expansion - have now deprecated the search methods git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19947 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -485,7 +485,7 @@ public class FileFolderServiceImpl implements FileFolderService
|
||||
// This is a folder search only;
|
||||
query = XPATH_QUERY_DEEP_FOLDERS;
|
||||
}
|
||||
else if(fileSearch && folderSearch)
|
||||
else if(fileSearch && !folderSearch)
|
||||
{
|
||||
// This is a folder search only;
|
||||
query = XPATH_QUERY_DEEP_FILES;
|
||||
@@ -617,18 +617,22 @@ public class FileFolderServiceImpl implements FileFolderService
|
||||
|
||||
for (ChildAssociationRef folderRef : folderAssocRefs)
|
||||
{
|
||||
// Add the folders in the currentDir
|
||||
toSearch.push(folderRef.getChildRef());
|
||||
|
||||
if(folders)
|
||||
{
|
||||
result.add(folderRef.getChildRef());
|
||||
}
|
||||
if(files)
|
||||
}
|
||||
|
||||
if(files)
|
||||
{
|
||||
// Add the files in the current dir
|
||||
List<ChildAssociationRef> fileAssocRefs = nodeService.getChildAssocs(currentDir, fileTypeQNames);
|
||||
for (ChildAssociationRef fileRef : fileAssocRefs)
|
||||
{
|
||||
List<ChildAssociationRef> fileAssocRefs = nodeService.getChildAssocs(currentDir, fileTypeQNames);
|
||||
for (ChildAssociationRef fileRef : fileAssocRefs)
|
||||
{
|
||||
result.add(fileRef.getChildRef());
|
||||
}
|
||||
result.add(fileRef.getChildRef());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user