mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
79089: Merged V4.2-BUG-FIX (4.2.4) to HEAD-BUG-FIX (5.0/Cloud) 78998: Merged V4.1-BUG-FIX (4.1.10) to V4.2-BUG-FIX (4.2.4) 78962: Merged DEV to V4.1-BUG-FIX (4.1.10) 78800: MNT-12055 : IMAP causing high CPU/heap usage Added a shortcut for favorite sites listing if mount point is sites' root. 78924: MNT-12055 : IMAP causing high CPU/heap usage Optimized ImapServiceImpl.getFavouriteSites(String) to check the preferences and then check access to each site. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@82685 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2005-2013 Alfresco Software Limited.
|
||||
* Copyright (C) 2005-2014 Alfresco Software Limited.
|
||||
*
|
||||
* This file is part of Alfresco
|
||||
*
|
||||
@@ -25,6 +25,7 @@ import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
@@ -285,6 +286,21 @@ public class FileFolderServiceImpl extends AbstractBaseCopyService implements Fi
|
||||
return fileInfo;
|
||||
}
|
||||
|
||||
public List<FileInfo> toFileInfoList(List<NodeRef> nodeRefs)
|
||||
{
|
||||
List<FileInfo> fileInfos = new LinkedList<FileInfo>();
|
||||
for (NodeRef nodeRef : nodeRefs)
|
||||
{
|
||||
// Use service proxy
|
||||
FileInfo fileInfo = this.getFileInfo(nodeRef);
|
||||
if (fileInfo != null)
|
||||
{
|
||||
fileInfos.add(fileInfo);
|
||||
}
|
||||
}
|
||||
return fileInfos;
|
||||
}
|
||||
|
||||
/**
|
||||
* Exception when the type is not a valid File or Folder type
|
||||
*
|
||||
|
Reference in New Issue
Block a user